MoveFile > MoveFileW
Christian Buhtz
yspam at gmx.net
Fri Feb 9 10:27:54 PST 2007
I declared this methode in one of my classes
OBCore::bool MoveFile (const wxChar* pSource, const wxChar*
pDestination, bool bOverwrite = DEFAULT_OVERWRITE);
The methode is called in the methode OBCore::Init() like this
{ // ...
MoveFile(OB_LOGFILE_NAME, OB_LOGFILE_BAKNAME, true);
// ...
}
It workes quite fine since one year. OBCore was the first class I
implemented in my application. It worked fine before I updated
wxWidgets2.7 (cvs) to wxWidgets2.9 (cvs).
Now my compiler interprets the MoveFile call like this
WINBASEAPI BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR); (declared in winbase.h)
Of cousre there is an error like this
C:\Programme\CodeBlocks\include\winbase.h:1692: error: too many
arguments to function `BOOL MoveFileW(const WCHAR*, const WCHAR*)'
I work on WinXP, CodeBlocks (nightly 8.2.2007), wxWidgets 2.9 (cvs
8.2.2007), unicode debug.
Could an error like this occure on some changes made in wxWidgets?
More information about the wx-dev
mailing list