Go to Post I got to talk with Mr. Flowers briefly last year. I told him that I had wanted to be part of FIRST since about 1980. It was nearly a quarter-century later when my son entered high school and I joined the TechnoKats as a mentor. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-05-2004, 14:48
omega's Avatar
omega omega is offline
Registered User
#1352
 
Join Date: Mar 2004
Location: Stratford Northwestern
Posts: 11
omega is an unknown quantity at this point
Question window

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

similar to the defalt window for vb
  #2   Spotlight this post!  
Unread 02-05-2004, 14:58
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
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.
__________________

  #3   Spotlight this post!  
Unread 02-05-2004, 16:08
omega's Avatar
omega omega is offline
Registered User
#1352
 
Join Date: Mar 2004
Location: Stratford Northwestern
Posts: 11
omega is an unknown quantity at this point
Re: window

ok thz ill try it
  #4   Spotlight this post!  
Unread 02-05-2004, 16:46
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: window

Quote:
Originally Posted by omega
ok thz ill try it
If you can't, I'll give it a try.
__________________

  #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
  #6   Spotlight this post!  
Unread 03-05-2004, 07:35
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
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.
  #7   Spotlight this post!  
Unread 09-05-2004, 11:11
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
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.
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with window motor HWRobotics Motors 15 11-02-2004 02:43
window motor connection albertgates General Forum 1 12-02-2003 17:18
window motor solid model Redhead Jokes Inventor 0 04-02-2003 14:23
Looking for window kit parts archiver 2000 2 23-06-2002 22:50
Re: window motors archiver 1999 1 23-06-2002 21:56


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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