Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. yushang
    The forum rollback caused push notifications and recent user data to malfunction. The problem will fix itself naturally within the next days. See the topic Broken Push Notifications for a more in detail explanation. You can fix this yourself by forcibly clearing your browser cache (for most browsers: CTRL + F5).
    Y
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    yushang

    @yushang

    0
    Reputation
    2
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    yushang Unfollow Follow

    Latest posts made by yushang

    • RE: why my interface is sealed in maxon::Result?

      @ferdinand cool. this really helpful!

      posted in Cinema 4D SDK
      Y
      yushang
    • why my interface is sealed in maxon::Result?

      Hi guys,
      I'm following the maxonsdk.module listed in here. Which declare a SimpleNumberInterface and implement it with SimpleNumberImpl. I mimic the steps as follow

      1. projectdefinition.txt
      Platform=Win64;OSX;Linux
      Type=DLL
      APIS=core.framework
      stylecheck=false
      ModuleId=net.yu.myp
      
      1. myifc.h
      #pragma once
      #include "maxon/object.h"
      class MyIfc : MAXON_INTERFACE_BASES(maxon::ObjectInterface) {
      MAXON_INTERFACE(MyIfc,MAXON_REFERENCE_NORMAL,"net.yu.interface.myifc");
      public:
        MAXON_METHOD void Hello();
      };
      #include "myifc1.hxx"
      MAXON_DECLARATION(maxon::Class<MyIfcRef>, MyIfcDecl, "net.yu.myifcdecl");
      #include "myifc2.hxx"
      
      1. myifc.cpp
      #include "myifc.h"
      class MyIfcImpl : public maxon::Component<MyIfcImpl,MyIfc> {
         MAXON_COMPONENT();
      public:
        MAXON_METHOD void Hello() {
        }
      };
      MAXON_COMPONENT_CLASS_REGISTER(MyIfcImpl, MyIfcDecl);
      
      1. main.cpp
      #include "myifc.h"
      extern "C"
      __declspec(dllexport)
      int c4d_main(int action, void* p1, void* p2, void* p3) {
        MyIfcRef ifc = MyIfcDecl().Create();   // A
        return 1;
      }
      

      At line A , I got the following error

      error C2440: 'initializing': cannot convert from 'maxon::Result<MyIfcRef>' to 'MyIfcRef'
      

      How does this happen? Many thanks!

      posted in Cinema 4D SDK r25 c++
      Y
      yushang
    • RE: vcxproj toolset configuration

      @ferdinand Thanks for reply. I think I understood it. As an workarround, I can replace all the v142 in generated vcxproj with v143. I'm not using VS IDE , so I have to do it manually.

      posted in Cinema 4D SDK
      Y
      yushang
    • vcxproj toolset configuration

      Hi guys,
      I'm newbie for C4D SDK. I'm using MSVC to build the SDK. My MSVC toolchain only support v143 toolset (I mean PlatformToolset in vcxproj file). But the SDK generated vcxproj use v142. So my question is : is there any way to change the default v412 to v143? Many thanks!

      posted in Cinema 4D SDK windows c++ 2024
      Y
      yushang