Page 1 of 1

Posted: Wed Jul 24, 2002 11:12 am
by BackupUser
Restored from previous forum. Originally posted by tranquil.

Hi @ll!

Is there a list existing which includes all (or nearly all) MS-API constants?
I got very often a message "Constant not found" by PB but it is a constant defined by MS in the MSDN. #TVS_CHECKBOXES for example.

Thanks a lot.

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User

Posted: Wed Jul 24, 2002 11:32 am
by BackupUser
Restored from previous forum. Originally posted by PB.

> Is there a list existing which includes all (or nearly all) MS-API constants?

I use the Win32API.txt file from http://www.mvps.org/vb/index2.html?apixref.htm
and have found it to contain 99% of all API constants. It was written for VB, but
obviously can be used with PureBasic as well. Unfortunately it doesn't contain
your #TVS_CHECKBOXES constant either, but it's still a very handy reference.

For constants not listed in it, you can usually use Google to find the hex value,
like so: http://www.google.com/search?q=const+TVS_CHECKBOXES . Just replace
the constant name at the end of the URL with the one you're looking for.


PB - Registered PureBasic Coder

Edited by - PB on 24 July 2002 12:37:25

Posted: Wed Jul 24, 2002 1:01 pm
by BackupUser
Restored from previous forum. Originally posted by El_Choni.

I obtain almost any constant from Nasm and Masm (WINDOWS.INC) include files. Win32n.inc is included with PB in the Library SDK/Nasm folder.

Bye,

El_Choni

Posted: Wed Jul 24, 2002 7:17 pm
by BackupUser
Restored from previous forum. Originally posted by Danilo.

If you want ALL constants, get the Microsoft Platform SDK.
You can download it from Microsoft (~300MB).

cya,
...Danilo

(registered PureBasic user)

Posted: Wed Jul 24, 2002 8:02 pm
by BackupUser
Restored from previous forum. Originally posted by freak.

I use ApiViewer 2002, it also has all Constants, but is only 2mb.
They say, it's more up to date than the Win32API.txt.
It's also much faster to find a constand. Just type it in, and you'll get the
value. There's also a listing of Structures and Procedures of the API.

http://www.apiviewer.de.vu/

(Also it is de.vu, it's still an english page.)

Timo

--

A debugged program is one for which you have not yet found the conditions that make it fail.

Posted: Wed Jul 24, 2002 8:50 pm
by BackupUser
Restored from previous forum. Originally posted by tranquil.

Thanks all for the hints!

@Danielo:

I'm still downloading the complete MSDN SDK (3 CD Version, June 2002) hope
that this is complete. :)

Cheers
Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User

Posted: Thu Jul 25, 2002 5:33 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.

> @Danielo:

without ´E´ please

> I'm still downloading the complete MSDN SDK
> (3 CD Version, June 2002) hope that this is complete. :)

No. We are talking about different things here.

The MSDN Library (3CDs/1DVD) is a documentation
for the WinAPI, for Visual C/C++, VB, Java etc..
It includes eBooks for many different topics,
bug-reports and how to do workarounds for it etc.

Latest MSDN versions are for .NET compilers, but
still include the win32 API help.

MSDN is documentation only and DOESNT include all
constants (only few are listed in the docs).


The MS Platform SDK is another thing.
Its the SOFTWARE DEVELOPMENT KIT with many Help files
and all the include files for programming Win32.

The Include files for Win32 in the P-SDK are ~47MB
uncompressed (5,83MB ZIPped) + 3,5MB for Win64.

But there is more: The directory \Help\ contains
166!! HtmlHelp files for Win32 programming (227MB).

In this Help files you can read about everything:
Win32, Win64, GDI, GDI+, Windows Media, ODBC, Memory Management,
DirectX, FileIO/FileSystem, DLLs, Processes, Threads, ActiveX,
COM, COM+, Common Controls, Debugging and Error Handling,
DNS, DHCP, ICM, IIS, MAPI, RAS, Shell, OpenGL and MUCH MORE...


There are also tools for windows programmers included
in the SDK. Folder \Bin\ is only 70MB, so its not that much.


For Win32 API programmers like you (Tranquil), the free
Microsoft Platform Software Development Kit is the only
way to go. You really NEED it if you want to code indeep API.

Its the OFFICIAL complete documentation directly from MS.
They give it out FOR YOU, so you can program for the
MS Windows Operating System. That is what they want you to do..

For the BASIC programmer who needs only some constants
every now and then, this API-viewers are enough.
The hardcore WinAPI coder takes the P-SDK without a question.
(Some people complain that 300MB is too much to download )


Tranquil, what you need is the Platform SDK, not MSDN.
The big part about .NET is useless for PureBasic win32 API
programming, and the win32 help is also included in the
free P-SDK (MSDN Library is $199 and not free).

You can download all the free Development tools and SDKs here:
http://msdn.microsoft.com/downloads/default.asp

Now you select "Microsoft Development Kits" on the left side
and then "Microsoft Platform SDK".
A new page opens:
http://www.microsoft.com/msdownload/pla ... sdkupdate/

In the menu on the top you select "DOWNLOADS > Full Download"
and you get the page:
http://www.microsoft.com/msdownload/pla ... k-full.htm
where you can download the full Platform SDK (Size: 342,000,000 bytes).

The MS downloads are usually very fast, so you should have
the full SDK in 1 - 1,5 hours with DSL/cable.

You´ll see that its worth it, Tranquil. You have all official
include files with constants and structures and especially
the 166 help files (searchable, access through 1 file).

Things like the old win32.hlp file (available everywhere)
are out of date (but still useful).
With the P-SDK you get ALL the latest and up-to-date informations
complete in one package. No need for 25 different tools and 40
documentations for coding win32 API.

Have fun...

cya,
...Danilo

(registered PureBasic user)

Posted: Thu Jul 25, 2002 7:36 am
by BackupUser
Restored from previous forum. Originally posted by tranquil.

@Danilo:

Thanks for that very detailed help! Thanks a lot, I will download the free Package and will take a closer look on it.

I saw the .net thingie but I dont know what it stands for in the moment! Need to take a look there....

Many cheers...

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User