Comments (7)
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
I don't understand how this can happen, what version of MingW are you using? I compiled this with many mingw versions without any problem. Also TCHAR is char and szFile is char *, so i don't get it. Can you copy the error message?
from efsw.
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).
C:\Qt**\Qt5.3.0**\5.3\ mingw482_32\
Using QtCreator it creates problem.
N:\Projects\qt\app\ThirdParty\FileSystemWatcher\src\efsw\WatcherWin32.cpp:32: error: cannot convert 'TCHAR* {aka wchar_t*}' to 'LPSTR {aka char*}' for argument '5' to 'int WideCharToMultiByte(UINT, DWORD, LPCWCH, int, LPSTR, int, LPCCH, LPBOOL)'
szFile, MAX_PATH - 1, NULL, NULL);
^
from efsw.
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
Oh, that explains everything. And here we have the answer for the issue #28. TCHAR is defined as wchar!
You are compiling with the macro UNICODE defined. And it will convert all the chars to wchar. You should disable that.
from efsw.
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).
Add #undef UNICODE to base.hpp
Solve this problem. And also weird chars.
from efsw.
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).
Solved
from efsw.
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
The correct solution is changing the type definition of szFile to char.
https://bitbucket.org/SpartanJ/efsw/commits/317fb17f621aa851b88c4fffe8fb45cccd46c228
from efsw.
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).
ok cool Thanks
from efsw.
Related Issues (20)
- Cannot track symlinked file in Linux HOT 10
- Bazel Building HOT 1
- On MacOS, actions happening shortly after starting watcher are not reported HOT 19
- CMake multi config issue HOT 2
- Support Windows long path aware HOT 4
- Check Return Code and Allow Buffer Customization in `ReadDirectoryChangesW()` Function HOT 1
- Paranoid exit code? HOT 2
- MacOS build on server HOT 1
- [Bug] Crash while thread running after FileWatcherInotfiy destructed. HOT 16
- Premake5 macosx after gmake2 ... [CI Server] HOT 1
- Last modified file remembered and failing to fire event under Windows HOT 5
- Premake links in ReadMe is dead HOT 1
- FSEventStreamScheduleWithRunLoop has been deprecated in MacOS 13 HOT 3
- Nested template syntax breaks LEGACY builds HOT 3
- Generic file watcher doesn't report new directories on network drives HOT 2
- memory leak doubt and thread conflict HOT 2
- Cross building on macOS may cause `EFSW_FSEVENTS_NOT_SUPPORTED` incorrectly defined HOT 2
- Incorrect move events reported for simultaneous file moves across monitored subdirectories on Windows HOT 9
- Warning C4834 in Log.cpp
- [Bug] Rename event is misinterpreted as two add events on macOS fsevent when changing case only HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efsw.