Go to Post I think that one of the most fantastic parts about FIRST is that the biggest and most successful teams are also the most abiding to the rules. - Matt Adams [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 28-03-2009, 00:02
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
C++ Windows Programming?

Hey everyone, I'm wanting to learn C++ (I have a basic knowledge of it already though, unfortunately it's mostly forgotten though) and using it to make windows applications with a GUI. Preferably free online material, does anybody know where to start? Thanks! Programming Level: Novice
  #2   Spotlight this post!  
Unread 28-03-2009, 00:04
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: C++ Windows Programming?

Oh. P.S. Yes I've used microsoft's visual express stuff, didn't like it much and I would like to learn something used in the real industry, more powerful, and that doesn't give you all the hard code for you XD
  #3   Spotlight this post!  
Unread 28-03-2009, 00:27
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: C++ Windows Programming?

The only free solution that I know of that gives you a GUI is... Visual Studio Express C++...

All I use in college is the command line, which can be programed with virtually anything. Dev-C++, Visual Studio, and my personal favorite, Xcode (for OSX).
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #4   Spotlight this post!  
Unread 28-03-2009, 01:05
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: C++ Windows Programming?

I've been going to cprogramming.com, excellent resource. As for compilers, Dev-C++, have been using this for years (well, spanned out over years). Can't you make a GUI with the windows API???
  #5   Spotlight this post!  
Unread 28-03-2009, 09:12
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: C++ Windows Programming?

If you want to do the REAL low-level stuff, then you want to learn the Win32 API, where you handle messages in what is called a WndProc and use SendMessage to change your UI state. I can assure you that there are places in industry that do this, though there is a strong and growing tendency to make GUI-heavy apps out of something a bit easier to use than C++/Win32 (in particular C# or using something other than Win32, like MFC or WPF).

What's cool about Win32 is that you can make some pretty expansive apps with very small executables. Though I'm not sure, I bet that uTorrent is made with low-level Win32, which explains its microscopic binary size.

Anyway, although I don't have a tutorial to start from, I can tell you a few keywords to go from:
-You want to make a dialog. You'll need to make a parent-window first, but just about any IDE (Code::Blocks, Visual C++) has a project template that will create your window for you.
-You make the dialog in the resource editor, give the elements of it identifiers, and then can refer to those identifiers in code
-You'll want to make very heavy use of MSDN. Here's a good starting point: http://msdn.microsoft.com/en-us/libr...79(VS.85).aspx
  #6   Spotlight this post!  
Unread 28-03-2009, 09:40
FRC4ME FRC4ME is offline
Registered User
FRC #0339
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Fredericksburg, VA
Posts: 324
FRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant future
Re: C++ Windows Programming?

"The industry" uses Visual Studio quite often (although C# and VB are more popular choices than C++).

Why spend time and money writing something that you don't have to? Sure, its a fun mental exercise to learn the low-level stuff, but in today's fast-paced competitive environment, anything that does not require you to do so is an important tool.
__________________
Go directly to queue. Do not pass pit.
  #7   Spotlight this post!  
Unread 28-03-2009, 14:06
ComradeNikolai ComradeNikolai is offline
Registered User
AKA: Nicholas
FRC #2603 (Team Hornet)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Medina, Ohio
Posts: 203
ComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to behold
Re: C++ Windows Programming?

You might want to look into using GTK (or GTKmm), QT, or WxWidgets. They're GUI libraries that you can use with C++. GTK also has a GUI editor for it you don't want to hard-code EVERYTHING, but you still have that option available.
__________________
I cut myself shaving with Occam's razor.

  #8   Spotlight this post!  
Unread 28-03-2009, 17:35
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: C++ Windows Programming?

I would recommend using WxWidgets. It's free, where Qt costs *I think* a few thousand dollars to use.

There's also a great forum available: http://wxforum.shadonet.com

I've just about completed my first C++ application with a GUI, using WxWidgets. There are two screen shots on this page: http://roboticsguy.com/software/dspi...-communicator/
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #9   Spotlight this post!  
Unread 28-03-2009, 18:39
brianelite brianelite is offline
Registered User
FRC #2898
 
Join Date: Feb 2009
Location: oregon
Posts: 36
brianelite has a spectacular aura aboutbrianelite has a spectacular aura aboutbrianelite has a spectacular aura about
Re: C++ Windows Programming?

I believe QT is free for non commercial use and maybe even free for commercial use now. After all KDE is using QT.

For Windows you can use wxdevc++ it is a devc++ based wxwidgets programming ide. Unfortunately I think wxwidgets is needlessly complex so I do not use wxwidgets... but maybe you will like it?
__________________
  #10   Spotlight this post!  
Unread 28-03-2009, 20:07
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: C++ Windows Programming?

OK, I just checked on the Qt website. It looks like they do have a free version available under the LGPL license. But, if you ever decide you want to sell one of your programs with Qt, you'll have the pay the 4K licensing fee.

WxWidgets has a lot of features, maybe that's what you mean by complex?

If you decide to try out WxWidgets, use the "WxPack," not the "real" version where you have to build the library yourself.

http://wxpack.sourceforge.net/
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #11   Spotlight this post!  
Unread 29-03-2009, 02:38
brianelite brianelite is offline
Registered User
FRC #2898
 
Join Date: Feb 2009
Location: oregon
Posts: 36
brianelite has a spectacular aura aboutbrianelite has a spectacular aura aboutbrianelite has a spectacular aura about
Re: C++ Windows Programming?

Alternatively you could use a customized build of devC++, that you are already familiar with but with enchantments for wxwidgets.

http://wxdsgn.sourceforge.net/

Nathan: If you look at Qt and WXwidgets I think Qt has much more intuitive classes and easier ways of doing things. with wx it seems to me like everything is crytically named and you need to memorize completely unintuitive things. But thats just my opinion. I haven't done much development with wxwidgets (only basic examples).

If you go to zetcode.com they have examples that do the same thing in QT, gtk, wxwidgets ect... I think wxwidgets is the most unintuitive. But you can decide for yourself. Whatever works for you is the best.
__________________

Last edited by brianelite : 29-03-2009 at 13:04.
  #12   Spotlight this post!  
Unread 29-03-2009, 15:38
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: C++ Windows Programming?

Thanks everyone. Currently I'm just working with console applications but I tried making a window with win32 and it wasn't so bad...lots of customization
  #13   Spotlight this post!  
Unread 29-03-2009, 18:45
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,077
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: C++ Windows Programming?

I created my GUI WPILib Test Harness (allows you to run your bot code on your computer) using wxWidgets. http://www.chiefdelphi.com/forums/sh...ad.php?t=75811

wxWidgets has a nice option called XRC, that allows you to design the GUI part separately from the code and change it after compile time. Tools like wxFormBuilder allow you to modify the XRC files in a WYSIWYG style.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #14   Spotlight this post!  
Unread 29-03-2009, 20:12
KevinRo KevinRo is offline
Founding Chairman Washington FIRST
AKA: Kevin Ross
FRC #4089 (Stealth)
Team Role: Engineer
 
Join Date: Dec 2002
Rookie Year: 1999
Location: Carnation, WA
Posts: 17
KevinRo is a name known to allKevinRo is a name known to allKevinRo is a name known to allKevinRo is a name known to allKevinRo is a name known to allKevinRo is a name known to all
Re: C++ Windows Programming?

Quote:
Originally Posted by basicxman View Post
Oh. P.S. Yes I've used microsoft's visual express stuff, didn't like it much and I would like to learn something used in the real industry, more powerful, and that doesn't give you all the hard code for you XD
You will find that Visual Studio is, by a pretty large margin, the most used compiler in industry. Most everything you will use in Visual Express will be applicable to Visual Studio. So, if you want industry, you want to start with Visual Express.

There are other free tools out there as were listed in the other replies. A few are pretty good. Most are, well, written to be free and not as feature rich or as reliable as the Microsoft offering.

If you want to learn the programming language, I highly recommend writing a Win32 console applications for a while. The GUI stuff on any platform may distract you from learning the basics of the language. Everything you learn about the C++ language in a console application will be 100% applicable when you get ready to write a GUI application.

Kevin
  #15   Spotlight this post!  
Unread 31-03-2009, 12:34
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: C++ Windows Programming?

If you're a student, you can get Visual Studio for free!

https://downloads.channel8.msdn.com/Default.aspx
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H 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
Windows 7 McGurky Rumor Mill 142 15-07-2009 20:11
Makefile for programming under Windows with cygwin wun Programming 17 20-09-2004 00:44
Windows ME robot180 Chit-Chat 11 07-07-2003 00:21
Windows Background gniticxe Chit-Chat 21 24-11-2001 16:15


All times are GMT -5. The time now is 13:04.

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