GLBasic forum

Main forum => Bug Reports => Topic started by: MrTAToad on 2009-Aug-16

Title: DLL-Win32 example doesn't compile.
Post by: MrTAToad on 2009-Aug-16
I'm correct this time :)

error: `CONST' has not been declared

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

Title: Re: DLL-Win32 example doesn't compile.
Post by: Schranz0r on 2009-Aug-17
code?
Title: Re: DLL-Win32 example doesn't compile.
Post by: MrTAToad on 2009-Aug-17
Code (glbasic) Select
INLINE
DECLARE_C_ALIAS(WinMessy, "user32.dll", "MessageBoxA", (void*, CONST char*, CONST char*, int), int);
ENDINLINE
Title: Re: DLL-Win32 example doesn't compile.
Post by: Schranz0r on 2009-Aug-17
ahh now i understand :D

The IDE makes const to CONST...
Sometimes i had the same problem   :'(
Title: Re: DLL-Win32 example doesn't compile.
Post by: MrTAToad on 2009-Aug-17
I dont see why though unless CONST is a GLBasic command...
Title: Re: DLL-Win32 example doesn't compile.
Post by: Kitty Hello on 2009-Aug-17
CONST is... sort of a GLBasic command. It is, but not public, yet, since there's some problems with it.
Title: Re: DLL-Win32 example doesn't compile.
Post by: MrTAToad on 2009-Aug-17
ahhh :)