Include windows.h

Previous topic - Next topic

Schranz0r

Small update on windows.h include:

Copy&Paste this into a new file:
(make sure you have the headerfiles installed!)
Code (glbasic) Select

INLINE

}
#define HINSTANCE W32HINSTANCE
#define HINSTANCE__ W32HINSTANCE__
#define HMODULE W32HMODULE
#undef LPSTR
#undef DECLARE_HANDLE
#undef LPCTSTR
#undef DWORD
#undef LPWSTR
#undef LPCWSTR
#define HWND W32HWND
#define HWND__ W32HWND__
#define HANDLE W32HANDLE
#undef MAX_PATH
#undef TCHAR
#define WIN32_LEAN_AND_MEAN
#define WinMain WinMain2
#include <windows.h>
namespace __GLBASIC__ {

ENDINLINE


*fixed:
Code (glbasic) Select
error: conflicting declaration 'typedef struct W32HINSTANCE__* HMODULE'
   typedef HINSTANCE HMODULE;

with:
Code (glbasic) Select
#define HMODULE W32HMODULE
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard