PiZZAMiN Posted December 21, 2010 Posted December 21, 2010 So I'm making a keygenme and I need to know how to load the dlls from a resource. do you extract them to c:\windows\system32? how do you call them from there? I'm using Fmod
ErrorShow Posted December 22, 2010 Posted December 22, 2010 As i known,in vc++,you can add your dlls in your project ,and..you know,let them ba a part of resource.I mean,these dlls are resource can be compile with c++ code. Then ,use LoadResource(3 apis) Load them ,next,Call CreateFile API to create file you want to!SO....it's the steps.Hope useful to you
Kurapica Posted December 22, 2010 Posted December 22, 2010 http://board.b-at-s.info/index.php?showtopic=7176/>http://board.b-at-s.info/index.php?showtopic=7112/>http://board.b-at-s.info/index.php?showtopic=6961
PiZZAMiN Posted December 23, 2010 Author Posted December 23, 2010 As i known,in vc++,you can add your dlls in your project ,and..you know,let them ba a part of resource.I mean,these dlls are resource can be compile with c++ code. Then ,use LoadResource(3 apis) Load them ,next,Call CreateFile API to create file you want to!SO....it's the steps.Hope useful to you BUUUUUUUUUUUUUUUUUUUUUUUUUUTTT you didn't tell me anything I didn't know! where do I extract them!??!
Killboy Posted December 23, 2010 Posted December 23, 2010 anywhere you wanttemp directory, next to your exe, doesnt mattersystem32 is a bad idea for a few reasons...
PiZZAMiN Posted December 23, 2010 Author Posted December 23, 2010 anywhere you wanttemp directory, next to your exe, doesnt mattersystem32 is a bad idea for a few reasons...So then how will it load the dll? I don't want it next to the exe
atom0s Posted December 23, 2010 Posted December 23, 2010 If its in the resource you are either going to have to:A. Extract it somewhere and load it.B. Manually map it into memory from the resource.
ErrorShow Posted December 23, 2010 Posted December 23, 2010 (edited) BUUUUUUUUUUUUUUUUUUUUUUUUUUTTT you didn't tell me anything I didn't know! where do I extract them!??! I'm not understand about VB!In vc++,the following steps can load your dll or other data to where you want to extract them 1.Add your dlls in your current project as resources.(I think,you DO KNOW how to handle this step) 2.Do something ,make sure that your program can auto load dlls while its running.for example: void LoadMyDlls() { FindResource(...); LockResource(...); SizeofResource(...); LoadResource(...); return; } now,we had a bufffer to hold the data(of course,it's you dlls). 3.CALL CreateFile to create a file you wanna to HANDLE hFile = CreateFileA(FilePath,...); the FILE PATH is the place you want to extract dlls,MUST BE FULL PATH!!!! end.. Edited December 23, 2010 by ErrorShow
Killboy Posted December 23, 2010 Posted December 23, 2010 what is it with everybody not doing any research by theirselves?of all the questions people ask here:20% are crack requests20% are just waaaaaay too dumb to even consider answering20% is crap the poster would have been faster off by just entering the exact same question into google20% are people no matter how much info you give them on a silver platter, they keep asking for 'examples', 'source codes', 'demonstrations'the rest is what keeps me sticking around
PiZZAMiN Posted December 23, 2010 Author Posted December 23, 2010 If its in the resource you are either going to have to:A. Extract it somewhere and load it.B. Manually map it into memory from the resource.Thank you. I just got an idea. add the dlls and the exe to a second project, then extract them all to temp at load, load exe, then close.
PiZZAMiN Posted December 23, 2010 Author Posted December 23, 2010 what is it with everybody not doing any research by theirselves?of all the questions people ask here:20% are crack requests20% are just waaaaaay too dumb to even consider answering20% is crap the poster would have been faster off by just entering the exact same question into google20% are people no matter how much info you give them on a silver platter, they keep asking for 'examples', 'source codes', 'demonstrations'the rest is what keeps me sticking aroundOk. I tried looking on google, but NOTHING! I was just seeing if you guys have anything! All the other bs loads with 500 errors.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now