Fixed WinMain's signature.
This commit is contained in:
parent
49d251ff30
commit
28fc36d38c
|
@ -4,7 +4,7 @@ char szAppName[] = "Hello";
|
|||
|
||||
long FAR PASCAL WndProc(HWND, UINT, WPARAM, LPARAM);
|
||||
|
||||
int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInst, LPSTR lpszCmdLine,
|
||||
int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpszCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
HWND hwnd;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "windows.h"
|
||||
|
||||
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
||||
int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
{
|
||||
return MessageBox((HWND)0,
|
||||
(LPSTR)"Hello, hello!",
|
||||
|
|
|
@ -82,7 +82,7 @@ LRESULT CALLBACK WndProc (HWND wnd, UINT msg, WPARAM w, LPARAM l)
|
|||
return 0l;
|
||||
}
|
||||
|
||||
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
||||
int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
{
|
||||
MSG msg;
|
||||
WNDCLASS class;
|
||||
|
|
|
@ -99,7 +99,7 @@ LRESULT CALLBACK WndProc2 (HWND wnd, UINT msg, WPARAM w, LPARAM l)
|
|||
return 0l;
|
||||
}
|
||||
|
||||
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
||||
int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
{
|
||||
HWND wnd,wnd2;
|
||||
MSG msg;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
|
||||
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
||||
int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
{
|
||||
SYSTEM_INFO si;
|
||||
void (CALLBACK *fnGetSystemInfo)(LPSYSTEM_INFO si);
|
||||
|
|
|
@ -6,7 +6,7 @@ HANDLE ghInstance;
|
|||
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
|
||||
LRESULT CALLBACK ChildProc (HWND, UINT, WPARAM, LPARAM);
|
||||
|
||||
int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance,
|
||||
int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
||||
LPSTR lpszCmdParam, int nCmdShow)
|
||||
{
|
||||
char szAppName[] = "ClassLook" ;
|
||||
|
|
|
@ -220,7 +220,7 @@ WPARAM MessageLoop()
|
|||
}
|
||||
}
|
||||
|
||||
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
||||
int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
{
|
||||
WNDCLASS class;
|
||||
if(!prev)
|
||||
|
|
|
@ -101,7 +101,7 @@ OLECHAR* AtoW( char* p )
|
|||
#endif
|
||||
|
||||
|
||||
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
||||
int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
{
|
||||
VARIANTARG va;
|
||||
VARIANTARG vb;
|
||||
|
|
|
@ -854,7 +854,7 @@ LRESULT NOTEPAD_WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
* WinMain
|
||||
*/
|
||||
|
||||
int PASCAL WinMain (HANDLE hInstance, HANDLE prev, LPSTR cmdline, int show)
|
||||
int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
{
|
||||
MSG msg;
|
||||
WNDCLASS class;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "windows.h"
|
||||
#include "version.h"
|
||||
|
||||
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
||||
int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
{
|
||||
return ShellAbout((HWND)0, "WINE", WINE_RELEASE_INFO, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue