Home > Software engineering >  Help: old MFC vc6 project in vs2015 compilation, prompt the atltrace. The error in the h C2039
Help: old MFC vc6 project in vs2015 compilation, prompt the atltrace. The error in the h C2039

Time:09-20

The error C2039: 'OutputDebugStringA' : is not a member of '` global namespace'
But atltrace. H is the official documents of the MFC,
I tried a new empty project under vs2015, you can compile successfully, and then add the old h and CPP file to empty project, compile error, the paper surface errors,
Beg for understanding of superior and see how to solve, thank you very much!

CodePudding user response:

The include Windows. H
The link with Kernel32. Lib

CodePudding user response:

The Header
WinBase. H (include Windows. H)
The Library
Kernel32. Lib
DLL
Kernel32. DLL

CodePudding user response:

My project has been added Kernel32. Lib links, but atltrace. H is MFC system files, I don't need to manually modify,
Another is not add old h and CPP, compiler will not be submitted to the wrong, so feel atltrace. H itself should be no problem

CodePudding user response:

Should have other questions, and adjust the head file order,,

CodePudding user response:

Mainly atltrace. H is the file system, according to the previous performance is not like system files out of the question, but I don't know is which file has a problem, so don't know what to order, please give advice or comments
  • Related