X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2FWin32%2Fhidecmd.c;h=60500d1e60110202efe6c6d965ca988cbf6e4a48;hb=08c2c256293e4e21f325d3e1dcef1b8df481c3ef;hp=19fcbafbf19f85a072b8067c939f8a47cbe793f1;hpb=60fa71373766537a7fe98305fedbb3f6441c72b1;p=lyx.git diff --git a/development/Win32/hidecmd.c b/development/Win32/hidecmd.c index 19fcbafbf1..60500d1e60 100644 --- a/development/Win32/hidecmd.c +++ b/development/Win32/hidecmd.c @@ -47,9 +47,11 @@ #pragma comment(linker,"/NODEFAULTLIB") // unite code and data section (make the program smaller) #pragma comment(linker,"/MERGE:.rdata=.text") -// resolve record in section of code +// open code section for writing #pragma comment(linker,"/SECTION:.text,EWR") -// the new entry point (the WinMain entry point is big) +// redefine an entry point of the executable +// Must be used, if entry point 'void NewWinMain(void)' is used, +// instead of the standart 'int WINAPI WinMain(HINSTANCE hInst, ...)' #pragma comment(linker,"/ENTRY:NewWinMain") void NewWinMain(void)