DLL-Win32 example doesn't compile.

Previous topic - Next topic

MrTAToad

I'm correct this time :)

error: `CONST' has not been declared

Of course, the lower-case command 'const' should be used instead


Schranz0r

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

MrTAToad

Code (glbasic) Select
INLINE
DECLARE_C_ALIAS(WinMessy, "user32.dll", "MessageBoxA", (void*, CONST char*, CONST char*, int), int);
ENDINLINE

Schranz0r

ahh now i understand :D

The IDE makes const to CONST...
Sometimes i had the same problem   :'(
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

MrTAToad

I dont see why though unless CONST is a GLBasic command...

Kitty Hello

CONST is... sort of a GLBasic command. It is, but not public, yet, since there's some problems with it.

MrTAToad