Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   window (http://www.chiefdelphi.com/forums/showthread.php?t=28356)

omega 02-05-2004 14:48

window
 
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

Re: window
 
Quote:

Originally Posted by omega
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. :)

omega 02-05-2004 16:08

Re: window
 
ok thz ill try it

Ryan M. 02-05-2004 16:46

Re: window
 
Quote:

Originally Posted by omega
ok thz ill try it

If you can't, I'll give it a try. :)

rbayer 03-05-2004 03:24

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

Astronouth7303 03-05-2004 07:35

Re: window
 
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

Re: window
 
Quote:

Originally Posted by Astronouth7303
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.


All times are GMT -5. The time now is 02:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi