Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Alphabets only in CEdit Pin
Nibu babu thomas6-Mar-06 18:29
Nibu babu thomas6-Mar-06 18:29 
AnswerRe: Alphabets only in CEdit Pin
nripun6-Mar-06 23:40
nripun6-Mar-06 23:40 
QuestionPlease solve my problems Pin
rajeevktripathi6-Mar-06 17:42
rajeevktripathi6-Mar-06 17:42 
AnswerRe: Please solve my problems Pin
Taka Muraoka6-Mar-06 18:05
Taka Muraoka6-Mar-06 18:05 
AnswerRe: Please solve my problems Pin
Taka Muraoka6-Mar-06 18:49
Taka Muraoka6-Mar-06 18:49 
GeneralRe: Please solve my problems Pin
Ryan Binns6-Mar-06 19:33
Ryan Binns6-Mar-06 19:33 
AnswerRe: Please solve my problems Pin
Gary R. Wheeler7-Mar-06 3:52
Gary R. Wheeler7-Mar-06 3:52 
Questionmissing storage-class or type specifiers Pin
Kranti12519846-Mar-06 17:35
Kranti12519846-Mar-06 17:35 
Hi,

I'm getting following errors while creating 3 classes as mentioned below ...

//---------------------------

class CConfig
{
//declarations
};

//---------------------------

#include "Config.h"
class CDlg
{
CConfig m_config; //no errors
};

//---------------------------

#include "Config.h"
class CDump
{
void MyFun(CConfig config); //errors
};

//---------------------------

in class CDump i'm getting some errors as ...

error C2146: syntax error : missing ';' before identifier 'config'
error C2501: 'CConfig' : missing storage-class or type specifiers
error C2501: 'config' : missing storage-class or type specifiers

as far as class CDlg is concerned i'm able to declare and use the object of CConfig but why doesn't it work in the other case?

Thanks,
Kranti


-- modified at 23:59 Monday 6th March, 2006
AnswerRe: missing storage-class or type specifiers Pin
Nibu babu thomas6-Mar-06 17:39
Nibu babu thomas6-Mar-06 17:39 
GeneralRe: missing storage-class or type specifiers Pin
Kranti12519846-Mar-06 17:44
Kranti12519846-Mar-06 17:44 
GeneralRe: missing storage-class or type specifiers Pin
Nibu babu thomas6-Mar-06 17:48
Nibu babu thomas6-Mar-06 17:48 
GeneralRe: missing storage-class or type specifiers Pin
Kranti12519846-Mar-06 17:50
Kranti12519846-Mar-06 17:50 
GeneralRe: missing storage-class or type specifiers Pin
Nibu babu thomas6-Mar-06 17:57
Nibu babu thomas6-Mar-06 17:57 
GeneralRe: missing storage-class or type specifiers Pin
Kranti12519846-Mar-06 18:02
Kranti12519846-Mar-06 18:02 
AnswerRe: missing storage-class or type specifiers Pin
Ghasrfakhri6-Mar-06 17:50
Ghasrfakhri6-Mar-06 17:50 
GeneralRe: missing storage-class or type specifiers Pin
Kranti12519846-Mar-06 17:54
Kranti12519846-Mar-06 17:54 
QuestionProblem with Serial Port Transmission Pin
BeakX6-Mar-06 17:23
BeakX6-Mar-06 17:23 
AnswerRe: Problem with Serial Port Transmission Pin
Ryan Binns6-Mar-06 17:30
Ryan Binns6-Mar-06 17:30 
QuestionTriangle * Pin
yaaqub6-Mar-06 17:03
yaaqub6-Mar-06 17:03 
AnswerRe: Triangle * Pin
Nibu babu thomas6-Mar-06 17:16
Nibu babu thomas6-Mar-06 17:16 
Questionto read a text file Pin
beardy janggut6-Mar-06 16:40
beardy janggut6-Mar-06 16:40 
AnswerRe: to read a text file Pin
Nibu babu thomas6-Mar-06 21:06
Nibu babu thomas6-Mar-06 21:06 
QuestionProcessShellCommand Pin
derek76-Mar-06 16:33
derek76-Mar-06 16:33 
AnswerRe: ProcessShellCommand Pin
Nibu babu thomas6-Mar-06 18:33
Nibu babu thomas6-Mar-06 18:33 
Questionwindows service with ui on vista Pin
chenxiujie6-Mar-06 16:26
chenxiujie6-Mar-06 16:26 

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.