Programming Talk / C++ / C# - C++ Tutorial - How to create a DarkBASIC Professional plugin in Dev-C++ |
| Author | Message | ||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
|
||
| Back to top |
|||
|
Kieran
User ![]() Joined: Sun Aug 6th 2006 Location: Hamilton, New Zealand |
|
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
Thanks Kieran. Cheers, -naota |
||
| Back to top |
|||
|
Mistrel
PureGDK Moderator ![]() ![]() Joined: Wed Nov 9th 2005 Location: Cyberspace |
I get several compile errors when trying to compile the HelloWorld example. + Code Snippet Gamers found a solution for this by installing some sort of DirectX SDK for Dev-cpp. http://3dfolio.com ![]() |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
Yeah the DirectX SDK is required for GlobStruct or the DirectX commands to be used. Cheers, -naota |
||
| Back to top |
|||
|
SunDawg
User ![]() Joined: Tue Dec 21st 2004 Location: Massachusetts |
Instead of using the DirectX stuff, you could instead define those two types like so: + Code Snippet and then comment out #include "D3dx9tex.h" + Code Snippet Note the note on the end, reminding you that that DirectX stuff has be disabled. I like this fix better, because it's quick, and doesn't take any extra installation, giving you a smaller DLL size if you don't use those two types. EDIT: By the way, "DB user 2006+", would that '-naota' happen to be an FLCL reference? http://www.funk.us.tt/ |
||
| Back to top |
|||
|
Benny53
User Joined: Sun Dec 25th 2005 Location: Ohio |
haha,FLCL is insane as hell man. That confused me sooooo much,hahaha. One of my favorite shows though. Now back to being on topic, this looks pretty nice. If I didn't have a program to get the dbp functions from the dlls in like,less than 10 seconds,I'd use this. This will help many people Hello |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
@Benny53 Hells ya FLCL is awsome! @SunDawg I'll implement something similiar later on. And yes. Naota is an FLCL reference ^_^ Cheers, -naota |
||
| Back to top |
|||
|
DrDunc
User Joined: Wed Nov 2nd 2005 Location: MemBlock 12 (alt. file Thinking12.mem) |
This looks good, you have spent some time on it! I've been looking for something like this for some time but to no avail... Can't wait to have a good test with it. Will have to brush up my C++ though. Well done and keep up the good work! |
||
| Back to top |
|||
|
MaRo
User Joined: Sun Jan 1st 2006 Location: Central Europe |
Thanks, this will definitely come in handy |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
@DrDunc Thanks. @MaRo Thank you. Cheers, -naota |
||
| Back to top |
|||
|
Gamefreak
User Joined: Sun Jun 20th 2004 Location: Cyberspace |
I'm having trouble getting the examples (and the tutorial to work) -I downloaded and installed Dev C++ 4.9.8 -I downloaded and installed the DirectX package for Dev C++ -I downloaded and installed your plugin -I opened the spinning cube project and did a Rebuild All -I copied the dll into the user plugins folder -I opened the DBPro spinning cube project and hit compile, it didn't recognize the command |
||
| Back to top |
|||
|
Foe7
User Joined: Mon Mar 26th 2007 Location: Cyberspace |
I am unable to get the above to compile, just like I am unable to get the 3D cube example to compile. When I try and get the above to compile, I get: + Code Snippet and for the 3D cube: + Code Snippet |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
|
||
| Back to top |
|||
|
Gamefreak
User Joined: Sun Jun 20th 2004 Location: Cyberspace |
Windows XP |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
@Gamefreak I can't really suggest anything for your problem then. Do not use spaces in your project name, and contact GatorHex (Who was able to successfully compile, despite having the same problems). Hope that at least somewhat helps. Cheers, -naota |
||
| Back to top |
|||
|
Foe7
User Joined: Mon Mar 26th 2007 Location: Cyberspace |
Vista, but i really hope that doesn't mean that this won't work :c -F7 |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
@Foe7 Some of my friends have experienced problems with Vista and Dev-C++... Apparently Dev-C++ was trying to look for files on the desktop, and at random other folders. The solution was to use XP for one friend, and the other, I'm not sure what his solution was. Seek out Benoj, he will help you. Cheers, -naota |
||
| Back to top |
|||
|
Turoid
User Joined: Sat Nov 1st 2003 Location: The Netherlands |
Very nice tutorial, I'm going to play with it when I get home I am awesome and always right. |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
|
||
| Back to top |
|||
|
Google Ad
AdBot Joined: Aug 26th 2002 Location: Everywhere |
|||
| Back to top |
|||
|
Silvester
User Joined: Wed Dec 7th 2005 Location: Netherlands |
When compiling it gives me about 13 errors,some compiling issues,and some of files not exising... |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
|
||
| Back to top |
|||
|
Silvester
User Joined: Wed Dec 7th 2005 Location: Netherlands |
|
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
@Prince of Darkness You need the DirectX 9.0c SDK... If you go through the official thread for DBPPluginSDK, you would see how to fix this. Cheers, -naota |
||
| Back to top |
|||
|
Silvester
User Joined: Wed Dec 7th 2005 Location: Netherlands |
|
||
| Back to top |
|||
|
Benjamin
User Joined: Sun Nov 24th 2002 Location: France |
You need to go to project options, and add an include directory for wherever the include directory is in the SDK. |
||
| Back to top |
|||
|
Silvester
User Joined: Wed Dec 7th 2005 Location: Netherlands |
|
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
Also, I should note that it won't work with the MSVC++ DirectX SDK, only the Dev-C++ one. Cheers, -naota |
||
| Back to top |
|||
|
Foe7
User Joined: Mon Mar 26th 2007 Location: Cyberspace |
Okay, well, I fixed the problem that gave me the previous error, and it is supposed to work now (I followed these steps: https://sourceforge.net/forum/message.php?msg_id=4156252 However, guess what, it doesn't work. Here's what's wrong now: + Code Snippet and the compile log: + Code Snippet so I don't know whether or not it's the code or Vista. |
||
| Back to top |
|||
|
Kieran
User ![]() Joined: Sun Aug 6th 2006 Location: Hamilton, New Zealand |
|
||
| Back to top |
|||
|
NinJA999
User Joined: Fri Nov 11th 2005 Location: NH |
Hmm, I followed the steps above and put the DLL into the Compiler/plugins-user folder, but DBPro's not recognizing the command! When I look at the DLL with DLL Export, I don't see the function, only this: agebox_Plugin.dll ![]() |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
@Foe7 Kieran pretty much explained what to do. @Kieran Thanks. @NinJA999 Can you show me the string table of the DLL, and your system specs? Cheers, -naota |
||
| Back to top |
|||
|
NinJA999
User Joined: Fri Nov 11th 2005 Location: NH |
String Table: + Code Snippet Sys specs: not sure *exactly* what you mean but DB/Dev-C++ SDK v3 Dev-C++ 4.9.9.2 DirectX 9.0c SDK DarkBasic Pro 6.6 MS Windows XP Home 2.2ghz amd athlon xp 3500+ 2.5gb ram if that helps? ![]() |
||
| Back to top |
|||
|
Foe7
User Joined: Mon Mar 26th 2007 Location: Cyberspace |
Well, here to report another update I've found: It seems that the first error, + Code Snippet is simply solved by copying the file: dllcrt2.o, found in the lib folder, to your project directory. This then produces a similar error, solved by copying: crtbegin.o, found in libgccmingw3.4.2 to the project directory. During this, the second error (i guess: + Code Snippet ) remains there. After the previous steps, i do not think that the compile log has changed. However, there is a new line of text visible under the compiler tab: + Code Snippet So I don't know what it means...and sadly, going back to XP is not really an option, as this PC was bought strictly for vista, and I was told to not rollback...so hopefully there's another alternative. Sadly, MSVC# doesn't work in vista either, so i'm assuming MSVC++ won't, so I'm at a loss as to what to do [EDIT] Ah, yes, this only seems to happen for dll's, I'm assuming as for non-dll's it doesn't call dllcrt2 and all that. |
||
| Back to top |
|||
|
NinJA999
User Joined: Fri Nov 11th 2005 Location: NH |
I checked my problem with all of the examples, and none of the commands are recognized by DBPro! ![]() |
||
| Back to top |
|||
|
Zeus
User Joined: Sat Jul 8th 2006 Location: Atop Mount Olympus |
I get these errors. 61 C:\Dev-Cpp\header.h include\DBPPlugin\DBPPluginTemplate.h: No such file or directory. 9 C:\Dev-Cpp\main.cpp expected constructor, destructor, or type conversion before "void" 9 C:\Dev-Cpp\main.cpp expected `,' or `;' before "void" ![]() |
||
| Back to top |
|||
|
Kieran
User ![]() Joined: Sun Aug 6th 2006 Location: Hamilton, New Zealand |
@JSG would help if we had some code to look at, make sure you have installed the template properly also... If you don't know any c++ or hardly any then I suggest you do so before trying this otherwise it will be too hard. Make sure you have a newer version of dev-c++ installed as well as this was made for dev-c++ and not a different compiler, however it may work in there. |
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
Looks to me like you either, A, didn't install the SDK correctly, or B, you added an "include/" to something... Ex: + Code Snippet Cheers, -naota |
||
| Back to top |
|||
|
Zeus
User Joined: Sat Jul 8th 2006 Location: Atop Mount Olympus |
|
||
| Back to top |
|||
|
Aaron Miller
User ![]() Joined: Sat Feb 25th 2006 Location: Behind the trusty dumpster. |
|
||
| Back to top |
|||
This is a multi-page thread older than 30 days.
Go to the last page to check if you can reply to it.
Go to the last page to check if you can reply to it.
Forum Search
Enter a word or phrase to search our Forum for:
|
|










http://3dfolio.com 




