Constants

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by blueb.

Anyone know 'where' the default constants are located in the PB package?

e.g. #PB_EventCloseWindow
#Ps_Solid

Regards,
blueb
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by blueb.

Doesn't anyone know where to find all these 'pre-defined' constants?

I just learned that the Windows API constants need a # in front of them to work with PureBasic
e.g. SM_CXSCREEN (as defined in Win32.hlp) becomes #SM_CXSCREEN in PB.

I guess that seems obvious to anyone who's used the language for a while, but beginners are really struggling to find info. I think there should be a spot (web page at PureBasic?) with all these type of things answered. Either a frequently asked questions (FAQ) page or a series of basic info pages (besides the actual PB Help pages)

Here is an example of some info that I'm looking for at this moment.
1 - where are the pre-defined constants kept?
2 - How can I look through them?
3 - Windows API uses a lot of structures. How can I can I send info to and receive info from a WinAPI structure (such as RECT)?

4 - How can I use standard DLL files in my applications?

etc. etc.

While having some experience with WinAPI helps me, I understand beginners need a place to find answers to these questions.

These forums help a lot, but it is hard to sift through the posts. The should be a better place to place these FAQ

Regards,
blueb
Post Reply