Click here to Skip to main content
16,010,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DoModal error Pin
parichaybp10-Apr-06 22:53
parichaybp10-Apr-06 22:53 
GeneralRe: DoModal error Pin
Hamid_RT10-Apr-06 23:08
Hamid_RT10-Apr-06 23:08 
GeneralRe: DoModal error Pin
parichaybp10-Apr-06 23:27
parichaybp10-Apr-06 23:27 
GeneralRe: DoModal error Pin
Hamid_RT11-Apr-06 1:28
Hamid_RT11-Apr-06 1:28 
GeneralRe: DoModal error Pin
parichaybp10-Apr-06 22:59
parichaybp10-Apr-06 22:59 
GeneralRe: DoModal error Pin
Hamid_RT10-Apr-06 23:09
Hamid_RT10-Apr-06 23:09 
AnswerRe: DoModal error Pin
_AnsHUMAN_ 10-Apr-06 20:32
_AnsHUMAN_ 10-Apr-06 20:32 
Questionenums Pin
HakunaMatada10-Apr-06 19:04
HakunaMatada10-Apr-06 19:04 
Hi,

I have a small problem when using enums with VC++. Although, I use enums a lot with C#, I am having problems using them in VC++. Let me explain.

I have the declaration in the header file:

class CContext  <br />
{<br />
private:<br />
<br />
public:	<br />
	enum ContextType<br />
	{<br />
		Context1 = 0,<br />
		Context2<br />
	} ;<br />
<br />
        CContextMenu() ;<br />
	virtual ~CContextMenu() ;<br />
        bool AddContextItems( ContextType cT ) ;<br />
};


Then I have the implementation in the cpp file:

bool AddContextItems( ContextType cT )<br />
{<br />
        //Do something	<br />
	return true ;<br />
}


But on compilation, I get the error, ContextType undeclared identifier.
Also, when I click on the function AddContextItems in the Workspace explorer window, it says, Cannot find defination(Implementation) of this file. Can you tell me why this happens?

Thanks,


---
With best regards,
A Manchester United Fan

The Genius of a true fool is that he can mess up a foolproof plan!

-- modified at 1:13 Tuesday 11th April, 2006
AnswerRe: enums Pin
thatsme_cool10-Apr-06 19:10
thatsme_cool10-Apr-06 19:10 
GeneralRe: enums Pin
HakunaMatada10-Apr-06 19:12
HakunaMatada10-Apr-06 19:12 
AnswerRe: enums Pin
Naveen10-Apr-06 19:14
Naveen10-Apr-06 19:14 
GeneralRe: enums Pin
HakunaMatada10-Apr-06 19:26
HakunaMatada10-Apr-06 19:26 
GeneralRe: enums Pin
Naveen10-Apr-06 19:32
Naveen10-Apr-06 19:32 
GeneralRe: enums Pin
HakunaMatada10-Apr-06 19:38
HakunaMatada10-Apr-06 19:38 
AnswerRe: enums Pin
itkid10-Apr-06 19:50
itkid10-Apr-06 19:50 
QuestionHow to use RunModalLoop? Pin
Sarvan AL10-Apr-06 18:41
Sarvan AL10-Apr-06 18:41 
AnswerRe: How to use RunModalLoop? Pin
Ryan Binns10-Apr-06 18:52
Ryan Binns10-Apr-06 18:52 
QuestionMemory related issues Pin
rajeevktripathi10-Apr-06 18:39
rajeevktripathi10-Apr-06 18:39 
AnswerRe: Memory related issues Pin
Ryan Binns10-Apr-06 18:49
Ryan Binns10-Apr-06 18:49 
QuestionRe: Memory related issues Pin
rajeevktripathi10-Apr-06 18:58
rajeevktripathi10-Apr-06 18:58 
AnswerRe: Memory related issues Pin
Ryan Binns10-Apr-06 20:09
Ryan Binns10-Apr-06 20:09 
AnswerRe: Memory related issues Pin
kakan10-Apr-06 19:03
professionalkakan10-Apr-06 19:03 
GeneralRe: Memory related issues Pin
normanS10-Apr-06 19:49
normanS10-Apr-06 19:49 
GeneralRe: Memory related issues Pin
Ryan Binns10-Apr-06 20:07
Ryan Binns10-Apr-06 20:07 
GeneralRe: Memory related issues Pin
normanS11-Apr-06 0:39
normanS11-Apr-06 0:39 

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.