Results 1 to 18 of 18

Thread: Tutorials for VC++ Win32 API

  1. #1
    Guest

    Post

    Does anyone have any tutorials for VC++ but not for MFC, for Win32 API?

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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.
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    Guest
    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.

  4. #4
    Addicted Member
    Join Date
    May 2000
    Location
    Grand Rapids, MI
    Posts
    231
    I'm going to recomend what so many other people have, have you tried the dan appleman's API Guide?
    -Karl Blessing aka kb244{fastHACK}
    [email protected]

  5. #5
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    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 ??????????????????????

  6. #6
    Guest
    kb244, i dont think i have, wheres it at?

  7. #7
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    It's a book isn't it? Try Amazon.
    Harry.

    "From one thing, know ten thousand things."

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    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 ???????

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You don't have to download all of it. It's split into small chunks.

    (thinks)

    Didn't you have trouble getting it before?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  11. #11
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    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.

  12. #12
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    What's the exact code you need? I might be able to extract it from the larger files.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  13. #13
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    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.

  14. #14
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  15. #15
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    thanks

  16. #16
    Guest
    Does anyone have any tutorials?

  17. #17
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    I will mail you one !

  18. #18
    Guest
    Go to msdn.microsoft.com and look at the Platform SDK. It has documentation on Windows API functions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width