EXTREME Overclocking Forums
Home | Reviews | Forums | Downloads | $ EXTREME Deals $ | RealTime Pricing | Free Magazines | Gear | Folding Stats Newsletter | Contact Us


Go Back   EXTREME Overclocking Forums > Software Discussion > Programming, DBMS, HTML, Web Related
Register Forum Rules FAQ Search Today's Posts Mark Forums Read

Welcome Guest Visitor! Please Register, It's Free and Fun To Participate!
The EXTREME Overclocking Forums are a place for people to learn how to overclock and tweak their PC's components like the CPU, memory (RAM), or video card in order to gain the maximum performance out of their system. There are lots of discussions about new processors, graphics cards, cooling products, power supplies, cases, and so much more!

You are currently viewing our boards as a "guest" which gives you limited access to view most discussions. You need to register before you can post: click the register link to proceed. Before you register, please read the forum rules. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own pictures, and access many other special features. Registration is fast, simple, and absolutely free! To start viewing messages, select the forum that you want to visit from the selection below.

After you have registered and read the forum rules, you can check out the FAQ for more information on using the forum. We hope you enjoy your stay here!

Note To Spammers: We do not allow unsolicited advertising! Spam is usually reported & deleted within minutes of it being posted, so don't waste your time (or ours)!


Please Register to Post a Reply
 
Thread Tools
Old 07-09-2004, 12:00 AM   #21
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
unfortunately the Beta 2005 didn't have a resource editor, which is what you need to make guis. you said you have 2003? Well, it's easy to MAKE the gui with msvc++ 2003 (just a Project->Add Resource...->Dialog->New away), however implementing it programmatically is more involved. Use the MSDN that was included with 2003, it's VERY helpful in most ways. Do a help search for "Using Dialog Boxes" to get you started.
United States  Online
    Register to Reply to This Post
Old 07-20-2004, 04:04 PM   #22
scottb
Getting back into it!
scottb's Avatar
Senior Member
 
Posts: 541
Last Seen: 03-12-2010
Age: 30
From: Glasgow, UK
iTrader: 0 / 0%
I am still learning C at the minute but hope to move onto C++ in the next few months!

I am currently using MS Visual C++ 6. Can this be used to create a GUI and would it be worth my while upgarding to the latest version?

Cheers
Northern Ireland  Offline
    Register to Reply to This Post
Old 07-20-2004, 04:41 PM   #23
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
Quote:
Originally Posted by scottb
I am still learning C at the minute but hope to move onto C++ in the next few months!

I am currently using MS Visual C++ 6. Can this be used to create a GUI and would it be worth my while upgarding to the latest version?

Cheers
and upgrade would give you better access to the .net platform and more options for the resource editor, but you don't need that now.

MSVC++ has a resource editor, you should be able to make guis with it, but you also have to learn to program for it. look at the source for my chat program (link in sig) for an example of DIALOG BOX programming, which is different from creating a window. making a window and a dialog box can both be done all in code, but it's easier to make the dialog boxes w/ vc++s editor. if you're just makin a window it's easier to just use code.
United States  Online
    Register to Reply to This Post
Old 07-20-2004, 05:17 PM   #24
scottb
Getting back into it!
scottb's Avatar
Senior Member
 
Posts: 541
Last Seen: 03-12-2010
Age: 30
From: Glasgow, UK
iTrader: 0 / 0%
I can't find the resource editor in my version of msc++ 6.

Do you know where i can locate it?
Northern Ireland  Offline
    Register to Reply to This Post
Old 07-20-2004, 05:27 PM   #25
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
after makin a project you should be able to just do something like: Project->Add Resource...->Dialog->New

You can't use the resource editor unless you have some sort of resource to edit!
United States  Online
    Register to Reply to This Post
Old 07-20-2004, 05:40 PM   #26
rds0811
Mad Warranty Voider
rds0811's Avatar
Retired Staff
 
Posts: 1,542
Last Seen: Yesterday
Age: 29
From: Raleigh, NC
iTrader: 7 / 100%
I like Dev C++ for compiling/editing http://www.bloodshed.net/
United States  Offline
    Register to Reply to This Post
Old 07-20-2004, 05:45 PM   #27
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
yeah, devcpp is VERY nice, it's almost as robust as VC++, I'd recommend it to all the cheapskates out there as it's free
United States  Online
    Register to Reply to This Post
Old 07-21-2004, 10:48 PM   #28
Shadowmage
Laptop Guru
Shadowmage's Avatar
Senior Member
 
Posts: 1,450
Last Seen: 04-02-2009
Age: 25
From: Ann Arbor, MI
iTrader: 9 / 100%
DevC++ is da 1337!

However, REAL cheapskates get better "free" (eh heh heh heh...) software
United States  Offline
    Register to Reply to This Post
Old 07-22-2004, 12:44 AM   #29
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
Quote:
Originally Posted by Shadowmage
REAL cheapskates get better "free" (eh heh heh heh...) software
Got that right.

I just got the WHOLE MS Visual Studio .net 2003 free. And it was legal, too. You believe that? No, really, it was! With the kind of money you pay for college, they practically owe it to ya! Virginia Tech has a bunch of stuff for DL by it's students and faculty, including every flavor of Windows (yes, even the latest (Build 4074, I believe) Longhorn beta ), full VS .net 2003 pro AND full VS .net 2005 beta (pro, not express), Norton Anti-Virus, and a hell of a lot more, all full versions.
United States  Online
    Register to Reply to This Post
Old 07-27-2004, 02:52 PM   #30
jeremy
moo!
jeremy's Avatar
Senior Member
 
Posts: 819
Last Seen: 05-03-2013
Age: 25
From: near philadelphi
iTrader: 3 / 100%
i just bought the "C++ for Dummies!"

awesome book..
cool tutorial dude

i havent gotten to the "windows applications chapter" yet, how do i make text display on a Windows app... just normal text.. ya know?

cout << "Moo?";

something like that? like i have DevC++ and it has a template and etc...
United States  Offline
    Register to Reply to This Post
Old 07-27-2004, 10:02 PM   #31
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
I've finally updated the guide! It now has half of the section on loops, and a link to Dev-C++ near the beginning. Very good IDE, indeed.

Hey jeremy, there are a LOT of ways to output text in a windows application, you need to be more specific with what you intend to do with that text. then I can tell you the best way of going about outputting that text. k? feel free to pm, if you'd like.
United States  Online
    Register to Reply to This Post
Old 07-28-2004, 04:00 PM   #32
-DeathBlow-
.
-DeathBlow-'s Avatar
Senior Member
 
Posts: 415
Last Seen: 04-16-2009
From: Los Angeles, Ca
iTrader: 0 / 0%
Jeremy, you have to make sure to type std:: before the cout<<
but, if you dont want to do that type using std::cout;
after your opening bracket ({) in the beginning of the program
example:
Code:
 #include <iostream> 
 int main() 
{ 
using std::cout; 
cout<<"Hello\n"; 
return 0; 
}
Codeweasil, im having troubles going about adding the code to dialog boxes like, say i have a simple dialog box, And i want to add the text "Welcome" in msvc++ where would i type cout<<"Welcome\n"; so it would appear on the box?
thanks.
United States  Offline
    Register to Reply to This Post
Old 07-28-2004, 04:52 PM   #33
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
Quote:
Originally Posted by -DeathBlow-
Jeremy, you have to make sure to type std:: before the cout<<
but, if you dont want to do that type using std::cout;
after your opening bracket ({) in the beginning of the program
example:
Code:
 #include <iostream> 
 int main() 
{ 
using std::cout; 
cout<<"Hello\n"; 
return 0; 
}
Codeweasil, im having troubles going about adding the code to dialog boxes like, say i have a simple dialog box, And i want to add the text "Welcome" in msvc++ where would i type cout<<"Welcome\n"; so it would appear on the box?
thanks.
you don't use cout at all in a purely windows application, so you didn't help jeremy at all, i'm sorry to say.

if you have a dialog box and you want STATIC text all you have to do is make a static text control and type what you want displayed in the properties area. i've attached some screenies of what i did for the weaselchat version number and all that in the bottom left of 1.2

it's funny, I could really help you guys out but typing everything and makin screenshots is a pain in the *** i wish there was some way to show you in person...
Attached Thumbnails
Click image for larger version

Name:	statictext.JPG
Views:	82
Size:	170.1 KB
ID:	41902  
United States  Online
    Register to Reply to This Post
Old 08-07-2004, 11:54 PM   #34
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
Just updated the guide to address For loops in the loop section. Next will probably be a section on strings and arrays. Then perhaps info on declaring classes and structs... then maybe data structures... man, so many things to talk about
United States  Online
    Register to Reply to This Post
Old 08-17-2004, 02:47 PM   #35
JoeV2-MCM
Learning To Overclock
JoeV2-MCM's Avatar
Senior Member
 
Posts: 102
Last Seen: 10-24-2004
iTrader: 0 / 0%
Pretty good "quick 'n dirty" intro to C++, CW.

Some suggestions you might consider incorporating...

1) Rather than explaining to the reader why they might have to change your first example from "void main() { ... }" to "int main() { ... return 0; }" for certain compiler implementations (specifically those that are strictly ANSI compliant by default), which may lead to confusion for some, how about you simply consider changing the initial example to "int main() { ... return 0; }". Then you can simply leave out the explanation altogether. After all, this is how the ANSI C++ Standard specifies main is to be declared regardless of its build / runtime environment.

2) This is very important. The "double" data type does NOT truncate any value in the variable to two decimal places. I'm sorry but I got a very big smile on my face when I read this sentence. For a 32-bit compiler, the biggest difference between a float and a double is the amount of memory space each type occupies. Specifically, a float is 4 bytes wide and a double is 8 bytes wide. A quick 'net search can find the range of values associated with each data type but you can imagine a double has a greater range than a float.

3) "if(iTotal > 7 || iTotal < 7)" is basically the same as "if(iTotal != 7)", right? I realize you were just trying to provide another example but I wanted to make a point (i.e. always tries to write clear, self-documenting code).

4) Also, parentheses are your friend. I would prefer to see someone write this line as follows: "if((iTotal > 7) || (iTotal < 7))". Heck, I would've written it this way. Why? Well, there are several reasons but the main one is probably the notion of operator precedence. I realize the topic of operator precedence is too "complex" to bring up at this point in your document but since your laying the groundwork I felt the use of too many parentheses is this particular statement might be better, IMHO.

Just my two cents. Hope you find it useful. Joe
United States  Offline
    Register to Reply to This Post
Old 08-17-2004, 03:32 PM   #36
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
Thanks for the input!
Quote:
Originally Posted by JoeV2-MCM
Pretty good "quick 'n dirty" intro to C++, CW.

Some suggestions you might consider incorporating...

1) Rather than explaining to the reader why they might have to change your first example from "void main() { ... }" to "int main() { ... return 0; }" for certain compiler implementations (specifically those that are strictly ANSI compliant by default), which may lead to confusion for some, how about you simply consider changing the initial example to "int main() { ... return 0; }". Then you can simply leave out the explanation altogether. After all, this is how the ANSI C++ Standard specifies main is to be declared regardless of its build / runtime environment.
Yeah, I've been playing with this change for awhile now. I suppose I should just save confusion and make the fix.
Quote:

2) This is very important. The "double" data type does NOT truncate any value in the variable to two decimal places. I'm sorry but I got a very big smile on my face when I read this sentence. For a 32-bit compiler, the biggest difference between a float and a double is the amount of memory space each type occupies. Specifically, a float is 4 bytes wide and a double is 8 bytes wide. A quick 'net search can find the range of values associated with each data type but you can imagine a double has a greater range than a float.
Bah! My mistake...Maybe I was too tired? Wonder what I was thinking...prolly some confusion between C++ and TI-89 Calc crap. Yeah, here's the official definitions of Float, Double, and Long Double (which I will edit into the guide):
Float - 4 Bytes - 3.4e + / - 38 (7 digits)
Double - 8 Bytes - 1.7e + / - 308 (15 digits)
Long Double - 10 Bytes - 1.2e + / - 4932 (19 digits)
Quote:


3) "if(iTotal > 7 || iTotal < 7)" is basically the same as "if(iTotal != 7)", right? I realize you were just trying to provide another example but I wanted to make a point (i.e. always tries to write clear, self-documenting code).
Yeah, it was for example purposes, I usually use != unless there's some weird requirement, or in this guide
Quote:

4) Also, parentheses are your friend. I would prefer to see someone write this line as follows: "if((iTotal > 7) || (iTotal < 7))". Heck, I would've written it this way. Why? Well, there are several reasons but the main one is probably the notion of operator precedence. I realize the topic of operator precedence is too "complex" to bring up at this point in your document but since your laying the groundwork I felt the use of too many parentheses is this particular statement might be better, IMHO.
Good point. Should basically tell 'em to write like they would on a graphing calc, eh? Maybe it's because I've just been using switch statements a lot lately...
Quote:

Just my two cents. Hope you find it useful. Joe
Very useful, thanks Joe!
United States  Online
    Register to Reply to This Post
Old 08-17-2004, 03:49 PM   #37
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
Ok I have made the changes mentioned in the above post, look good now, Joe?
I'm also trying to put together a good section on arrays/strings, so look for that in the future. Maybe a little farther into the future, cause I'm movin' out to college tommorrow! Here comes Heaven AND Hell, all rolled into one...
United States  Online
    Register to Reply to This Post
Old 09-16-2004, 11:00 AM   #38
runlinux
MC Number Cruncher
runlinux's Avatar
Senior Member
 
Posts: 2,106
Last Seen: Yesterday
Age: 27
From: Dublin, OH
iTrader: 12 / 100%
hey, when are we gunna get into structs, classes, inheritence and possibly the coolest things ever : POINTERS!!!! ?
Aauria Hibedi  Offline
    Register to Reply to This Post
Old 09-16-2004, 11:26 AM   #39
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
I've been pretty busy as of late with college and all, believe me, I'll update when I get a few hours free.
United States  Online
    Register to Reply to This Post
Old 09-29-2004, 06:16 PM   #40
CodeWeasel
Rawker Kitteh
CodeWeasel's Avatar
Moderator
 
Posts: 901
Last Seen: Today
Age: 26
From: Off-center
iTrader: 0 / 0%
Mkay! Finally updated with info on strings and arrays. Next will be structs...
United States  Online
    Register to Reply to This Post
Sponsored Links:
Please Register to Post a Reply


Thread Tools

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

All times are GMT -6. The time now is 05:32 AM.

Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Powered by vBulletin
Copyright ©2000 - 2011, EXTREME Overclocking