Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Shared Memory Pin
Todd Smith17-Oct-02 12:05
Todd Smith17-Oct-02 12:05 
GeneralRe: Shared Memory Pin
User 988517-Oct-02 12:37
User 988517-Oct-02 12:37 
GeneralRe: Shared Memory Pin
Paul M Watt17-Oct-02 12:38
mentorPaul M Watt17-Oct-02 12:38 
GeneralRe: Shared Memory Pin
Daniel Lohmann19-Oct-02 2:02
Daniel Lohmann19-Oct-02 2:02 
GeneralUNICODE MFC libraries in VC6 Pin
Todd Smith17-Oct-02 11:39
Todd Smith17-Oct-02 11:39 
GeneralRe: UNICODE MFC libraries in VC6 Pin
Anders Molin17-Oct-02 12:07
professionalAnders Molin17-Oct-02 12:07 
GeneralRe: UNICODE MFC libraries in VC6 Pin
Michael Dunn17-Oct-02 15:08
sitebuilderMichael Dunn17-Oct-02 15:08 
QuestionIs this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 11:24
perlmunger17-Oct-02 11:24 
I've read the documentation on the compiler error C2668 ('ambiguous call to overloaded function') and it seems that it usually occurs when someone has accidentally introduced an ambiguous function into their own code while overloading a functin. Now, it is possible that I am doing this, but the ambiguous function in question is 'memcpy' and 'memcmp' and the file in question is from Microsoft (c:\program files\microsoft visual studio\vc98\include\comutil.h). Is it possible that this is a bug in MS code? Everything compiles fine, but when I try to link, I get this:

c:\program files\microsoft visual studio\vc98\include\comutil.h(562) : error C2668: 'memcpy' : ambiguous call to overloaded function
c:\program files\microsoft visual studio\vc98\include\comutil.h(568) : error C2668: 'memcpy' : ambiguous call to overloaded function
c:\program files\microsoft visual studio\vc98\include\comutil.h(915) : error C2668: 'memcpy' : ambiguous call to overloaded function
c:\program files\microsoft visual studio\vc98\include\comutil.h(1610) : error C2668: 'memcmp' : ambiguous call to overloaded function
c:\program files\microsoft visual studio\vc98\include\comutil.h(1617) : error C2668: 'memcmp' : ambiguous call to overloaded function
c:\program files\microsoft visual studio\vc98\include\comutil.h(1632) : error C2668: 'memcmp' : ambiguous call to overloaded function
c:\program files\microsoft visual studio\vc98\include\comutil.h(1682) : error C2668: 'memcpy' : ambiguous call to overloaded function
c:\program files\microsoft sdk\include\comdef.h(205) : error C2668: 'memcpy' : ambiguous call to overloaded function
Error executing cl.exe.

-------------------------------------------


Please Help!! What is going on here?

TIA.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
AnswerRe: Is this a Bug In Microsoft Code? Pin
Joaquín M López Muñoz17-Oct-02 11:36
Joaquín M López Muñoz17-Oct-02 11:36 
GeneralRe: Is this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 11:51
perlmunger17-Oct-02 11:51 
GeneralRe: Is this a Bug In Microsoft Code? Pin
Joaquín M López Muñoz17-Oct-02 12:00
Joaquín M López Muñoz17-Oct-02 12:00 
GeneralRe: Is this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 12:12
perlmunger17-Oct-02 12:12 
GeneralRe: Is this a Bug In Microsoft Code? Pin
Joaquín M López Muñoz17-Oct-02 12:18
Joaquín M López Muñoz17-Oct-02 12:18 
GeneralRe: Is this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 13:40
perlmunger17-Oct-02 13:40 
GeneralRe: Is this a Bug In Microsoft Code? Pin
Seefou17-Oct-02 11:53
Seefou17-Oct-02 11:53 
GeneralRe: Is this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 14:07
perlmunger17-Oct-02 14:07 
AnswerRe: Is this a Bug In Microsoft Code? Pin
perlmunger18-Oct-02 8:12
perlmunger18-Oct-02 8:12 
GeneralHandle double-click on an Edit box Pin
Karl17-Oct-02 10:55
Karl17-Oct-02 10:55 
GeneralRe: Handle double-click on an Edit box Pin
valikac17-Oct-02 12:43
valikac17-Oct-02 12:43 
GeneralPrinting contents of Dialog window Pin
AnanyasChintayantoyam17-Oct-02 9:46
sussAnanyasChintayantoyam17-Oct-02 9:46 
GeneralRe: Printing contents of Dialog window Pin
Chris Losinger17-Oct-02 11:46
professionalChris Losinger17-Oct-02 11:46 
GeneralRe: Printing contents of Dialog window Pin
Anonymous18-Oct-02 5:07
Anonymous18-Oct-02 5:07 
GeneralProblem converting Chinese characters to UTF8 Pin
Anonymous17-Oct-02 9:41
Anonymous17-Oct-02 9:41 
GeneralRe: Problem converting Chinese characters to UTF8 Pin
WWen17-Oct-02 10:32
WWen17-Oct-02 10:32 
GeneralRe: Problem converting Chinese characters to UTF8 Pin
Anonymous17-Oct-02 11:34
Anonymous17-Oct-02 11:34 

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.