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 

Problem of using the Visual Studio 2005 Wizard

 
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
nachilau
Member


Joined: 09 May 2007
Posts: 3

PostPosted: Wed May 09, 2007 6:46 am    Post subject: Problem of using the Visual Studio 2005 Wizard Reply with quote

Hello,

I have download the Visual Studio 8 (2005) Plugin Project Wizard from here
http://www.delgine.com/forum/viewtopic.php?t=1612

I try to compile the DLL and put the DLL in the plugin folder. However, when I load up DeleD, the plugin system give me an error message about my plugin

8/5/2007 1:26:48: Project1.dll: wrong DeleD Version property.

Then I try to change the function in the cpp to
Code:

/**returns version of DeleD*/
PCHAR DLL_EXPORT __stdcall PluginDeleDVersion(){
return (PCHAR)"1.6";
}
/**returns version of Plugin*/
PCHAR DLL_EXPORT __stdcall PluginVersion(){
    return (PCHAR)"2.0";
}


DeleD can load the plugin now, but when I run the plugin, it crashes and said that

CallBaclProc: TPluginManager.GetData:Access violation at address 00400445C in module "deled.exe'. Read of address 313B372D

Can anyone give me some idea what is going on? Thanks!

Nacho
Back to top
View user's profile Send private message
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Wed May 09, 2007 9:29 am    Post subject: Reply with quote

I am not sure, but maybe the Visual Studio Plugin Project Wizard hasn't been updated to use the new plugin architecture yet? All plugins work with XML data now. Are you sure this Wizard is up to date? We need to check that a.s.a.p...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nachilau
Member


Joined: 09 May 2007
Posts: 3

PostPosted: Thu May 10, 2007 12:24 am    Post subject: Reply with quote

I don't know, how can I check whether it is up to date? I download it from the link I describe above.
Back to top
View user's profile Send private message
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Thu May 10, 2007 6:09 am    Post subject: Reply with quote

We are terribly sorry, but that forum post you refer to is outdated (as are all all resources on it). With DeleD 1.6, the information passed to and from the plugin system was changed to use XML. As the new system is not backwards compatible with the old one, changing the DeleD version number in the plugin to 1.6 is not enough to get things up and running (i.e. to answer your question, the fact that the marked deled version is < 1.6 is a sure sign the code is outdated).

To get more information on the communication protocol used by the plugins, see the "Plugin SDK" help file (.chm file) that was installed in the DeleD program folder in your start menu. You'll also find it in the Plugins folder of your DeleD installation. If you have any questions in particular, ask away (in these forums or through direct contact)!

I have contacted Salvatore Russo, the author of the VS2005 template, perhaps he can find the time to update it. Meanwhile, I'll mark that particular forum post to warn people that the resources on it are no longer functional with the latest DeleD versions.
Back to top
View user's profile Send private message Visit poster's website
nachilau
Member


Joined: 09 May 2007
Posts: 3

PostPosted: Thu May 10, 2007 7:06 am    Post subject: Reply with quote

Thank you for the reply. The SDK help come with the installation didn't talk about how can I create my plugin in C++. Can you direct me to some place or tutorial which talk about this? Thanks!
Back to top
View user's profile Send private message
trucker2000
DeleD PRO user


Joined: 11 May 2005
Posts: 1839
Location: Sacramento, California

PostPosted: Sat Oct 06, 2007 11:29 pm    Post subject: Reply with quote

Reviving this as I too would like to see a C++ example or get a finger point to where I can find out how to make delphi talk to C++ and visa-versa, or is this even possible?
_________________
Some day I will grow up and be a real modeler.
"Never give up! Never surrender!!"
Sys specs:
asus
8 gigs ram
Invidia gtx560 video card
Windows 8 (worst op sys Ever)
Back to top
View user's profile Send private message Visit poster's website
jwatte
DeleD PRO user


Joined: 26 Apr 2006
Posts: 513

PostPosted: Sun Oct 07, 2007 6:50 pm    Post subject: Reply with quote

You can find two plug-ins written in C++ on Googlecode.

http://nuxporter.googlecode.com/

http://levelwalker.googlecode.com/

Note that levelwalker requires some files from nuxporter.
Back to top
View user's profile Send private message
trucker2000
DeleD PRO user


Joined: 11 May 2005
Posts: 1839
Location: Sacramento, California

PostPosted: Mon Oct 08, 2007 12:12 am    Post subject: Reply with quote

Thankyou. I'll take a look and see if I can figure things out. Smile
_________________
Some day I will grow up and be a real modeler.
"Never give up! Never surrender!!"
Sys specs:
asus
8 gigs ram
Invidia gtx560 video card
Windows 8 (worst op sys Ever)
Back to top
View user's profile Send private message Visit poster's website
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