Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

1.73 C++ Plugin Troubles.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Plugins
View previous topic :: View next topic  
Author Message
Twixn
DeleD PRO user


Joined: 01 Dec 2005
Posts: 136
Location: Melbourne Australia

PostPosted: Fri Dec 14, 2007 11:58 am    Post subject: 1.73 C++ Plugin Troubles. Reply with quote

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 Very Happy (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 Very Happy

-Twixn-
_________________
Failure is not an option!....It comes bundled with the software.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Twixn
DeleD PRO user


Joined: 01 Dec 2005
Posts: 136
Location: Melbourne Australia

PostPosted: Fri Dec 14, 2007 1:05 pm    Post subject: Reply with quote

Gahh, fixed it.

Added '__stdcall' to everything and used a '*.def' file
(modified from jwatte's ExportTable.def).

Now onto the next problem Razz

-Twixn-
_________________
Failure is not an option!....It comes bundled with the software.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum