001
14.10.2002, 12:36 Uhr
mike
Pinguinhüpfer (Operator)
|
Hi! Probiers mal so:
C++: |
HINSTANCE hApp = ::GetModuleHandle(0); ASSERT(hApp);
HRSRC hResInfo; hResInfo = ::FindResource(hApp,MAKEINTRESOURCE(ID_EXE1),TEXT("PROGS")); HGLOBAL hRes = ::LoadResource(hApp, hResInfo);
BYTE *PROG = (LPBYTE)::LockResource(hRes); int PROG_SIZE = SizeofResource(hApp,hResInfo);
CFile OutFile; OutFile.Open("C:\\TEST.EXE",OF_CREATE|OF_WRITE,NULL); OutFile.Write(PROG,PROG_SIZE); OutFile.Close();
|
mfg mike --
|