Click here to Skip to main content
15,896,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Cursor Issues Pin
Ryan Binns22-Feb-06 17:19
Ryan Binns22-Feb-06 17:19 
GeneralRe: Cursor Issues Pin
#realJSOP23-Feb-06 2:20
professional#realJSOP23-Feb-06 2:20 
QuestionSetupDiRemoveDevice() Pin
Manu_8122-Feb-06 10:31
Manu_8122-Feb-06 10:31 
QuestionDisable Task Manager from MFC Pin
JBAK_CP22-Feb-06 10:30
JBAK_CP22-Feb-06 10:30 
AnswerRe: Disable Task Manager from MFC Pin
super22-Feb-06 12:04
professionalsuper22-Feb-06 12:04 
GeneralRe: Disable Task Manager from MFC Pin
JBAK_CP24-Feb-06 12:26
JBAK_CP24-Feb-06 12:26 
QuestionAll member variables contain same value Pin
BuckBrown22-Feb-06 8:44
BuckBrown22-Feb-06 8:44 
AnswerRe: All member variables contain same value Pin
Joe Woodbury22-Feb-06 9:22
professionalJoe Woodbury22-Feb-06 9:22 
GeneralRe: All member variables contain same value Pin
BuckBrown22-Feb-06 10:55
BuckBrown22-Feb-06 10:55 
GeneralRe: All member variables contain same value Pin
Joe Woodbury22-Feb-06 11:00
professionalJoe Woodbury22-Feb-06 11:00 
GeneralRe: All member variables contain same value Pin
BuckBrown22-Feb-06 11:06
BuckBrown22-Feb-06 11:06 
GeneralRe: All member variables contain same value Pin
Joe Woodbury22-Feb-06 11:14
professionalJoe Woodbury22-Feb-06 11:14 
GeneralRe: All member variables contain same value Pin
BuckBrown22-Feb-06 12:59
BuckBrown22-Feb-06 12:59 
GeneralRe: All member variables contain same value Pin
Blake Miller23-Feb-06 4:53
Blake Miller23-Feb-06 4:53 
AnswerRe: All member variables contain same value Pin
carks22-Feb-06 9:23
carks22-Feb-06 9:23 
GeneralRe: All member variables contain same value Pin
BuckBrown22-Feb-06 11:04
BuckBrown22-Feb-06 11:04 
QuestionRe: All member variables contain same value Pin
David Crow22-Feb-06 9:37
David Crow22-Feb-06 9:37 
AnswerRe: All member variables contain same value Pin
BuckBrown22-Feb-06 11:05
BuckBrown22-Feb-06 11:05 
GeneralRe: All member variables contain same value Pin
David Crow23-Feb-06 2:29
David Crow23-Feb-06 2:29 
99% of this code is unnecessary to describe your problem. In the future, please try to trim away as much as you can before posting. That goes a long way in obtaining help.

BuckBrown wrote:
FILE* infile;
char* config_file = "Config.txt";


Just curious, but why are you using FILE* and char* with MFC? It's syntactically correct, but not necessary.

BuckBrown wrote:
fscanf(infile, "%[^,]", Inst.m_Type);


The first thing to do is separate CString from fscanf(). While they technically can be made to work together, it's messy and not worth the trouble.

char szText[128];
fscanf(infile, "%[^,]", szText);
Inst.m_Type = szText;
BuckBrown wrote:
fscanf(infile, "%[,]", &m_Comma);


This will never work as m_Comma is a pointer that does not point to a valid memory address. To eat the comma, just add it to the fscanf() statement:

fscanf(infile, "%[^,],", szText);



"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain


Questionlist view / how do i get a list of all selected items? Pin
Sebastian Pipping22-Feb-06 7:09
Sebastian Pipping22-Feb-06 7:09 
AnswerRe: list view / how do i get a list of all selected items? Pin
James R. Twine22-Feb-06 7:27
James R. Twine22-Feb-06 7:27 
GeneralRe: list view / how do i get a list of all selected items? Pin
Sebastian Pipping22-Feb-06 7:57
Sebastian Pipping22-Feb-06 7:57 
AnswerRe: list view / how do i get a list of all selected items? Pin
David Crow22-Feb-06 7:38
David Crow22-Feb-06 7:38 
GeneralRe: list view / how do i get a list of all selected items? Pin
Sebastian Pipping22-Feb-06 8:04
Sebastian Pipping22-Feb-06 8:04 
QuestionAccess to COM methods inside Windows Service ATL Pin
cmacgowan22-Feb-06 6:03
cmacgowan22-Feb-06 6:03 

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.