tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Vol 88, Issue 18 "winbase.h available for TinyCC that inc


From: ED GROSSHEIM
Subject: [Tinycc-devel] Vol 88, Issue 18 "winbase.h available for TinyCC that includes function ReplaceFile ?" Timo Better main source file eg
Date: Wed, 25 Aug 2010 15:53:18 -0700 (PDT)

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@hidden

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.nongnu.org/mailman/listinfo/tinycc-devel
or, via email, send a message with subject or body 'help' to
    address@hidden

You can reach the person managing the list at
    address@hidden

When 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@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]