R
Rob C
I am rebuilding a VC++ w/ MFC Project from Visual Studio
V6 in Visual Studio .NET 2003.
There are 2 errors that I am getting that I do not get
when I build using V6.
1) problem with my declaration of a static fuction.
I have a static function called GetDocID() that returns a
CString.
in my .h file it is declared:
static CString GetDocID() { return _T("10010"); }
in the .CPP file, I have declared at the top of the file:
CString CCMSMDSAssessmentMgr::GetDocID();
The error message I am getting is:
"Member Function redeclaration not allowed"
Why was the syntax OK in VS V6 but not in VS .NET? What
is the proper syntax for declaring a member function as
static?
2) GetDefaultPrinter "Identifier Not Found"
I use the SDK function GetDefaultPrinter &
SetDefaultPrinter. I am assuming that I have the right
version of the SDK
installed because this builds OK with VC++ V6. Any ideas
what I need to do here?
Thanks for your help.
Regards,
-Rob
V6 in Visual Studio .NET 2003.
There are 2 errors that I am getting that I do not get
when I build using V6.
1) problem with my declaration of a static fuction.
I have a static function called GetDocID() that returns a
CString.
in my .h file it is declared:
static CString GetDocID() { return _T("10010"); }
in the .CPP file, I have declared at the top of the file:
CString CCMSMDSAssessmentMgr::GetDocID();
The error message I am getting is:
"Member Function redeclaration not allowed"
Why was the syntax OK in VS V6 but not in VS .NET? What
is the proper syntax for declaring a member function as
static?
2) GetDefaultPrinter "Identifier Not Found"
I use the SDK function GetDefaultPrinter &
SetDefaultPrinter. I am assuming that I have the right
version of the SDK
installed because this builds OK with VC++ V6. Any ideas
what I need to do here?
Thanks for your help.
Regards,
-Rob