THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/01/2003 at 11:40, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.012
Platform: Windows ;
Language(s) : C++ ;
---------
Okay, back on track, using the STL example as a basis of the exporter plugin I'm writing, I got my plugin compiling through VC6. Basically I am writing the export plugin that uses a our file format .lib to generate a file that can read into our software. I am having to use windows.h and winsock2.h
Here's the situation:
I compile the plugin using headers from my API, my .lib files and the framework from the STL example, the plugin compiles, loads, gets registed and the plugin is available via the "export" menu.
However, if I only create a new object using my .api, the plugin compiles fine, but doesn't load. If I run C4D under debug, I get access violation 0x00005 (whatever that means). This error occurrs just when C4D tries to load the plugin, not executing any export code, not running any of our API code.
I run the compiled plugins through depends.exe, here's the list of dependent dlls that are with my code:
ADVAPI32.DLL
KERNEL32.DLL
MSVCRT.DLL
NTDLL.DLL
RPCRT4.DLL
WS2HELP.DLL
WS2_32.DLL
Here's the Depends .dll list from just the STL code:
KERNEL32.DLL
NTDLL.DLL
Obviously with using my API, i'm invoking more windows-ish subsystems, but the place in the compiled plugin code where i'm just newing up an object isn't being executed on launch. so there isn't anything actually being done. It feels like with the added dll depends, C4D can't find the DLL entry point, or it doesnt like the other DLL depends. Our top developer over here is completely stumped on this as well..
First comment that you could say is that it must be a bad api. however, our API is the same API that has been used to generate plugins for Deep Exploration, 3d Studio MAX, Maya, and Lighwave.
-eric morin