Silva Posted October 18, 2008 Share Posted October 18, 2008 Summary : I need to create a dll with a function(maybe the term is export?) called something like GetModName , when called it will create a dialog box something like this: basically a text box and an okay button ( maybe a Cancel button). This is the tutorial I followed to create a dll : http://edais.mvps.org/Tutorials/CDLL/index.html I have been searching and trying for ages, but I just cannot figure out a way to make that dialog box in a dll and make it appear. I reckon if I get that working, the rest of the code should be easy enough. Really long story about what I'm trying to accomplish and why I need this, which no one will probably read : There is this freeware fighting game called Little Fighter 2 ( http://www.lf2.net ) . It is easily customizable which is why lots of mods are made for it. For a long while(couple of years) the latest version was 1.9 and I hacked it up a bit to create a sort of mod loader ( http://www.lf2mods.com ). It worked by abusing the network screen (the only place which let you type stuff). Screenshot : http://img363.imageshack.us/img363/1228/screenshotwm7.png I really don't like this solution because : * It disables network play * If you enter the name of a mod which doesn't exist it crashes * You are always prompted with the screen to choose a mod Now, on the 10th year anniversary of little fighter 2, the creators decided to make an update. And I saw this as a golden opportunity to make the mod loader the proper way(or atleast a little bit better than before). The plan is to create another item in the main menu called "Load Mod" , if its pressed then it will call the function GetModName from a dll (the dll will be added to the import table of the exe using IIDKing v2.01 http://www.reteam.org/tools.html) which will get a valid name of a mod from the user using a dialog. The rest is all easy. The only problem I'm having is with the dll part, since I'm a real noob at c++ and can only copy-paste code from different places and connect it together to make it work. Hopefully someone here will be able to help me, or give me a good nudge in the direction. PS: Creating a dialog box in a dll is different from creating it in a normal program(as far as I can tell), don't just link me to some basic c++ winapi tutorial, I've searched a lot and can't find anything that covers this (or maybe I'm to stupid to understand). Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.