Solved

CopyFileEx -undeclared identifier-

Posted on 1998-06-19
3
609 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
Comment Utility
Edited text of question
0
 
LVL 7

Accepted Solution

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

Author Comment

by:wau
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

10 Experts available now in Live!

Get 1:1 Help Now