I have a C++ application using MFC that was developed
under VS V6.
I tried to migrate it over to VSNET 2003 by copying over
all teh source and then letting VSNET convert the project
file. When I built the application, I get a compile error
telling me that the Win SDK call "GetDefaultPrinter" is
not defined. I know that it is in my SDK because it
builds fine under V6. I know that GetDefaultPrinter was
not supported under some older OP Systems so it is
probably a flag that is preventing that chunk of the SDK
to be loaded. I am knew to the <NET environment and
wasn't sure where to check for this or what needed to be
set/unset, etc.
Also, Are there any additional runtime files that need to
be distributed with the executable that were not required
under V6 (e.g., a newer MFC runtime).
Thanks for your help.
Regards,
-Rob
Phil Wilson - 30 Jun 2004 01:42 GMT
You're not actually doing much that I'd call ".NET". You're still building
MFC C++ in pretty much the same way as VS 6.0, so you might be missing the
directory includes. There appears to be no WINVER setting around
GetDefaultPrinter as far as I can tell (looking at Winspool.h, and assuming
you've included Windows.h somewhere).
You'll need MFC71.DLL and some others - see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vco
riredistributingmfcatloledbtemplatesapplications.asp

Signature
Phil Wilson [MVP Windows Installer]
----
> I have a C++ application using MFC that was developed
> under VS V6.
[quoted text clipped - 20 lines]
>
> -Rob