I fixed the errors by adding this after every <windows.h> include:
#undef GetMessage
#undef INTERFACE
#undef CreateWindow
#undef GetObject
#undef AddJob
#undef GetClassInfo
#undef PASSTHROUGH
#undef SetPort
On to more error fixing.
I fixed the errors by adding this after every <windows.h> include:
#undef GetMessage
#undef INTERFACE
#undef CreateWindow
#undef GetObject
#undef AddJob
#undef GetClassInfo
#undef PASSTHROUGH
#undef SetPort
On to more error fixing.
Hello,
I'm trying to compile my C4D plugin for R20, and I'm getting dozens of these error messages:
detect_win_macros.h(8): fatal error C1189: #error: GetMessage macro defined, you have to clean-up after a Windows include.
detect_win_macros.h(2): fatal error C1189: #error: INTERFACE macro defined, you have to clean-up after a Windows include.
Yes, I'm including <windows.h> in my source code files, because I'm using some Win32 functions.
I don't understand what "clean-up" means or what I have to do to fix it. Thanks.
I think the Source processor is buggy. It's checking code that is commented out with #if 0 blocks, which should be ignored.
1> Source processor:
1>test.cpp(463,89): error : No matching closing parenthesis found for {
1>test.cpp(504,25): error : Mismatching closing parenthesis )
Source code:
#if 0
printf"test"); // missing first parenthesis
#endif
I solved my problem here:
https://developers.maxon.net/forum/topic/10967/compiling-the-cinema-4d-r20-c-sdk-examples
I didn't realize I had to run the Project Tool on the entire SDK directory.
Maybe that thread should be a sticky at the top of the forums, because it makes more sense than the docs.
Hello,
I'm trying to recompile my C4D plugin for R20 (Windows), and I'm having some issues.
Previously, I would first compile a static library for cinema.framework, and then add it
to my plugin project solution. But now, I can't even compile cinema.framework.
I understand things have changed, and I've read this:
https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_getting_started_introduction.html
And downloaded the Project Tool:
[URL-REMOVED]
I ran it on this directory:
\frameworks\cinema.framework\project
I was assuming the project tool would create a solution file (.sln) for me, which I could
loade into VS 2015, and then compile a static library, but it only creates a .vcxproj file.
Trying to load this .vcxproj into VS 2015 only gives me errors, and nothing gets loaded. So, I'm a bit confused and don't know where to go from here. Thanks.
Using:
Windows 7, 64-bit
Visual Studio 2015 Community
C++
[URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.