[help]Windows API

Posts 17 of 7 · Page 1 of 1
[help]Windows API
Alright so the tutorial i was reading on windows API did a STUPIDLY bad job of explaining the structure for an application that uses it....

What i gathered was that i need to use:

#include <windows.h>

probably include that in my external files section too, and my main() function becomes Winmain() i think?

main problem with that is that my main function is called _tmain(blahblahblah) thanks to the default in visual studio 2010...

so if theres anything else that needs to be changed in my code and you feel like helping that'd be just dandy.
Quote Originally Posted by Astral Witch View Post
heres a good tutorial

theForger's Win32 API Tutorial

on the left side there should be a list, obviously start from "getting started" and move your way down

good luck
appreciated, I'll go read it now.

EDITED:


NEVERMIND, LINK REMOVED
Quote Originally Posted by 258456 View Post
Also, here is a really helpful book for WinApi, all you need to start is a thorough knowledge of C or C++ (doesn't matter which one). Here is the link:

http://www.medi afire.com/?iy2ytiqazzn
Take out the space in link.

I have include the compiled html version and the pdf version, they are both the same but some people like html some people like pdf so your choice, lol. Have fun.
You need to get outside links approved by staff before you can post it.
oh, even if it's just a pdf or compiled html? Anyhow sorry, i will remove the link. mookamoka if you need them just pm me.
Quote Originally Posted by mookamoka3 View Post
Alright so the tutorial i was reading on windows API did a STUPIDLY bad job of explaining the structure for an application that uses it....

What i gathered was that i need to use:

#include <windows.h>

probably include that in my external files section too, and my main() function becomes Winmain() i think?

main problem with that is that my main function is called _tmain(blahblahblah) thanks to the default in visual studio 2010...

so if theres anything else that needs to be changed in my code and you feel like helping that'd be just dandy.
#include <windows.h> // is the standard for window programming when ever u trying to use a window feature u have to use this

// WinMain() function is the equivalent of the main() function in the Win32 Console
and this is the prototype for it

int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow);

and beside what book u reading
Posts 17 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?