Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Best way to duplicate a file? Pin
Hamid_RT8-Feb-07 18:25
Hamid_RT8-Feb-07 18:25 
QuestionFinding the renderer filter in the directshow's filtergraph Pin
emrah.a8-Feb-07 11:37
emrah.a8-Feb-07 11:37 
AnswerRe: Finding the renderer filter in the directshow's filtergraph Pin
Mark Salsbery8-Feb-07 12:35
Mark Salsbery8-Feb-07 12:35 
QuestionOh No. What Have I done. Pin
Chris Meech8-Feb-07 11:03
Chris Meech8-Feb-07 11:03 
AnswerRe: Oh No. What Have I done. Pin
Mark Salsbery8-Feb-07 11:24
Mark Salsbery8-Feb-07 11:24 
GeneralRe: Oh No. What Have I done. Pin
Chris Meech8-Feb-07 11:35
Chris Meech8-Feb-07 11:35 
GeneralRe: Oh No. What Have I done. Pin
Mark Salsbery8-Feb-07 12:26
Mark Salsbery8-Feb-07 12:26 
AnswerRe: Oh No. What Have I done. Pin
Stephen Hewitt8-Feb-07 11:46
Stephen Hewitt8-Feb-07 11:46 
From <winbase.h> which is included by <windows.h>:
#ifdef UNICODE
#define CopyFile CopyFileW
#else
#define CopyFile CopyFileA
#endif // !UNICODE


This is the macro the warning is referring to. This is all part of the evils of macros: because macros don't obey C++ scoping rules namespaces and such can't be used to have multiple but non-conflicting duplicate names. I don't think this warning will cause you any problems however. To rename the method (although you don't really need to) you do something like this:
#import "C:\\Program Files\\Microsoft Office\\OFFICE11\\MSOUTL.OLB" no_namespace rename("CopyFile", "OfficeCopyFile")


Steve

GeneralRe: Oh No. What Have I done. Pin
Chris Meech8-Feb-07 12:07
Chris Meech8-Feb-07 12:07 
AnswerRe: Oh No. What Have I done. Pin
Michael Dunn8-Feb-07 16:34
sitebuilderMichael Dunn8-Feb-07 16:34 
QuestionShould I migrate from Visual C++ 6 to Visual C++ 2005 Pin
Wei Cheng8-Feb-07 10:45
Wei Cheng8-Feb-07 10:45 
AnswerRe: Should I migrate from Visual C++ 6 to Visual C++ 2005 Pin
Christian Graus8-Feb-07 10:56
protectorChristian Graus8-Feb-07 10:56 
GeneralRe: Should I migrate from Visual C++ 6 to Visual C++ 2005 Pin
Michael Dunn8-Feb-07 16:35
sitebuilderMichael Dunn8-Feb-07 16:35 
AnswerRe: Should I migrate from Visual C++ 6 to Visual C++ 2005 Pin
led mike8-Feb-07 11:36
led mike8-Feb-07 11:36 
AnswerRe: Should I migrate from Visual C++ 6 to Visual C++ 2005 Pin
Ravi Bhavnani8-Feb-07 14:24
professionalRavi Bhavnani8-Feb-07 14:24 
AnswerRe: Should I migrate from Visual C++ 6 to Visual C++ 2005 Pin
Michael Dunn8-Feb-07 16:36
sitebuilderMichael Dunn8-Feb-07 16:36 
AnswerRe: Should I migrate from Visual C++ 6 to Visual C++ 2005 Pin
#realJSOP8-Feb-07 23:29
professional#realJSOP8-Feb-07 23:29 
AnswerRe: Should I migrate from Visual C++ 6 to Visual C++ 2005 Pin
Wei Cheng9-Feb-07 3:02
Wei Cheng9-Feb-07 3:02 
QuestionDialog box from UI thread crashes application Pin
BuckBrown8-Feb-07 10:43
BuckBrown8-Feb-07 10:43 
AnswerRe: Dialog box from UI thread crashes application Pin
Mark Salsbery8-Feb-07 11:28
Mark Salsbery8-Feb-07 11:28 
GeneralRe: Dialog box from UI thread crashes application Pin
BuckBrown8-Feb-07 12:05
BuckBrown8-Feb-07 12:05 
GeneralRe: Dialog box from UI thread crashes application Pin
Mark Salsbery8-Feb-07 12:24
Mark Salsbery8-Feb-07 12:24 
GeneralRe: Dialog box from UI thread crashes application Pin
BuckBrown8-Feb-07 12:35
BuckBrown8-Feb-07 12:35 
GeneralRe: Dialog box from UI thread crashes application Pin
Mark Salsbery8-Feb-07 12:52
Mark Salsbery8-Feb-07 12:52 
GeneralRe: Dialog box from UI thread crashes application Pin
BuckBrown8-Feb-07 13:02
BuckBrown8-Feb-07 13:02 

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.