Timo,
Simplifying your code a bit I have the file:
// // ~ • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
#define _WIN32_WINNT 0x0500
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
WINBASEAPI WINBOOL WINAPI ReplaceFileA(
LPCSTR lpReplacedFileName,
LPCSTR lpReplacementFileName,
LPCSTR lpBackupFileName,
DWORD dwReplaceFlags,
LPVOID lpExclude,
LPVOID lpReserved);
LPCSTR lpReplacedFileName = "file0.txt";
LPCSTR lpReplacementFileName = "file1.txt";
LPCSTR lpBackupFileName = "file2.txt";
int main(int argc, char* argv[])
{
BOOL test = ReplaceFileA(
lpReplacedFileName,
lpReplacementFileName,
//lpBackupFileName,
NULL,
REPLACEFILE_WRITE_THROUGH | REPLACEFILE_IGNORE_MERGE_ERRORS,
NULL,
NULL
);
}
// // ~ • • • • • • • •
• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
Compiling this I get the undeclared "REPLACEFILE_WRITE_THROUGH " error.
Does this compile without the error for you?
Thanks, Ed
From: "address@hidden" <address@hidden>
To: address@hidden
Sent: Wed, August 25, 2010 11:01:01 AM
Subject: Tinycc-devel Digest, Vol 88, Issue 18
Note: Forwarded message is attached.
Send Tinycc-devel mailing list submissions to
address@hiddenTo subscribe or unsubscribe via the World Wide Web, visit
http://lists.nongnu.org/mailman/listinfo/tinycc-develor, via email, send a message with subject or body 'help' to
address@hiddenYou can reach the person managing the list at
address@hiddenWhen replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinycc-devel digest..."
Today's Topics:
1. IRC (Matt Davis)
2. Hi Is there a winbase.h available for TinyCC that includes
function ReplaceFile ? (ED GROSSHEIM)
3. Re: Hi Is there a winbase.h available for TinyCC that
includes function ReplaceFile ? (Timo L?hde)
_______________________________________________
Tinycc-devel mailing list
address@hiddenhttp://lists.nongnu.org/mailman/listinfo/tinycc-devel