/* -------------------------------------------------------------------------
* Project: GSocket (Generic Socket)
- * Name: gsockmsw.c
+ * Name: gsockmsw.cpp
* Author: Guillermo Rodriguez Garcia <guille@iies.es>
* Purpose: GSocket GUI-specific MSW code
* CVSID: $Id$
* -------------------------------------------------------------------------
*/
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
/*
* TODO: for WinCE we need to replace WSAAsyncSelect
* (Windows message-based notification of network events for a socket)
* using select() and sends a message to the main thread.
*/
-/*
- * PLEASE don't put C++ comments here - this is a C source file.
- */
-
/* including rasasync.h (included from windows.h itself included from
* wx/setup.h and/or winsock.h results in this warning for
* RPCNOTIFICATION_ROUTINE
#include "wx/msw/gsockmsw.h"
#include "wx/gsocket.h"
-extern "C" HINSTANCE wxGetInstance(void);
+extern "C" WXDLLIMPEXP_BASE HINSTANCE wxGetInstance(void);
#define INSTANCE wxGetInstance()
#else
* be available and it must contain the app's instance
* handle.
*/
+extern HINSTANCE hInst;
#define INSTANCE hInst
#endif /* __GSOCKET_STANDALONE__ */
/* Global variables */
-extern HINSTANCE INSTANCE;
static HWND hWin;
static CRITICAL_SECTION critical;
static GSocket* socketList[MAXSOCKETS];