Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / June 2004

Tip: Looking for answers? Try searching our database.

Problem migrating from VC V6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob C - 29 Jun 2004 21:24 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.