Thread: Windows tweaks
View Single Post
  #1  
Old 09-28-2010, 08:37 PM
Shadows91
Fire Beetle
 
Join Date: Jun 2009
Location: ..nosey!
Posts: 7
Default Windows tweaks

Changes:
  • The ShellExecute function requires #include <ShellAPI.h>
  • #include <windows.h> must come before #include <winsock2.h>


Index: worldserver.cpp
================================================== =================
--- worldserver.cpp (revision 1673)
+++ worldserver.cpp (working copy)
@@ -21,7 +21,7 @@
#include <string.h>
#include <stdio.h>
#include <iomanip>
-using namespace std;
+#include <ShellAPI.h>
#include <time.h>
#include <stdlib.h>
#include <stdarg.h>

Index: Items.cpp
================================================== =================
--- Items.cpp (revision 1673)
+++ Items.cpp (working copy)
@@ -8,8 +8,8 @@
*/

#ifdef WIN32
+#include <windows.h>
#include <winsock2.h>
-#include <windows.h>
#else
#include "../common/unix.h"
#endif
Reply With Quote