changeset 59:286ffd8e8ed8

Don't use WinMain() in the example, use main() since the conversion is done already above.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 21 Nov 2001 23:39:41 +0000
parents 5c66a108aa47
children 61869769c050
files win/dw.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Wed Nov 21 23:37:15 2001 +0000
+++ b/win/dw.c	Wed Nov 21 23:39:41 2001 +0000
@@ -6495,18 +6495,13 @@
 /*
  * Let's demonstrate the functionality of this library. :)
  */
-int WINAPI WinMain(
-  HINSTANCE hInstance,
-  HINSTANCE hPrevInstance,
-  LPSTR lpCmdLine,
-  int nCmdShow
-)
+int main(int argc, char *argv[])
 {
 	ULONG flStyle = DW_FCF_SYSMENU | DW_FCF_TITLEBAR |
 		DW_FCF_SHELLPOSITION | DW_FCF_TASKLIST | DW_FCF_DLGBORDER;
 	int pageid;
 
-	dw_init(TRUE, 0, NULL);
+	dw_init(TRUE, argc, argv);
 
 	/* Try a little server dialog. :) */
 	mainwindow = dw_window_new(HWND_DESKTOP, "Server", flStyle | DW_FCF_SIZEBORDER | DW_FCF_MINMAX);