Solved

CopyFileEx -undeclared identifier-

Posted on 1998-06-19
3
627 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

615 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