Idea:Embed dependencies in EXE file..

happyboy
04-08-2004, 05:12 PM
Hello everyone..
I was doing some thinking about how to embed dependencies in the exe file and I come with two ideas:
1- the first one is to put the dependencies in the res file of the exe file..
2- the second is to put it in an OLE object ...
I think it would be better to use the second idea and what makes it good is that you can use the .SaveToFile or .SaveToOLEFile methods and because the res file is more exposed...
the problem is that when I tried both of these two methods for the OLE the app created a file with a bigger size than the original one and when I opened it in a hex editor I found that there are a lot of stuff before and after the wanted data...
what I'm trying to do is to save the file (as it was inserted ) and then use some code to register server it..
is there any way to save only the file (the dependency) from the OLE as it was inserted...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum