Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CopyFileEx -undeclared identifier-

Posted on 1998-06-19
3
Medium Priority
?
645 Views
Last Modified: 2013-11-20
I need to copy a file from a volume to another, with a progress bar representation. I think CopyFileEx is the goal. But I cant use it. I have NT 4.0 SP3, VC++5.0 SP3, I include winbase.h, I "add to project" the file kernel32.lib, but I have the foll. error:
error C2065: 'CopyFileEx' : undeclared identifier
Error executing cl.exe. And if I use "::CopyFileEx" I obteined 'CopyFileEx' : is not a member of '`global namespace''
Help me please!!
0
Comment
Question by:wau
  • 2
3 Comments
 

Author Comment

by:wau
ID: 1318241
Edited text of question
0
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1318242
open Stdafx.h file and comment the following line
#define VC_EXTRALEAN
Then rebuild all files.
0
 

Author Comment

by:wau
ID: 1318243
No. the problem wasnt "#define VC_EXTRALEAN".
I could compile adding in stdafx.h the line:
#define _WIN32_WINNT 0x0400
that I found in some tech note in microsoft web site.
Anyway, thanks.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question