1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#include <windows.h>
#include "main.h"
/*
Delphi funcs :
function BuildKernel ( SrcScript,OutExe : PChar ; CallBack : Pointer) : LongBool;stdcall;
C++ func :
BOOL __stdcall BuildKernel ( LPSTR SrcScript ,
LPSTR OutExe ,
void *CallBack );
*/
void ShowMessage(LPTSTR Msg)
{
MessageBox(0,Msg,"InstallWIz",0);
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
ShowMessage("Appel TRES simple");
_BuildKernel("K","k",NULL);
} |
Partager