WinAPI w/o windows prog?

This is a discussion on WinAPI w/o windows prog? within the Windows Programming forums, part of the Platform Specific Boards category; Is it possible to use windows functions from a console program? Specifically functions that work with registry or display settings?...

  1. #1
    Evil Member
    Join Date
    Jan 2002
    Posts
    638

    WinAPI w/o windows prog?

    Is it possible to use windows functions from a console program? Specifically functions that work with registry or display settings?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

    Re: WinAPI w/o windows prog?

    Originally posted by Imperito
    Is it possible to use windows functions from a console program? Specifically functions that work with registry or display settings?
    Yes

    Code:
    #include <windows.h>
    
    int main(){
    
    MessageBox(HWND_DESKTOP,"Hello World","" ,MB_OK);
    
    return 0;
    }

  3. #3
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    MessageBox(HWND_DESKTOP,"Thanks","" ,MB_OK);

  4. #4
    Registered User cppdude's Avatar
    Join Date
    Jan 2002
    Posts
    62
    maybe so but what's the point in having an ugly console window?

  5. #5
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    The fact that you do not need to know the full WinAPI and all those wierd handles for windows to do simple stuff.

  6. #6
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Originally posted by cppdude
    maybe so but what's the point in having an ugly console window?

    what's the point in having your ugly avatar?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LoadFromFile() causes Windows 98 to freeze?
    By MidnightlyCoder in forum Windows Programming
    Replies: 8
    Last Post: 03-17-2006, 02:23 PM
  2. Program works on Windows XP and 2000, not on 98 or ME
    By MidnightlyCoder in forum C++ Programming
    Replies: 7
    Last Post: 03-10-2006, 03:36 PM
  3. Sending windows messages
    By Ideswa in forum Windows Programming
    Replies: 2
    Last Post: 03-02-2006, 01:27 PM
  4. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 10:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21