Twixn DeleD PRO user
Joined: 01 Dec 2005 Posts: 136 Location: Melbourne Australia
|
Posted: Fri Dec 14, 2007 11:58 am Post subject: 1.73 C++ Plugin Troubles. |
|
|
Hey all,
Its been a while since I was last here, been busy with
Uni which forced me to use alot of Linux (so no DeleD).
But now I finished Uni and started work so I'm back on
Windows (Vista, if it has something to do with my problem).
Anyway, I've been trying to make an Exporter Plugin
for DeleD 1.73 and I'm having a problem with
"PluginSetCallback".
Doing it this way:
Code: |
void DLL_EXPORT PluginSetCallback( void * ptr)
{
deledCallback = TCallback(ptr);
} |
Causes DeleD to hang after running the function.
However this way:
Code: |
void DLL_EXPORT __stdcall PluginSetCallback( void * ptr)
{
deledCallback = TCallback(ptr);
} |
Doesn't hang, but the function isn't called by DeleD at all.
Which means that the callback isn't set and the plugin is
pretty much useless. And I've noticed from the other Plugin
functions that with '__stdcall' they aren't found by DeleD
but without it they work fine.
I'm using Visual C++ Express 2005, using the PluginSDK and
some of jwatte's plugins as a reference.
Anyway, I'd appreciate any help
-Twixn- _________________ Failure is not an option!....It comes bundled with the software. |
|