Author Topic: Include windows.h  (Read 505 times)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5111
  • O Rly?
    • View Profile
Include windows.h
« on: 2021-Feb-14 »
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
« Last Edit: 2021-Feb-14 by Schranz0r »
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard