Click here to Skip to main content
14,691,000 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C, Win32 API: l need help with tab control Pin
Richard MacCutchan26-Jan-16 23:34
mveRichard MacCutchan26-Jan-16 23:34 
QuestionRe: C, Win32 API: l need help with tab control Pin
David Crow27-Jan-16 5:27
MemberDavid Crow27-Jan-16 5:27 
QuestionToo many initializers error in MSVC. Pin
Brisingr Aerowing20-Jan-16 14:02
professionalBrisingr Aerowing20-Jan-16 14:02 
SuggestionRe: Too many initializers error in MSVC. Pin
David Crow22-Jan-16 5:49
MemberDavid Crow22-Jan-16 5:49 
GeneralRe: Too many initializers error in MSVC. Pin
Brisingr Aerowing22-Jan-16 6:02
professionalBrisingr Aerowing22-Jan-16 6:02 
GeneralRe: Too many initializers error in MSVC. Pin
Richard MacCutchan22-Jan-16 7:35
mveRichard MacCutchan22-Jan-16 7:35 
GeneralRe: Too many initializers error in MSVC. Pin
Brisingr Aerowing12-Feb-16 6:55
professionalBrisingr Aerowing12-Feb-16 6:55 
QuestionC++ Namespace scope bug / feature Pin
Anthony Mushrow20-Jan-16 4:00
professionalAnthony Mushrow20-Jan-16 4:00 
Just ran into something I thought was odd today, if you had the following

namespace A
{
	enum Things
	{
		Apple,
		Orange,
		HamSandwich,
		RocketPoweredElephant
	};

	void Function(Things thing)
	{

	}
}

namespace B
{
	void Function(A::Things thing)
	{

	}

	void Ambiguous()
	{
		Function(A::Orange); //Error - Ambiguous call
	}
}

void main()
{
	Function(A::Orange); //Will call A::Function
}


Because one of the parameters is type contained within namespace A, A::Function is being brought into scope, causing an error for the function Ambiguous.

Is this part of the spec or is it some compiler (VS2012) jiggery pokery?
AnswerRe: C++ Namespace scope bug / feature Pin
Richard MacCutchan20-Jan-16 5:38
mveRichard MacCutchan20-Jan-16 5:38 
AnswerRe: C++ Namespace scope bug / feature Pin
Aescleal20-Jan-16 7:51
MemberAescleal20-Jan-16 7:51 
GeneralRe: C++ Namespace scope bug / feature Pin
Anthony Mushrow20-Jan-16 9:04
professionalAnthony Mushrow20-Jan-16 9:04 
QuestionNeed to communicate between two server processes Pin
Member 1227424519-Jan-16 9:57
MemberMember 1227424519-Jan-16 9:57 
SuggestionRe: Need to communicate between two server processes Pin
David Crow19-Jan-16 10:41
MemberDavid Crow19-Jan-16 10:41 
SuggestionRe: Need to communicate between two server processes Pin
Midi_Mick19-Jan-16 19:37
professionalMidi_Mick19-Jan-16 19:37 
QuestionC1001 internal Compiler error VS 2012 pro Pin
ForNow19-Jan-16 5:14
MemberForNow19-Jan-16 5:14 
AnswerRe: C1001 internal Compiler error VS 2012 pro Pin
Richard MacCutchan19-Jan-16 5:21
mveRichard MacCutchan19-Jan-16 5:21 
GeneralRe: C1001 internal Compiler error VS 2012 pro Pin
ForNow19-Jan-16 9:07
MemberForNow19-Jan-16 9:07 
AnswerRe: C1001 internal Compiler error VS 2012 pro Pin
Jochen Arndt19-Jan-16 5:30
professionalJochen Arndt19-Jan-16 5:30 
GeneralRe: C1001 internal Compiler error VS 2012 pro Pin
ForNow19-Jan-16 9:05
MemberForNow19-Jan-16 9:05 
QuestionC, Win32: l need help getting user input[Solved] Pin
Member 1213944217-Jan-16 12:41
MemberMember 1213944217-Jan-16 12:41 
AnswerRe: C, Win32: l need help getting user input Pin
Richard MacCutchan17-Jan-16 22:31
mveRichard MacCutchan17-Jan-16 22:31 
PraiseRe: C, Win32: l need help getting user input Pin
Member 1213944218-Jan-16 12:10
MemberMember 1213944218-Jan-16 12:10 
QuestionContext menu style of Shell in Windows 10 Pin
rikka0w016-Jan-16 20:21
Memberrikka0w016-Jan-16 20:21 
QuestionC function to call 5 different functions Pin
Member 1213438816-Jan-16 6:55
MemberMember 1213438816-Jan-16 6:55 
AnswerRe: C function to call 5 different functions Pin
Richard Andrew x6416-Jan-16 7:48
professionalRichard Andrew x6416-Jan-16 7:48 

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.