Log in

View Full Version : window


omega
02-05-2004, 14:48
does anyone here know any good code for programing a window in c++

similar to the defalt window for vb

Ryan M.
02-05-2004, 14:58
does anyone here know any good code for programing a window in c++

similar to the defalt window for vbTry on Google. There should be tons out there. Maybe you'd just have strip some extra stuff off. :)

omega
02-05-2004, 16:08
ok thz ill try it

Ryan M.
02-05-2004, 16:46
ok thz ill try itIf you can't, I'll give it a try. :)

rbayer
03-05-2004, 03:24
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:



#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

Astronouth7303
03-05-2004, 07:35
If you are using MSC++ 6.0, the 'Dialog' resources are what you're looking for. Either that or do it all in code.
If your using .NET, haven't a clue.

jdong
09-05-2004, 11:11
If you are using MSC++ 6.0, the 'Dialog' resources are what you're looking for. Either that or do it all in code.
If your using .NET, haven't a clue.


Forget about old-fashioned C-style Windows apps... too hard to create/manage.

Use MFC C++ projects for MSC++6 or .NET.

If you're using .NET 2002, use MFC. If you're using .NET 2003, you can try SWF (System.Windows.Form), aka Managed Windows Forms to write C#-style code. Note that managed code will only run on the .NET Framework.