Posted: Sat Mar 01, 2003 9:27 pm
Restored from previous forum. Originally posted by StSchnell.
Hello community,
at the moment I code a programm with access to the WinAPI. Now I have questions about handling with the API:
1. Is it possible to have the same access to constants of the API as to the functions, e. g. Sleep_(1000) calls the API function sleep, with WM_CLOSE_ or #WM_CLOSE I get the number 16?
2. Is it possible to use a special character for number in hex format, e. g. #SYNCHRONIZE = 1048576, but the API said #SYNCHRONIZE = &H100000. Okay, it is the same, but all API documents use hex format, can I use hex format too?
3. If I get an API function a string, and it needs a zero terminted string, is it necessary to use + Chr(0) at the end of the string or set it PureBASIC automatically?
4. Exist a function Not in PureBASIC, e. g. If i=1..., If Not i=1 or IfNot i=1?
5. Which debuglevel exist 0, 1, 2... or A, B, C... and what do each of them resp. what does it mean?
6. Is it possible to see local variables in the window of the debugger, without using the command Debug ?
Thanks for answers.
Bye
Stefan
StSchnell
Hello community,
at the moment I code a programm with access to the WinAPI. Now I have questions about handling with the API:
1. Is it possible to have the same access to constants of the API as to the functions, e. g. Sleep_(1000) calls the API function sleep, with WM_CLOSE_ or #WM_CLOSE I get the number 16?
2. Is it possible to use a special character for number in hex format, e. g. #SYNCHRONIZE = 1048576, but the API said #SYNCHRONIZE = &H100000. Okay, it is the same, but all API documents use hex format, can I use hex format too?
3. If I get an API function a string, and it needs a zero terminted string, is it necessary to use + Chr(0) at the end of the string or set it PureBASIC automatically?
4. Exist a function Not in PureBASIC, e. g. If i=1..., If Not i=1 or IfNot i=1?
5. Which debuglevel exist 0, 1, 2... or A, B, C... and what do each of them resp. what does it mean?
6. Is it possible to see local variables in the window of the debugger, without using the command Debug ?
Thanks for answers.
Bye
Stefan
StSchnell