Re: VC++ 6.0 Compiler Issues



Where did you do the #define? It has to be in stdafx.h before the #include of windows.h
to have any effect. It also requires you have the correct platform SDK. Note that the
latest platform SDKs are incompatible with VS6. If you have not set up your directories
so that your latest Platform SDK is ahead of all other search paths that might have
<windows.h> in them, then it might pick up an older one (such as the one delivered with
VS6)
joe

On 21 Mar 2007 10:01:29 -0700, "one-trick-pony" <worldofpain.aamir@xxxxxxxxx> wrote:

Greetings,


I am trying to compile a code that uses Win32 API function
DeleteVolumeMountPoint. I get error which says "undelcared identifer
DeleteVolumeMountPoint". I ran PSDK setup. I then updated the
compiler to point to new directories with PSDK header files from Tools-
Options->Directories Tab and added in paths to newer header files and
moved it all the way up so compiler finds it to be the first entry to
use. Furthermore, I also typed this macro on top of my program,

#define _WIN32_WINNT 0x0501

I am developing an MFC based application. I will be running this in
Windows 2003 Server OS and Windows XP environments. The weird thing
is when I run this in console based application it runs fine. What is
causing it to not compile under MFC based application? I will
appreciate any help. Thanks.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Migration from Visual Studio 6 MFC to embeded Visual Studio 4 and MFC (from Windows XP to Window
    ... the second one to usability and user interface. ... Windows CE does not support some Windows NT/XP features/APIs ... I wrote an application in VC6 using MFC and I would like to migrate ... Can I compile the application in eVC4 witout any changes? ...
    (microsoft.public.pocketpc.developer)
  • Re: how to avoid an assert in AfxGetResourceHandle (in debugbuild
    ... Start an MFC project..Make it compile with ... and as MFC project it works. ... derived from CWinApp and override the InitInstance method as found in the MFC ... windows forms application or it is simply not possible to open a CFileDialog ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Problems compiling TCLTK 8.4.12 on 64 bit
    ... to compile them on an HP xw9300 with an AMD Opteron running Windows XP 64. ... I am using Visual Studio 2003.net and the Microsoft Platform SDK for ... Windows Server 2003 SP1. ...
    (comp.lang.tcl)
  • Re: VS2005 standard edition
    ... platform SDK includes debug version of MFC as well along with the ... Well, I do not use MFC myself, so to answer your previous question I ... downloaded a small MFC project and compiled it, and it DID compile, but I ...
    (microsoft.public.vc.language)
  • Re: VS2005 standard edition
    ... platform SDK includes debug version of MFC as well along with the ... Well, I do not use MFC myself, so to answer your previous question I downloaded a small MFC project and compiled it, and it DID compile, but I realized later that it did not LINK. ...
    (microsoft.public.vc.language)