Click here to Skip to main content
16,004,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The Noo-B Blues Pin
Snyp10-Mar-04 11:41
Snyp10-Mar-04 11:41 
Generaldisplay tooltips on CToolBarCtrl Pin
bin892210-Mar-04 10:50
bin892210-Mar-04 10:50 
GeneralRe: display tooltips on CToolBarCtrl Pin
casid10-Mar-04 12:21
casid10-Mar-04 12:21 
GeneralNeed some help on ClistCtrl Control Pin
pavneet10-Mar-04 10:39
pavneet10-Mar-04 10:39 
GeneralRe: Need some help on ClistCtrl Control Pin
Michael Dunn10-Mar-04 12:08
sitebuilderMichael Dunn10-Mar-04 12:08 
GeneralParseing a string question. Pin
modeonetwo10-Mar-04 10:18
modeonetwo10-Mar-04 10:18 
GeneralRe: Parseing a string question. Pin
Branislav10-Mar-04 15:25
Branislav10-Mar-04 15:25 
GeneralRe: Parseing a string question. Pin
David Crow11-Mar-04 3:36
David Crow11-Mar-04 3:36 
modeonetwo wrote:
m_sfile.getline( buff, 256 );

Using hard-coded numbers in this fashion is just asking for trouble. Yours is a mild example, but imagine the troubles you'd have if the size of that buffer needed to change. You'd need to find all references to it. Use the sizeof() operator instead.

modeonetwo wrote:
...it seems not to work

Which means?

What exactly are you tring to do? What is the format of the file that is being read? Mixing CString, char*, strtok(), etc makes me dizzy. That's way more than work than is necessary.


"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
GeneralIOCTL Pin
Dev57810-Mar-04 9:57
Dev57810-Mar-04 9:57 
GeneralRe: IOCTL Pin
David Crow10-Mar-04 10:10
David Crow10-Mar-04 10:10 
GeneralXP style project Pin
krugger10-Mar-04 8:16
krugger10-Mar-04 8:16 
GeneralRe: XP style project Pin
Christian Graus10-Mar-04 8:27
protectorChristian Graus10-Mar-04 8:27 
GeneralRe: XP style project Pin
Neville Franks10-Mar-04 10:33
Neville Franks10-Mar-04 10:33 
GeneralRe: XP style project Pin
Anonymous10-Mar-04 12:22
Anonymous10-Mar-04 12:22 
Questionnon XP visual style when using chtmlview in VC6/VC7 ?? Pin
karmafx10-Mar-04 7:42
karmafx10-Mar-04 7:42 
AnswerRe: non XP visual style when using chtmlview in VC6/VC7 ?? Pin
Neville Franks10-Mar-04 10:39
Neville Franks10-Mar-04 10:39 
AnswerRe: non XP visual style when using chtmlview in VC6/VC7 ?? Pin
karmafx10-Mar-04 10:46
karmafx10-Mar-04 10:46 
GeneralRe: non XP visual style when using chtmlview in VC6/VC7 ?? Pin
Neville Franks10-Mar-04 12:33
Neville Franks10-Mar-04 12:33 
GeneralRe: non XP visual style when using chtmlview in VC6/VC7 ?? Pin
karmafx10-Mar-04 21:45
karmafx10-Mar-04 21:45 
GeneralCHange Gradient Colors in WIndow Caption Pin
doctorpi10-Mar-04 7:13
doctorpi10-Mar-04 7:13 
GeneralRe: CHange Gradient Colors in WIndow Caption Pin
Robert A. T. Káldy11-Mar-04 1:34
Robert A. T. Káldy11-Mar-04 1:34 
GeneralFileWriting -> Arrays Pin
nsaddock10-Mar-04 6:02
nsaddock10-Mar-04 6:02 
GeneralRe: FileWriting -> Arrays Pin
David Crow10-Mar-04 10:06
David Crow10-Mar-04 10:06 
Generalclass std::basic_ofstream errors Pin
Andrew Hoole10-Mar-04 5:19
Andrew Hoole10-Mar-04 5:19 
GeneralRe: class std::basic_ofstream errors Pin
Neville Franks10-Mar-04 10:43
Neville Franks10-Mar-04 10:43 

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.