Tei,

My guess is that you are trying to write a self-extracting file.  Look
at the following link to find out how this can be done on Windows.

http://www.codeproject.com/file/packersfx.asp

There are a few more examples at the codeproject site.

-Scott

tei wrote:


This is slighty off-topic:


I want to merge a .exe file and a pak file, and code into the exe file
the ability to read these file:

copy mini.exe minipak.exe
cat 8pool\pak1.pak >> minipak.exe

So minipak is mini.exe + pak1.exe (become a big 8 MB exe file)

But this fails:

f = fopen(argv[0], "rb");

Help!
Yes, I know the argv[0] file will be already open by windows. A
workaround? a solution?

TIA

--Tei




_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to