i want to use WinAPI in c? can anyone tell me how to start that? now i learn VB too. since it is easy to learn. hahha. please help me to show how to start with winAPI. thanks alot.
i want to use WinAPI in c? can anyone tell me how to start that? now i learn VB too. since it is easy to learn. hahha. please help me to show how to start with winAPI. thanks alot.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
The best tutorial I know of is here...
theForger's Win32 API Tutorial
Basically winapi in C is all about handling messages... Pratically everything windows does results in messages sent to a special loop in your code and you get to deal with them so be extra careful to pay attention to that part of the tutorial. In the next while your life will be filled with complex switch statements... but once you get the hang of it, it's not really all that bad.
You will also need the windows SDK (Software Development Kit) documentation which you can download here....
Download details: Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1
The SDK is a full disclosure of all windows function calls. It's HUGE... so before you just go and download everything, I suggest you go through the installer options and *only download the documentation* for Windows... screw .NET it's a load of crap.
Finally I'm not fond of Microsoft's Visual C++ compiler. It will compile C but you can do a lot better... I generally suggest PellesC which is free and comes with a full set of windows headers.
Pelles C - Download
You may also want to join their forums so you can get PellesC specific answers to problems or questions...
Pelles C forum - Index
Hope that helps....