Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTrap and remap a key for a specific application Pin
Berkelium17-Feb-05 4:47
Berkelium17-Feb-05 4:47 
GeneralRe: Trap and remap a key for a specific application Pin
RaajaOfSelf17-Feb-05 10:28
RaajaOfSelf17-Feb-05 10:28 
QuestionHow to truncate text at the beginning? Pin
Kribb17-Feb-05 4:35
Kribb17-Feb-05 4:35 
AnswerRe: How to truncate text at the beginning? Pin
David Crow17-Feb-05 6:10
David Crow17-Feb-05 6:10 
GeneralRe: How to truncate text at the beginning? Pin
Kribb17-Feb-05 11:46
Kribb17-Feb-05 11:46 
GeneralHooking &screening keyboard input - unique problem Pin
amg_developer17-Feb-05 2:54
amg_developer17-Feb-05 2:54 
GeneralVisio 2000 in IE Pin
pankajdaga17-Feb-05 2:12
pankajdaga17-Feb-05 2:12 
Generalclasses and namespaces Pin
Alan Chambers17-Feb-05 1:29
Alan Chambers17-Feb-05 1:29 
Is there any particular reason why the following code won't compile? Thats very basically what I have got. I'm only doing this as a quick hack, so I'm not at all concerned with code design, but it really intrigued me as to why it won't let me declare a namespace within a class? All the things I've read on the internet deal only with class declarations within a namespace but not visa versa. Just wondering whether this the c++ standard leaves it up to the compiler or whether its officially illegal code? Seems a bit silly to me, but maybe theres a reason for it? Just wondered if anyone's knows what it is?

<br />
class Outcome<br />
{<br />
public:<br />
	enum Type<br />
	{<br />
		kHalt,<br />
		kMove,<br />
		kJump,<br />
	};<br />
<br />
	Type	m_type;<br />
<br />
	namespace halt<br />
	{<br />
		void Low(void);<br />
		void Medium(void);<br />
		void High(void);<br />
	};<br />
<br />
	namespace move<br />
	{<br />
		void Low(void);<br />
		void Medium(void);<br />
		void High(void);<br />
	};<br />
<br />
	namespace jump<br />
	{<br />
		void Low(void);<br />
		void Medium(void);<br />
		void High(void);<br />
	};<br />
};<br />



"When I left you I was but the learner, now I am the master" - Darth Vader
GeneralRe: classes and namespaces Pin
Bob Ciora17-Feb-05 1:40
Bob Ciora17-Feb-05 1:40 
GeneralRe: classes and namespaces Pin
Alan Chambers17-Feb-05 1:50
Alan Chambers17-Feb-05 1:50 
GeneralRe: classes and namespaces Pin
digwizfox17-Feb-05 6:29
digwizfox17-Feb-05 6:29 
GeneralRe: classes and namespaces Pin
Mike Dimmick17-Feb-05 1:50
Mike Dimmick17-Feb-05 1:50 
GeneralRe: classes and namespaces Pin
Alan Chambers17-Feb-05 1:58
Alan Chambers17-Feb-05 1:58 
GeneralRe: classes and namespaces Pin
toxcct17-Feb-05 9:09
toxcct17-Feb-05 9:09 
GeneralRe: classes and namespaces Pin
«_Superman_»17-Feb-05 2:26
professional«_Superman_»17-Feb-05 2:26 
GeneralMenu handle from the floating menu bar Pin
Vaibhav Sanghavi17-Feb-05 1:02
Vaibhav Sanghavi17-Feb-05 1:02 
GeneralRe: Menu handle from the floating menu bar Pin
«_Superman_»17-Feb-05 4:20
professional«_Superman_»17-Feb-05 4:20 
GeneralRe: Menu handle from the floating menu bar Pin
Anonymous20-Feb-05 18:45
Anonymous20-Feb-05 18:45 
GeneralRe: Menu handle from the floating menu bar Pin
Vaibhav Sanghavi20-Feb-05 18:51
Vaibhav Sanghavi20-Feb-05 18:51 
GeneralRe: Menu handle from the floating menu bar Pin
Vaibhav Sanghavi20-Feb-05 18:56
Vaibhav Sanghavi20-Feb-05 18:56 
Generalautocad automation with VC++ Pin
Ajesh.P.S17-Feb-05 0:48
Ajesh.P.S17-Feb-05 0:48 
GeneralRe: autocad automation with VC++ Pin
Aza17-Feb-05 1:31
Aza17-Feb-05 1:31 
GeneralExcel COM from C++ Pin
MJWhiteman217-Feb-05 0:47
MJWhiteman217-Feb-05 0:47 
GeneralRe: Excel COM from C++ Pin
MJWhiteman217-Feb-05 3:45
MJWhiteman217-Feb-05 3:45 
QuestionHow to Find if a machine exists on LAN just by using Machine Name. Pin
RuchirD17-Feb-05 0:16
RuchirD17-Feb-05 0:16 

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.