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

C / C++ / MFC

 
AnswerRe: how to acquire system icon(like my computer) through programming? Pin
Ryan Binns27-Jun-03 4:43
Ryan Binns27-Jun-03 4:43 
GeneralRe: how to acquire system icon(like my computer) through programming? Pin
tiplip27-Jun-03 17:29
tiplip27-Jun-03 17:29 
GeneralRe: how to acquire system icon(like my computer) through programming? Pin
Ryan Binns27-Jun-03 17:37
Ryan Binns27-Jun-03 17:37 
GeneralRe: how to acquire system icon(like my computer) through programming? Pin
tiplip27-Jun-03 19:35
tiplip27-Jun-03 19:35 
GeneralRe: how to acquire system icon(like my computer) through programming? Pin
Ryan Binns28-Jun-03 0:12
Ryan Binns28-Jun-03 0:12 
Generaladding variables to a struct that were read in from a file Pin
johnstonsk27-Jun-03 4:05
johnstonsk27-Jun-03 4:05 
GeneralRe: adding variables to a struct that were read in from a file Pin
Ryan Binns27-Jun-03 4:27
Ryan Binns27-Jun-03 4:27 
GeneralRe: adding variables to a struct that were read in from a file Pin
johnstonsk27-Jun-03 5:15
johnstonsk27-Jun-03 5:15 
Sorry about that, slipped my mind.

After watching the debugger, I realized the problem lies when I read the data back out of the struct.
I was using the sizeof(s.Name) thinking that it would return 5, but it was returning 80.

OK..... The getline returns a string. I really need my struct to have chars instead of strings.

But as you know; you can't convert a sting to a char.

Is there any way to do this?

I've only been coding for a few months now.

Thanks for the patients,
sjSmile | :)



-----------Right now it is......----------
struct TSimSignal<br />
	{<br />
		double Min[5];	  <br />
		double Max[5];	  <br />
		double Value[5]; <br />
		string Name[5];<br />
		string Unit[5];<br />
	};


-----I really need it to be.....----------
struct TSimSignal<br />
	{<br />
		double Min[5];	  <br />
		double Max[5];	  <br />
		double Value[5]; <br />
		char Name[5];<br />
		char Unit[5];<br />
	};<br />

GeneralRe: adding variables to a struct that were read in from a file Pin
Ryan Binns27-Jun-03 5:20
Ryan Binns27-Jun-03 5:20 
GeneralRe: adding variables to a struct that were read in from a file Pin
johnstonsk27-Jun-03 5:24
johnstonsk27-Jun-03 5:24 
GeneralRe: adding variables to a struct that were read in from a file Pin
Rage27-Jun-03 4:47
professionalRage27-Jun-03 4:47 
GeneralRe: adding variables to a struct that were read in from a file Pin
Ryan Binns27-Jun-03 4:59
Ryan Binns27-Jun-03 4:59 
GeneralRe: adding variables to a struct that were read in from a file Pin
John M. Drescher27-Jun-03 5:53
John M. Drescher27-Jun-03 5:53 
GeneralRe: adding variables to a struct that were read in from a file Pin
David Crow27-Jun-03 4:54
David Crow27-Jun-03 4:54 
GeneralRe: adding variables to a struct that were read in from a file Pin
johnstonsk27-Jun-03 5:18
johnstonsk27-Jun-03 5:18 
GeneralRe: adding variables to a struct that were read in from a file Pin
David Crow27-Jun-03 5:42
David Crow27-Jun-03 5:42 
GeneralRe: adding variables to a struct that were read in from a file Pin
Ryan Binns27-Jun-03 4:56
Ryan Binns27-Jun-03 4:56 
GeneralRe: adding variables to a struct that were read in from a file Pin
johnstonsk27-Jun-03 5:24
johnstonsk27-Jun-03 5:24 
GeneralRe: adding variables to a struct that were read in from a file Pin
Ryan Binns27-Jun-03 13:48
Ryan Binns27-Jun-03 13:48 
GeneralAbout SetIcon Pin
olinn27-Jun-03 3:56
olinn27-Jun-03 3:56 
GeneralRe: About SetIcon Pin
Rage27-Jun-03 4:25
professionalRage27-Jun-03 4:25 
Generalup and down arrows in a string. Pin
mcgahanfl27-Jun-03 3:29
mcgahanfl27-Jun-03 3:29 
GeneralRe: up and down arrows in a string. Pin
basementman27-Jun-03 3:43
basementman27-Jun-03 3:43 
GeneralRe: up and down arrows in a string. Pin
mcgahanfl27-Jun-03 4:14
mcgahanfl27-Jun-03 4:14 
GeneralRe: up and down arrows in a string. Pin
basementman27-Jun-03 4:17
basementman27-Jun-03 4: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.