Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: While loop only works the first time through?? Pin
Officially Drew™25-Nov-07 18:41
Officially Drew™25-Nov-07 18:41 
GeneralRe: While loop only works the first time through?? Pin
Paresh Chitte25-Nov-07 23:13
Paresh Chitte25-Nov-07 23:13 
Questionscoket in c++ Pin
manish.patel25-Nov-07 16:10
manish.patel25-Nov-07 16:10 
AnswerRe: scoket in c++ Pin
Stephen Hewitt25-Nov-07 17:38
Stephen Hewitt25-Nov-07 17:38 
GeneralRe: scoket in c++ Pin
manish.patel25-Nov-07 18:09
manish.patel25-Nov-07 18:09 
AnswerRe: scoket in c++ Pin
Hamid_RT25-Nov-07 18:21
Hamid_RT25-Nov-07 18:21 
AnswerRe: scoket in c++ Pin
Mark Salsbery25-Nov-07 18:39
Mark Salsbery25-Nov-07 18:39 
QuestionNoob question on structs, and their local variables Pin
Anthony Mushrow25-Nov-07 11:19
professionalAnthony Mushrow25-Nov-07 11:19 
So, once again i must break away from c# and use c++. Not much of a probem really, until i get to something as simple as this.

So, i have a struct for a my colours, using floats for the RGB values because OpenGL really likes floats, meh. Anyway, i thought i'd add a constructor for it, and i come to the problem...

struct ColourRGB {
	float Red;
	float Green;
	float Blue;
	ColourRGB(float Red=0, float Green=0, float Blue=0);
};


All good. But, how can i make sure i set ColourRGB.Red to the parameter Red? Or must i just change the names of the parameters?

Sigh | :sigh: One day i'll read a book on c++ or something Roll eyes | :rolleyes:

My current favourite word is: PIE!

Good ol' pie, it's been a while.

AnswerRe: Noob question on structs, and their local variables Pin
Stephen Hewitt25-Nov-07 11:46
Stephen Hewitt25-Nov-07 11:46 
GeneralRe: Noob question on structs, and their local variables Pin
Anthony Mushrow25-Nov-07 11:57
professionalAnthony Mushrow25-Nov-07 11:57 
GeneralRe: Noob question on structs, and their local variables Pin
Stephen Hewitt25-Nov-07 12:03
Stephen Hewitt25-Nov-07 12:03 
GeneralRe: Noob question on structs, and their local variables Pin
Priya_Sundar26-Nov-07 0:19
Priya_Sundar26-Nov-07 0:19 
QuestionClick and drag combobox Pin
Wxffles25-Nov-07 9:46
Wxffles25-Nov-07 9:46 
QuestionCString problem in visual C++ 2005 Pin
DSPCottage25-Nov-07 8:53
DSPCottage25-Nov-07 8:53 
QuestionRe: CString problem in visual C++ 2005 Pin
Mark Salsbery25-Nov-07 9:04
Mark Salsbery25-Nov-07 9:04 
AnswerRe: CString problem in visual C++ 2005 Pin
DSPCottage25-Nov-07 9:19
DSPCottage25-Nov-07 9:19 
GeneralRe: CString problem in visual C++ 2005 Pin
Mark Salsbery25-Nov-07 9:40
Mark Salsbery25-Nov-07 9:40 
GeneralRe: CString problem in visual C++ 2005 Pin
Sarath C25-Nov-07 15:18
Sarath C25-Nov-07 15:18 
GeneralRe: CString problem in visual C++ 2005 Pin
lostangels27-Nov-07 5:16
lostangels27-Nov-07 5:16 
GeneralRe: CString problem in visual C++ 2005 Pin
Richard Andrew x6425-Nov-07 10:05
professionalRichard Andrew x6425-Nov-07 10:05 
AnswerRe: CString problem in visual C++ 2005 Pin
Stephen Hewitt25-Nov-07 17:34
Stephen Hewitt25-Nov-07 17:34 
QuestionHow to use FindFirstFile and FindNextFile Pin
mrby12325-Nov-07 8:44
mrby12325-Nov-07 8:44 
AnswerRe: How to use FindFirstFile and FindNextFile Pin
Mark Salsbery25-Nov-07 8:56
Mark Salsbery25-Nov-07 8:56 
GeneralRe: How to use FindFirstFile and FindNextFile Pin
mrby12325-Nov-07 10:50
mrby12325-Nov-07 10:50 
AnswerRe: How to use FindFirstFile and FindNextFile Pin
Luc Pattyn25-Nov-07 9:17
sitebuilderLuc Pattyn25-Nov-07 9:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.