Including files in a .dll

Everything else that doesn't fall into one of the other PB categories.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Including files in a .dll

Post by SFSxOI »

I've got this kinda strange idea. Its mostly a 'just want to see if it can be done thing'

I've got a series of .xml files in their respective directories. I want to include all these files in a .dll that can be injected into a process and then the .xml files will be executed. The .xml files are scripts for different things having to do with the application and will be used to change different parameters of the applications function depending on different uses. I want to do this to control distribution of the changes by just distributing one new .dll instead of a bunch of .xml files.

I've got the injection portion, no problem there. But I don't know how to include these .xml script files in a .dll (to be injected) file and get them to execute.

Maybe including them in another .exe rather then a .dll? Don't know how to include in a .exe either.

Any suggestions?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Just use IncludeBinary. (Since xml files aren't executable files I assume you've got your own script interpreter.)
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

yep, got the script interpeter

so you just use 'IncludeBinary' and thats it? I was expecting something a little more complicated...i guess it just goes to show ya, it doesn't have to be complicated at all.

Now lest see if it works

Thanks Trond
Trond wrote:Just use IncludeBinary. (Since xml files aren't executable files I assume you've got your own script interpreter.)
Post Reply