PDA

View Full Version : Plugins in Visual C++ 7 (.NET)


poort
23rd December 2003, 06:30 AM
ac_plugin.h contains an #ifdef WINDOWS statement. But in Visual C++ 7 WINDOWS not defined. So either change this statement to #ifdef _WINDOWS or put #define WINDOWS in your own code.

If you don't change this your plugin will compile fine in Visual C++ 7, but it will not export any functions and AC3D will generate an error when loading your plugin.

figgy
3rd April 2004, 03:42 AM
:D Thanks for that.

Mark

TomToad
7th September 2004, 09:43 PM
Ack!!! Trying to make an export plugin and VC++7 .net is making it hard. Had trouble getting around the name mangling that VC++ likes to do. Seems the solution is to type extern "C" before AC3D_PLUGIN_FUNC. Now everything seems to work ok. :) Just thought I'd share to help anyone else having problems with VC++.
[/b]