Results 1 to 2 of 2

Thread: Using API callls with a WIN32 Console App

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    West Hartford, CT, USA
    Posts
    42

    Using API callls with a WIN32 Console App

    I've got a progam which I compiled using VC++ 6.0 as a WIN32 console app. The program is used as a console app. When the program is executed, I would like to display a MsgBox on the desktop. I figured I could use the API to do this... However, I'm not quite sure how to go about doing this.

    I'd like to keep it simple (as non-invasive as possible).

    Any help would be appreciated.

    Thanks!

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Code:
    #include <windows.h>
    
    // ... somewhere in your code
    MessageBox(NULL, "Text", "Caption", MB_OK);
    Look up MessageBox in MSDN for more details on the parameters.
    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

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