23rd December 2003, 06:30 AM | #1 |
Junior Member
Junior member
Join Date: Dec 2003
Posts: 1
|
Plugins in Visual C++ 7 (.NET)
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. |
3rd April 2004, 03:42 AM | #2 |
Member
Advanced member
Join Date: Jul 2003
Location: Hampshire UK
Posts: 38
|
Re: Plugins in Visual C++ 7 (.NET)
Thanks for that.
Mark |
7th September 2004, 08:43 PM | #3 |
Junior Member
Junior member
Join Date: Jul 2004
Posts: 8
|
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] |
|
|