Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Creating A DLL for GameMaker; Using Microsoft Visual C++ 2008
Topic Started: Oct 22 2009, 02:23 AM (3,913 Views)
NGen
Member Avatar
Advanced Member
[ *  *  * ]
By using templates, etc. I meant using them within the functions. For example:

Code:
 
#include <vector>
double DLLEXPORT Vect ( ) {
std::vector<int> N;
N.push_back ( 0 );
return 0;
}


I thought that something like that would cause the game to crash.
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
Nope, that is not a problem at all. You can use absolutely all language features of C++ for Game Maker DLLs. The only thing where you are restricted to a very small subset are the interface functions for Game Maker.
Offline Profile Quote Post Goto Top
 
NGen
Member Avatar
Advanced Member
[ *  *  * ]
T_T

I saw that the person who made the 39DLL made their own List class, so I assumed... crap. I just realized that was only for memory management. -.- SPECIAL ME.
Offline Profile Quote Post Goto Top
 
Gandalf20000
Member Avatar
Geek
[ *  *  *  *  *  * ]
I know I'm resurrecting a long-dead topic, but would building a DLL that encompasses multiple classes and files and allows inheritance be done the same way? Would I only need to export the class, or would I have to export every single function, too?
Offline Profile Quote Post Goto Top
 
« Previous Topic · Tutorials · Next Topic »
Add Reply