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

C / C++ / MFC

 
AnswerRe: Reg : CEdit Pin
ghost90Tom25-May-09 4:10
ghost90Tom25-May-09 4:10 
QuestionRe: Reg : CEdit Pin
David Crow25-May-09 8:35
David Crow25-May-09 8:35 
QuestionBuild Error When Include Web Service in MFC application Pin
Shivanand Gupta25-May-09 3:47
Shivanand Gupta25-May-09 3:47 
AnswerRe: Build Error When Include Web Service in MFC application Pin
Cedric Moonen25-May-09 3:52
Cedric Moonen25-May-09 3:52 
GeneralRe: Build Error When Include Web Service in MFC application Pin
Shivanand Gupta25-May-09 6:52
Shivanand Gupta25-May-09 6:52 
GeneralRe: Build Error When Include Web Service in MFC application Pin
Cedric Moonen25-May-09 7:13
Cedric Moonen25-May-09 7:13 
QuestionRe: Build Error When Include Web Service in MFC application Pin
David Crow25-May-09 8:39
David Crow25-May-09 8:39 
GeneralRe: Build Error When Include Web Service in MFC application Pin
mike4online30-Dec-22 21:06
mike4online30-Dec-22 21:06 
I recently encountered this ambiguous symbol issue and found a solution. Posting here in this old thread for reference.

I had the same issue in a project where I needed to include both <afxmt.h> and <atlsync.h>. They each have a similar set of concurrency classes with the same names -- but for a given class some of the member functions are distinct.

In Visual Studio 2022 build 17.4.3 with the latest Windows 10 SDK (and perhaps in older IDEs and SDKs), you can reference classes from both of these headers without ambiguity, so long as you:

1) Include afxmt.h BEFORE including atlsync.h, e.g.

#include <afxmt.h>
#include <atlsync.h>

2) Do NOT specify using namespace ATL

3) To reference a class in atlsync.h, preface the class name with ATL::, e.g. ATL::CEvent or ATL::CSemaphore. If you do not add this ATL:: namespace preface, the class will be referenced from afxmt.h.
AnswerRe: Build Error When Include Web Service in MFC application Pin
Rajesh R Subramanian25-May-09 3:58
professionalRajesh R Subramanian25-May-09 3:58 
GeneralRe: Build Error When Include Web Service in MFC application Pin
Shivanand Gupta25-May-09 6:53
Shivanand Gupta25-May-09 6:53 
GeneralNew Person thanks!! Pin
ghost90Tom25-May-09 3:28
ghost90Tom25-May-09 3:28 
GeneralRe: New Person thanks!! Pin
Rajesh R Subramanian25-May-09 3:51
professionalRajesh R Subramanian25-May-09 3:51 
GeneralHey bad-bad-bad boy Pin
CPallini25-May-09 8:26
mveCPallini25-May-09 8:26 
QuestionTarget compilation of VC compiler [modified] Pin
Md Saleem Navalur25-May-09 2:53
Md Saleem Navalur25-May-09 2:53 
AnswerRe: Target compilation of VC compiler [modified] Pin
Randor 25-May-09 10:41
professional Randor 25-May-09 10:41 
GeneralRe: Target compilation of VC compiler Pin
Md Saleem Navalur25-May-09 20:40
Md Saleem Navalur25-May-09 20:40 
GeneralRe: Target compilation of VC compiler Pin
Randor 25-May-09 21:34
professional Randor 25-May-09 21:34 
Questionselect all rows in CList Contol Pin
MrKBA25-May-09 2:23
MrKBA25-May-09 2:23 
AnswerRe: select all rows in CList Contol Pin
Naveen25-May-09 3:36
Naveen25-May-09 3:36 
GeneralRe: select all rows in CList Contol Pin
MrKBA25-May-09 6:00
MrKBA25-May-09 6:00 
Questionhow to add animation CWaitCursor Pin
ptr_Electron25-May-09 1:39
ptr_Electron25-May-09 1:39 
AnswerRe: how to add animation CWaitCursor Pin
Cedric Moonen25-May-09 1:41
Cedric Moonen25-May-09 1:41 
GeneralRe: how to add animation CWaitCursor Pin
ptr_Electron25-May-09 1:47
ptr_Electron25-May-09 1:47 
GeneralRe: how to add animation CWaitCursor Pin
Nibu babu thomas25-May-09 2:05
Nibu babu thomas25-May-09 2:05 
QuestionRe: how to add animation CWaitCursor Pin
David Crow25-May-09 8:42
David Crow25-May-09 8:42 

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.