PDA

Click to See Complete Forum and Search --> : Tutorials for VC++ Win32 API


Sep 27th, 2000, 03:16 PM
Does anyone have any tutorials for VC++ but not for MFC, for Win32 API?

HarryW
Sep 28th, 2000, 05:37 AM
Surely all you need to know is what the Win32 functions are (they should have the same function headers as VB I think) and how to declare and use them in C++. If I remember correctly, to declare an API function you use the keyword API after the function name and before the argument list in the declaration, something like:

returnType functionName API (arg1Type arg1, arg2Type arg2);

Not sure if that's how you do it though, I have only done incredibly simple stuff with Windows programming in C++ and copied the API calls out of a book. The API keyword is in there somewhere.

I think this is one of the benefits of DLLs though: the functions are compiled already and ready to use in any language that can link to them.

Sep 28th, 2000, 11:05 AM
Well i have the Win32 help file, so i got every API at my fingertips. The problems im having are with dialog boxes and resource files.

kb244
Sep 28th, 2000, 12:48 PM
I'm going to recomend what so many other people have, have you tried the dan appleman's API Guide?

PsyVision
Sep 28th, 2000, 12:50 PM
I have made a little win32 app and i have a button on it with a message handler, how do i make it so when the button is clicked another button (called and declared as, HWND hWnd_ButtonDisable) disbles itself, i think its with SendMessage but im not sure ??????????????????????

Sep 28th, 2000, 02:46 PM
kb244, i dont think i have, wheres it at?

HarryW
Sep 28th, 2000, 11:17 PM
It's a book isn't it? Try Amazon.

parksie
Sep 29th, 2000, 12:19 PM
Get the Platform SDK from MSDN - it has full details and examples for how to do things. I can email you some code if you want (the same stuff I sent to PsyVision).

PsyVision
Sep 29th, 2000, 02:39 PM
This is a big plea right, i cannot stay online to get all 500mb + of the download and its not available on cd, can anyone burn a downloaded unused copy to me because i cannot get it because of where i live and my net connection goes after 2hrs.

Anyone Please ???????

parksie
Sep 29th, 2000, 03:43 PM
You don't have to download all of it. It's split into small chunks.

(thinks)

Didn't you have trouble getting it before?

PsyVision
Sep 29th, 2000, 04:21 PM
Yeah, thats the prob, i jut dont have the time to get it, even in small chunks, plus the real code i want i wont be able to get in 2hrs(when my net goes) becuase i have a slow connection.

parksie
Sep 29th, 2000, 05:06 PM
What's the exact code you need? I might be able to extract it from the larger files.

PsyVision
Sep 30th, 2000, 07:45 AM
Well as im knew to VC++ i could do with the documents and samples that show you how to do Win32 apps using message handlers and sendingmessages and changing the state of things on Win32, also on creating textboxes etc.

parksie
Sep 30th, 2000, 08:36 AM
Well, they won't be properly installed this way, so some of the cross-referencing will be broken, but...

1. Go to Microsoft's FTP site at ftp.microsoft.com
2. Change to the folder DEVELOPR\PlatformSDK
3. Under here there will be about 3 folders. Open the latest date
4. Go to COMMON\HELP

Download these files (get <name>.chi and <name>.chm):
winui, win32, shellcc, gdi, dllproc

These should have the information you need. In total, they're about 7.76megs, which isn't too bad.

PsyVision
Sep 30th, 2000, 09:19 AM
thanks

Sep 30th, 2000, 04:13 PM
Does anyone have any tutorials?

PsyVision
Oct 1st, 2000, 03:32 AM
I will mail you one !

Oct 1st, 2000, 12:18 PM
Go to msdn.microsoft.com and look at the Platform SDK. It has documentation on Windows API functions.