Results 1 to 7 of 7
  1. #1
    mookamoka3's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    110
    Reputation
    14
    Thanks
    13

    [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.

  2. #2
    Astral Witch's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    106
    Reputation
    13
    Thanks
    30
    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

  3. The Following User Says Thank You to Astral Witch For This Useful Post:

    mookamoka3 (02-05-2011)

  4. #3
    mookamoka3's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    110
    Reputation
    14
    Thanks
    13
    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.


  5. #4
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    EDITED:


    NEVERMIND, LINK REMOVED
    Last edited by 258456; 02-06-2011 at 07:02 PM.

  6. #5
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    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:

    https://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.

  7. #6
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    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.

  8. The Following 2 Users Say Thank You to 258456 For This Useful Post:

    mookamoka3 (02-06-2011),Void (02-07-2011)

  9. #7
    bkbatman's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    usa
    Posts
    29
    Reputation
    6
    Thanks
    0
    My Mood
    Relaxed
    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
    Last edited by bkbatman; 02-07-2011 at 01:28 PM.