Including DLLs in C4D Plugin [SOLVED]

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.


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.

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

thank you, I will give it a try.


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!