Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 17th, 2006, 4:23 PM   #21
Cache
Hobbyist
 
Join Date: Sep 2005
Posts: 266
Rep Power: 4 Cache is on a distinguished road
Quote:
Originally Posted by Dragon_Master
Thanks for the link Cache. But I already have a hudge book on standard C++. Besides, I don't like Ebooks. I try to avoid them when possible.
It was meant as more of a hint than a suggested reference. But you're welcome, in any case.
Cache is offline   Reply With Quote
Old Jul 17th, 2006, 4:26 PM   #22
Dragon_Master
Programmer
 
Dragon_Master's Avatar
 
Join Date: Jan 2006
Location: Some where
Posts: 74
Rep Power: 3 Dragon_Master is on a distinguished road
Speaking of Ebooks, do you know where I can get a free( yes I'm a freeloader) Ebook (or regular book) on Windows programming, I have two, but there not that good...
Dragon_Master is offline   Reply With Quote
Old Jul 17th, 2006, 4:41 PM   #23
Marvin
Newbie
 
Marvin's Avatar
 
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0 Marvin is on a distinguished road
Take a look at what is suggested in this thread.

http://www.programmingforums.org/for...ad.php?t=10601

I think nemesis poined to 2 good tutorials.
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it."
Marvin is offline   Reply With Quote
Old Jul 17th, 2006, 5:04 PM   #24
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You can't just check documentation. If you do, you'll usually find that it exists. You normally need to actually read it, and comprehend.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 17th, 2006, 9:42 PM   #25
Dragon_Master
Programmer
 
Dragon_Master's Avatar
 
Join Date: Jan 2006
Location: Some where
Posts: 74
Rep Power: 3 Dragon_Master is on a distinguished road
Yeah, thinking comes in handy... People keep telling me to read and look at stuff. But I don't get it . But seriously, I don't have any man pages. I don't have linux at the moment, because I don't feel like downloading it. Since it will take like 5 years to do so.

EDIT:
@Marvin - I've seen those. I don't like GUI toolkits. And as for Windows programming I prefer the standard Windows A.P.I. I used to do MFC and some toolkits, but they lagged on my computer.
Dragon_Master is offline   Reply With Quote
Old Jul 18th, 2006, 6:17 AM   #26
Marvin
Newbie
 
Marvin's Avatar
 
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0 Marvin is on a distinguished road
The ones nemesis linked to in the first reply were for pure win32 API. They talk about making GUI's using Win32, not MFC or WxWidegets etc.

I sometimes wonder if people actually read what i say. I did state to follow the links nemesis gave, as his were for Win32, the others mostly concentrated on GUI toolkits like you said.
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it."
Marvin is offline   Reply With Quote
Old Jul 18th, 2006, 11:35 AM   #27
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
Quote:
Originally Posted by Dragon_Master
I am aware of this :p . It was dynamically allocated. Anyways, I found my own soultion... (I should really look around other places before bothering you guys )

C++ Syntax (Toggle Plain Text)
  1. //Expand is global and already allocated
  2. char temp[strlen(Expand)+1];
  3. strcpy(temp,Expand);
  4. delete [] Expand;
  5. //Said is a param pointer to a string, also allocated
  6. Expand=new char[strlen(temp)+strlen("You said: ")+strlen(Said)+strlen(" \r\r\n")+1];
  7. wsprintf(Expand,"%sYou said: %s \r\r\n",temp,Said);
  8. //hEdit is a handle to an edit box
  9. SetWindowText(hEdit,Expand);
last time i checked the length of an array was constant and unless strlen() returns a constant.....then that won't even compile.
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Jul 18th, 2006, 11:54 AM   #28
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Strlen doesn't return the length of the array. It counts characters until it reaches a '\0'. The ability to define an array with a non-constant was discussed recently (last couple of days).
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 18th, 2006, 2:28 PM   #29
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
Quote:
Originally Posted by DaWei
The ability to define an array with a non-constant was discussed recently (last couple of days).
Is there something that i am not being told about.................where did these discussions take place.................do you need an invatation?......please link me to that discussion please.

Regards, Kruptof
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Jul 18th, 2006, 3:35 PM   #30
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
Quote:
Originally Posted by kruptof
Is there something that i am not being told about.................where did these discussions take place.................do you need an invatation?......please link me to that discussion please.

Regards, Kruptof
No invitation needed, just the energy to read a few threads... this was just a few down...
Jimbo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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

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

BB 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
When to use the new keyword in C++? titaniumdecoy C++ 28 Mar 16th, 2006 1:36 PM
Which area of memory does new use? aznluvsmc C++ 11 Nov 5th, 2005 8:37 AM
Question about multidimensional arrays of strings aznluvsmc C 8 Oct 15th, 2005 11:20 PM
Pointers in C (Part II) Stack Overflow C 2 Apr 29th, 2005 11:39 AM
Pointers in C (Part I) Stack Overflow C 4 Apr 28th, 2005 8:03 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:14 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC