View previous topic :: View next topic |
Author |
Message |
nachilau Member
Joined: 09 May 2007 Posts: 3
|
Posted: Wed May 09, 2007 6:46 am Post subject: Problem of using the Visual Studio 2005 Wizard |
|
|
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 |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Wed May 09, 2007 9:29 am Post subject: |
|
|
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 |
|
|
nachilau Member
Joined: 09 May 2007 Posts: 3
|
Posted: Thu May 10, 2007 12:24 am Post subject: |
|
|
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 |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Thu May 10, 2007 6:09 am Post subject: |
|
|
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 |
|
|
nachilau Member
Joined: 09 May 2007 Posts: 3
|
Posted: Thu May 10, 2007 7:06 am Post subject: |
|
|
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 |
|
|
trucker2000 DeleD PRO user
Joined: 11 May 2005 Posts: 1839 Location: Sacramento, California
|
Posted: Sat Oct 06, 2007 11:29 pm Post subject: |
|
|
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 |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
|
Back to top |
|
|
trucker2000 DeleD PRO user
Joined: 11 May 2005 Posts: 1839 Location: Sacramento, California
|
Posted: Mon Oct 08, 2007 12:12 am Post subject: |
|
|
Thankyou. I'll take a look and see if I can figure things out. _________________ 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 |
|
|
|