Solved

CopyFileEx -undeclared identifier-

Posted on 1998-06-19
3
612 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries DB2 Query 2 91
sumNumber challenge 16 111
difference between String.subString() and String.subSequence() 6 174
sumHeights2  challenge 7 88
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now