window

does anyone here know any good code for programing a window in c++

similar to the defalt window for vb

Try on Google. There should be tons out there. Maybe you’d just have strip some extra stuff off. :slight_smile:

ok thz ill try it

If you can’t, I’ll give it a try. :slight_smile:

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

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.