Thread: window
View Single Post
  #5   Spotlight this post!  
Unread 03-05-2004, 03:24
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Re: window

Well, it really depends on what you want this window to do. The most basic Windows program that creates a dialog box would just be something like this:

Code:
#include <windows.h>

int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, PSTR szCmd, int iShow){

   MessageBox(NULL, "Hello, World!", "Simple Dialog", MB_OK);

}
If you want to do more complicated stuff, email/PM me and I can hook you up with some examples. Also, take a look at RoboGUI, which you can find at www.robbayer.com, as it contains a bunch of Windows code. If you're interseted in MFC, take a look at RoboEmu too.

-Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php