Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Including DLLs in C4D Plugin [SOLVED]

    SDK Help
    0
    4
    377
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 25/06/2014 at 07:09, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R15 
      Platform:   Windows  ;   
      Language(s) :

      ---------
      I am new to Visual Studio 2012.  I have created DLLs and included them in console applications.  When I try to include them in my Cinema4D plugin though LoadLibrary they are never found ( the DLL is in the root directory of the plugin project folder ).

      Could use your help please.

      Ama

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 25/06/2014 at 07:37, xxxxxxxx wrote:

        Hi Ama,

        You can call GeGetPluginPath() to get the absolute path to the plugin's folder.
        Then use this returned path for the call to LoadLibrary().

        You can also try to put your DLL dependency in your plugin / resource/libs/win  folder.
        CINEMA 4D registers that folder on startup and when a plugin is loaded CINEMA  loads the DLL dependencies from there.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 25/06/2014 at 11:26, xxxxxxxx wrote:

          thank you, I will give it a try.

          Ama

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 25/06/2014 at 11:47, xxxxxxxx wrote:

            Got it, I was trying to load a 32bit DLL.  Changed to 64bit and all good.

            Thank You!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post