Navigation

    • Register
    • Login
    • Search
    1. Home
    2. rootbender
    3. Posts
    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Posts made by rootbender

    RE: win_macros.h Error

    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.

    posted in Cinema 4D SDK •
    win_macros.h Error

    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.

    posted in Cinema 4D SDK •
    Source processor bug

    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

    posted in Cinema 4D SDK •
    RE: Compiling for R20

    I solved my problem here:
    https://plugincafe.maxon.net/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.

    posted in Cinema 4D SDK •
    Compiling for R20

    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/Cinema4DCPPSDK/html/page_maxonapi_getting_started_introduction.html

    And downloaded the Project Tool:
    https://developers.maxon.net/?page_id=1118

    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++

    posted in Cinema 4D SDK •