If you don't have experience using version control then you probably won't understand why this tool is incredibly useful.I seen this on yoyogames. I think its kind of useless.
- Game Maker Community
- → Viewing Profile: Posts: cspotcode
cspotcode
Member Since 30 Dec 2009Offline Last Active Jun 16 2011 03:50 AM
Community Stats
- Group New Member
- Active Posts 3
- Profile Views 364
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
1
none
Posts I've Made
In Topic: GmkSplitter
11 June 2011 - 11:09 PM
In Topic: Dll Tutorial
30 December 2009 - 11:50 AM
I didn't use any compiler switches other than whatever was default. I tried to find a special option in Dev-C++ similar to the /MT /MD option in VC++, but I couldn't. So whatever is happening is Dev-C++ default.
Also since I just realized Dev-C++ is ancient and unsupported, I should clarify that I installed MinGW separately from Dev-C++ and I'm switching to Code::Blocks as my IDE. I'm gonna see what Code::Blocks does by default. It might just be that, by default, MinGW either statically links or doesn't link to problematic libraries.
EDIT: Here it is. Default install of MinGW, default install of Code::Blocks (it autodetected MinGW), default DLL project template. Just like before I had to change the return type of the function from void to double to make it compatible with GM, and consequently had to add a "return 0;". Other than that, no changes.
testDllDriver2.exe
testDllDriver2.gmk
Also since I just realized Dev-C++ is ancient and unsupported, I should clarify that I installed MinGW separately from Dev-C++ and I'm switching to Code::Blocks as my IDE. I'm gonna see what Code::Blocks does by default. It might just be that, by default, MinGW either statically links or doesn't link to problematic libraries.
EDIT: Here it is. Default install of MinGW, default install of Code::Blocks (it autodetected MinGW), default DLL project template. Just like before I had to change the return type of the function from void to double to make it compatible with GM, and consequently had to add a "return 0;". Other than that, no changes.
testDllDriver2.exe
testDllDriver2.gmk
In Topic: Dll Tutorial
30 December 2009 - 10:41 AM
You can use MinGW instead of Visual C++. Dev-C++ can install MinGW for you and has a project template for DLLs. I had to change "void" to "double" in 2 places and add a "return 0;", and voila! I could test the template in GM.
As for static vs dynamic linking, I'm not sure which has been used in this case. It might not matter if it's not using the MVC runtime. Would someone else please test the dll on their computer? I packed it up in a Game Maker exe that tests it. It should show a "Hello World" popup when you run it.
testDllDriver.exe
If you're wary of running a strange exe, here's a gmk just to show I'm not trying anything sneaky. I can post the DLL's source code as well.
testDllDriver.gmk
EDIT: I forgot to clarify, static linking is what /MT does. Dynamic linking is what /MD does.
As for static vs dynamic linking, I'm not sure which has been used in this case. It might not matter if it's not using the MVC runtime. Would someone else please test the dll on their computer? I packed it up in a Game Maker exe that tests it. It should show a "Hello World" popup when you run it.
testDllDriver.exe
If you're wary of running a strange exe, here's a gmk just to show I'm not trying anything sneaky. I can post the DLL's source code as well.
testDllDriver.gmk
EDIT: I forgot to clarify, static linking is what /MT does. Dynamic linking is what /MD does.
- Game Maker Community
- → Viewing Profile: Posts: cspotcode
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content