Does anyone have any tutorials for VC++ but not for MFC, for Win32 API?
Printable View
Does anyone have any tutorials for VC++ but not for MFC, for Win32 API?
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.
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.
I'm going to recomend what so many other people have, have you tried the dan appleman's API Guide?
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 ??????????????????????
kb244, i dont think i have, wheres it at?
It's a book isn't it? Try Amazon.
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).
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 ???????
You don't have to download all of it. It's split into small chunks.
(thinks)
Didn't you have trouble getting it before?
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.
What's the exact code you need? I might be able to extract it from the larger files.
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.
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.
thanks
Does anyone have any tutorials?
I will mail you one !
Go to msdn.microsoft.com and look at the Platform SDK. It has documentation on Windows API functions.