Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 12-11-07   #1 (permalink)
Overclocker
 
postaldudeleo's Avatar
 
intel nvidia

Join Date: Feb 2005
Posts: 630

Rep: 9 postaldudeleo Unknown
Unique Rep: 9
Trader Rating: 0
Default Looking for a quicktutorial on C++ in Windows

I am looking for a tutorial that goes through a simple program in Windows in C++.
Medium understanding of C++ but I only got started on the Windows API. SO far I can get the window to show up, determine it's resolution, and have a message box.

I use latest Dev-C++ and some tutorials I found on google were outdated in certain windows commands so there were problems.


Also, if anyone could suggest how to display basic C++ function solving inside a message box? I can post the code I have so far, 106 lines.

Thanks,

Leo
__________________
Patents: one granted, two pending
Current projects: www.snow-wolf-studios.com

System: My System
CPU
Pentium 660
Motherboard
PW5D2 premium w/t Wifi
Memory
1 Gb Corsair XMS2 5300
Graphics Card
XFX 7800GTX
Hard Drive
250GB
Sound Card
Audigy 2 ZS
Power Supply
AP-P4ATX65FE 658Watt
Case
Aluminum
OS
Windows XP Pro SP2
Monitor
42inch LCD
postaldudeleo is offline   Reply With Quote
Old 12-12-07   #2 (permalink)
Miscelaneous
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Bel Air
Posts: 9,933
Blog Entries: 3

Rep: 289 Licht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 188
Folding Team Rank: 904
Trader Rating: 0
Default

My first question is what compiler are you using? If you are using Microsoft Visual Studio theres videos on MSDN (which i highly recommend.) They will give you allot of basic tutorial on the subject and slowly move you forward into more difficult things although i don't think they go into hardcore code theres still the MSDN forums and database to help you out. The way Microsoft has it a monkey could program if it had an internet connection.

I would also like to add if you are a first time programmer start with... anything but a C language. And that there are NO quick tutorials to C languages.

System: Uzicht #4
CPU
Athlon X2 5200+ Windsor
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
Saphire HD 3870
Hard Drive
4x WD1600AAJS RAID0
Sound Card
X-Fi Extreme Gamer Fatality Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
Xigmatec Rifle
GPU cooling
Stock Saphire 3870 Cooling
OS
Vista Home Premium x64 SP1
Monitor
Samsung SyncMaster 19"Wide

Last edited by Licht : 12-12-07 at 03:45 PM.
Licht is offline I fold for Overclock.net Overclocked Account Licht's Gallery   Reply With Quote
Old 12-14-07   #3 (permalink)
Overclocker
 
postaldudeleo's Avatar
 
intel nvidia

Join Date: Feb 2005
Posts: 630

Rep: 9 postaldudeleo Unknown
Unique Rep: 9
Trader Rating: 0
Default

I use dev-C++, and have a decent understanding of console programming (msdos).

In windows api I have to use windows api specific commands and structure. These I lack an understanding of, and pouring over the ms reference file to get the most minor thing done is tough.

Do the MS video show material similar as in other compilers (such as bloodshed dev-C++)?
__________________
Patents: one granted, two pending
Current projects: www.snow-wolf-studios.com

System: My System
CPU
Pentium 660
Motherboard
PW5D2 premium w/t Wifi
Memory
1 Gb Corsair XMS2 5300
Graphics Card
XFX 7800GTX
Hard Drive
250GB
Sound Card
Audigy 2 ZS
Power Supply
AP-P4ATX65FE 658Watt
Case
Aluminum
OS
Windows XP Pro SP2
Monitor
42inch LCD
postaldudeleo is offline   Reply With Quote
Old 12-14-07   #4 (permalink)
Miscelaneous
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Bel Air
Posts: 9,933
Blog Entries: 3

Rep: 289 Licht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 188
Folding Team Rank: 904
Trader Rating: 0
Default

Quote:
Originally Posted by postaldudeleo View Post
I use dev-C++, and have a decent understanding of console programming (msdos).

In windows api I have to use windows api specific commands and structure. These I lack an understanding of, and pouring over the ms reference file to get the most minor thing done is tough.

Do the MS video show material similar as in other compilers (such as bloodshed dev-C++)?
I suggest you use Visual Studio 2005 Express edition (i would say 2007 but theres no XNA support for it if your like me and like to program games.) And use their tutorial videos, it allows you to design GUI without writing a line of code then still being able to edit that GUI on a code based level without losing a bit of control in any way. Makes coding allot easier especially if you download the massive library files that form your local coding information database. On top of that theres the online database which is incredibly massive. Then theres official training videos specifically for the clients.

If you want to stay with your current one you are going to want to look up learning resources in MSDN anyways (assuming you are using their revised version of C++ the information will help greatly.) Theres videos on Youtube, books in your local stores and libraries most likely. I personally suggest you get Visual Studio and watch the videos, they are excellent tools and will help you cover basics in the earlier videos and move onto higher level basics which will include some functions like you are trying to learn and provide good explanations for everything. After that i recommend you use MSDN resources and user submitted videos for more advanced information and more functions.

System: Uzicht #4
CPU
Athlon X2 5200+ Windsor
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
Saphire HD 3870
Hard Drive
4x WD1600AAJS RAID0
Sound Card
X-Fi Extreme Gamer Fatality Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
Xigmatec Rifle
GPU cooling
Stock Saphire 3870 Cooling
OS
Vista Home Premium x64 SP1
Monitor
Samsung SyncMaster 19"Wide
Licht is offline I fold for Overclock.net Overclocked Account Licht's Gallery   Reply With Quote
Old 12-14-07   #5 (permalink)
Overclocker
 
postaldudeleo's Avatar
 
intel nvidia

Join Date: Feb 2005
Posts: 630

Rep: 9 postaldudeleo Unknown
Unique Rep: 9
Trader Rating: 0
Default

I googled their site. VS 2008 express is out. I cannot seem to find the tutorials you speak of on the microsoft website. Are they in the 2GB library files?


Could you post a link please.
__________________
Patents: one granted, two pending
Current projects: www.snow-wolf-studios.com

System: My System
CPU
Pentium 660
Motherboard
PW5D2 premium w/t Wifi
Memory
1 Gb Corsair XMS2 5300
Graphics Card
XFX 7800GTX
Hard Drive
250GB
Sound Card
Audigy 2 ZS
Power Supply
AP-P4ATX65FE 658Watt
Case
Aluminum
OS
Windows XP Pro SP2
Monitor
42inch LCD
postaldudeleo is offline   Reply With Quote
Old 12-14-07   #6 (permalink)
Miscelaneous
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Bel Air
Posts: 9,933
Blog Entries: 3

Rep: 289 Licht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 188
Folding Team Rank: 904
Trader Rating: 0
Default

Quote:
Originally Posted by postaldudeleo View Post
I googled their site. VS 2008 express is out. I cannot seem to find the tutorials you speak of on the microsoft website. Are they in the 2GB library files?


Could you post a link please.
I messed up when i said 2007, meant 2008. And my point remains the same you might use it but i wouldn't because 2008 doesn't have XNA support.

http://msdn2.microsoft.com/en-us/visualc/aa336415.aspx

I couldn't find the videos i was talking about but i will look a bit more.

System: Uzicht #4
CPU
Athlon X2 5200+ Windsor
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
Saphire HD 3870
Hard Drive
4x WD1600AAJS RAID0
Sound Card
X-Fi Extreme Gamer Fatality Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
Xigmatec Rifle
GPU cooling
Stock Saphire 3870 Cooling
OS
Vista Home Premium x64 SP1
Monitor
Samsung SyncMaster 19"Wide

Last edited by Licht : 12-14-07 at 07:41 PM.
Licht is offline I fold for Overclock.net Overclocked Account Licht's Gallery   Reply With Quote
Old 12-15-07   #7 (permalink)
Overclocker
 
postaldudeleo's Avatar
 
intel nvidia

Join Date: Feb 2005
Posts: 630

Rep: 9 postaldudeleo Unknown
Unique Rep: 9
Trader Rating: 0
Default

Do you know where I can DL Visual Studio express 2005? All links have been replaced with 2008 version.

On the XNA support, do you think that support might be added later on?
__________________
Patents: one granted, two pending
Current projects: www.snow-wolf-studios.com

System: My System
CPU
Pentium 660
Motherboard
PW5D2 premium w/t Wifi
Memory
1 Gb Corsair XMS2 5300
Graphics Card
XFX 7800GTX
Hard Drive
250GB
Sound Card
Audigy 2 ZS
Power Supply
AP-P4ATX65FE 658Watt
Case
Aluminum
OS
Windows XP Pro SP2
Monitor
42inch LCD
postaldudeleo is offline   Reply With Quote
Old 12-15-07   #8 (permalink)
Miscelaneous
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Bel Air
Posts: 9,933
Blog Entries: 3

Rep: 289 Licht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 188
Folding Team Rank: 904
Trader Rating: 0
Default

Quote:
Originally Posted by postaldudeleo View Post
Do you know where I can DL Visual Studio express 2005? All links have been replaced with 2008 version.

On the XNA support, do you think that support might be added later on?
You will be waiting a while for XNA support in 2008 i forgot when but you can go to the XNA forums and check it out i know theres info on it there.

http://msdn.microsoft.com/vstudio/express/downloads/

It was in the advertisements on Yahoo search, always remember to look there with this sort of thing.

System: Uzicht #4
CPU
Athlon X2 5200+ Windsor
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
Saphire HD 3870
Hard Drive
4x WD1600AAJS RAID0
Sound Card
X-Fi Extreme Gamer Fatality Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
Xigmatec Rifle
GPU cooling
Stock Saphire 3870 Cooling
OS
Vista Home Premium x64 SP1
Monitor
Samsung SyncMaster 19"Wide
Licht is offline I fold for Overclock.net Overclocked Account Licht's Gallery   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 03:38 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.30372 seconds with 8 queries