Comments (5)
I'm not sure that the newer API will get you long paths, you might try prepending \\?\
to the path you hand off to SHFileOperation to see if that works before you go down the road of using IFileOperation
.
You definitely need to use C++ to use that API though, calling COM via C is very very ugly. That being said, you don't really need to actually use any fancy C++ features, just the ability to call methods on classes, so the code will still feel super C-like.
from recycle-bin.
@issuehuntfest has funded $100.00 to this issue. See it on IssueHunt
from recycle-bin.
@paulcbetts is correct; so long as your C doesn't use any really specific c99 or really any c11 features (you haven't yet as far as I can tell) your C code should already be "C++" code; in quotes, because you generally don't use puts()
or things like that in C++.
from recycle-bin.
FWIW this is how electron does it, but I think it is blocking the caller thread
from recycle-bin.
@sindresorhus has rewarded $90.00 to @medusalix. See it on IssueHunt
- 💰 Total deposit: $100.00
- 🎉 Repository reward(0%): $0.00
- 🔧 Service fee(10%): $10.00
from recycle-bin.
Related Issues (3)
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 recycle-bin.