GithubHelp home page GithubHelp logo

Comments (5)

anaisbetts avatar anaisbetts commented on July 28, 2024 1

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.

IssueHuntBot avatar IssueHuntBot commented on July 28, 2024 1

@issuehuntfest has funded $100.00 to this issue. See it on IssueHunt

from recycle-bin.

Qix- avatar Qix- commented on July 28, 2024

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

YurySolovyov avatar YurySolovyov commented on July 28, 2024

FWIW this is how electron does it, but I think it is blocking the caller thread

from recycle-bin.

IssueHuntBot avatar IssueHuntBot commented on July 28, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.