Solved

CopyFileEx -undeclared identifier-

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

Suggested Solutions

Title # Comments Views Activity
xyBalance chalenge 58 104
ShiftLeft challenge 21 95
building a service to accessed via telnet client, want colors ? 4 107
Is there a simple front-end menu system. 9 147
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

738 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