Originally posted by Fred Harris
View Post
Announcement
Collapse
No announcement yet.
CreateWindow and PBCC
Collapse
X
-
-
Hi Chris,
If you use CreateWindowEx instead of the older CreateWindow, which, if memory serves, is macro'ed to CreateWindowEx anyway, at least hello, world type apps compile 'as is' with CC5. I just tried it to see if anything changed in that regard with CC5 because that is what I had found with CC4 and windows gui programs. Of course, you'll get a console too!
Leave a comment:
-
Thank you Mr Angell.
This is an "own goal" in fact - the V4.03 PBWIN32.INC also has the note about %CCWIN. (although curiously the V4.3 header has:
Code:Last Update: 21 February 2005
Code:Last Update: 27 January 2005
So my V4.03 compiler must have been set up to use another version of the WIN32API.INC file, and compiled my "wrong" source code without a murmur.
Leave a comment:
-
Yes, need to search in he include for comments ...
In the Win32API.inc in the header comments it says:
[QUOTE]
' If you are using the PowerBASIC Console Compiler for Windows, several of
' the GDI functions have been commented out so that the code will not be
' added to your programs. If you need to access these functions you will
' need to add the line:
'
' %CCWIN = 1
'
' Before the #INCLUDE "WIN32API.INC" line. This will re-enable those calls
' for your PB/CC application.
[ /QUOTE]
Leave a comment:
-
CreateWindow and PBCC
Attempting to compile some code with PBCC V5 which compiles OK with PBCC V4, I get an error in COMMCTRL.INC when it tries to reference the function CreateWindow which is declared inside WIN32API.INC conditionally thus:
Code:#IF %DEF(%CCWIN) FUNCTION CreateWindow....
Tags: None
Leave a comment: