Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reading a string from an unknown position in a file Pin
Stephen Hewitt5-Mar-06 21:32
Stephen Hewitt5-Mar-06 21:32 
GeneralRe: reading a string from an unknown position in a file Pin
SWDevil5-Mar-06 21:37
SWDevil5-Mar-06 21:37 
GeneralRe: reading a string from an unknown position in a file Pin
Stephen Hewitt5-Mar-06 21:47
Stephen Hewitt5-Mar-06 21:47 
GeneralRe: reading a string from an unknown position in a file Pin
SWDevil5-Mar-06 21:53
SWDevil5-Mar-06 21:53 
GeneralRe: reading a string from an unknown position in a file Pin
Gary R. Wheeler6-Mar-06 12:41
Gary R. Wheeler6-Mar-06 12:41 
QuestionRe: reading a string from an unknown position in a file Pin
David Crow6-Mar-06 3:18
David Crow6-Mar-06 3:18 
AnswerRe: reading a string from an unknown position in a file Pin
Gary R. Wheeler6-Mar-06 12:44
Gary R. Wheeler6-Mar-06 12:44 
AnswerRe: reading a string from an unknown position in a file Pin
David Crow6-Mar-06 3:15
David Crow6-Mar-06 3:15 
QuestionA beginners question about UINT Pin
Waldermort5-Mar-06 1:04
Waldermort5-Mar-06 1:04 
AnswerRe: A beginners question about UINT Pin
Justin Tay5-Mar-06 1:20
Justin Tay5-Mar-06 1:20 
GeneralRe: A beginners question about UINT Pin
Waldermort5-Mar-06 1:51
Waldermort5-Mar-06 1:51 
QuestionReal time audio capture and processing Pin
toolboxx4-Mar-06 23:06
toolboxx4-Mar-06 23:06 
AnswerRe: Real time audio capture and processing Pin
mikanu5-Mar-06 10:14
mikanu5-Mar-06 10:14 
GeneralRe: Real time audio capture and processing Pin
toolboxx7-Mar-06 17:45
toolboxx7-Mar-06 17:45 
Questionc++ string class Pin
Waldermort4-Mar-06 22:51
Waldermort4-Mar-06 22:51 
AnswerRe: c++ string class Pin
Stephen Hewitt4-Mar-06 23:52
Stephen Hewitt4-Mar-06 23:52 
I'm not sure if there is any portable way of doing this. The reason is that all of the strings characters need not actually be sequentially stored in all implementations. For example an implementation may use a deque like structure to avoid having to copy the entire contents of the string across to a new buffer when the string length exceeds its capacity. I think you'll have to read into a normal char array then assign to a string.

Steve
GeneralRe: c++ string class Pin
Waldermort5-Mar-06 0:40
Waldermort5-Mar-06 0:40 
GeneralRe: c++ string class Pin
Rob Caldecott5-Mar-06 2:22
Rob Caldecott5-Mar-06 2:22 
GeneralRe: c++ string class Pin
Stephen Hewitt5-Mar-06 15:57
Stephen Hewitt5-Mar-06 15:57 
AnswerRe: c++ string class Pin
Gary R. Wheeler5-Mar-06 2:29
Gary R. Wheeler5-Mar-06 2:29 
QuestionCheckbox / How do I get the width/height of it? Pin
Sebastian Pipping4-Mar-06 19:02
Sebastian Pipping4-Mar-06 19:02 
QuestionRe: Checkbox / How do I get the width/height of it? Pin
Sebastian Pipping4-Mar-06 21:05
Sebastian Pipping4-Mar-06 21:05 
AnswerRe: Checkbox / How do I get the width/height of it? Pin
Stephen Hewitt4-Mar-06 21:24
Stephen Hewitt4-Mar-06 21:24 
GeneralRe: Checkbox / How do I get the width/height of it? Pin
Sebastian Pipping4-Mar-06 21:31
Sebastian Pipping4-Mar-06 21:31 
GeneralRe: Checkbox / How do I get the width/height of it? Pin
Sebastian Pipping4-Mar-06 21:46
Sebastian Pipping4-Mar-06 21:46 

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.