How to interact with One Drive using C++ - visual-c++

I'm looking for a way to interact with OneDrive through C++. I need to log in and download/upload the file from a known location.
I tried to install curl in VS 2019/2017 using vcpkg but could not, it does not inclide to the code.

Have a look into Microsoft's "azure-storage-cpp"-sample under:
https://azure.github.io/azure-storage-cpp/
All install and build instructions are described there.
Cheers

Related

KWStyle binary for Windows?

I'm trying to install the KWStyle style-checker utility for C++ on Windows 7. I seem to be stumped at building it with my existing system.
Anyone know of an existing Windows binary for that tool?
This was provided by request on a Github issue here:
https://github.com/Kitware/KWStyle/issues/101

Flatpak run external programs

I am using a flatpak version of my favorite game engine, godot. Using it, I need to be able to export to android. To do this, it needs adb.
I tried looking in /usr/bin, where the adb executable is located, but Godot couldn't see it because of the flatpak's sandboxing.
I tried runing the flatpack with the --filesystem option, but it didn't work.
Does anyone know how to get the flatpak to have access to the whole filesystem?
Thanks.
This is a know issue. Snap package has issues too. The best option is to use the official executable from the website. If want auto updates you can use Steam or Itch.io

Add C++ redistribuitable in my .msi and install on silent

I am working with a setup project of Visual Studio 2015. I want to distribute the 2015 C++ library, vc_redist.x86.exe. But I don't want user to be aware of this pre-requisite, so the idea is that while he is running the .msi, the C++ library will be auto-installed.
I have been reading about the merge modules, but this cannot fix my problem because the setup.exe should be run. Please, could anybody tell me how to deal with this?
Many thanks!
You'll need to change (or create your own custom one) the standard bootstrapper that has documentation starting here:
https://msdn.microsoft.com/en-us/library/ms165429.aspx
The bootstrapper packages contain the detection and install logic for the redistributables. For example, the \Bootstrapper\Packages folder has VC redist folders, each with a product.xml and a package.xml about installing them as prerequisites. They have standard command lines such as:
Command PackageFile="vcredist_x64.exe" Arguments=' /q:a
and you can substitute that command with something like those listed here:
http://asawicki.info/news_1597_installing_visual_c_redistributable_package_from_command_line.html
that show the quiet options (as do standard Microsoft docs somewhere).

Tesseract Development

I am quite new into application development.
Just wanted to ask you guys, How do I implement the source code from Tesseract inside Visual Studio that I could compile and run? What are steps I have to do to get it running? I can't seem to find the full project file for it. Thanks in advanced.
Have you tried the instruction for building on Windows from this page?
https://code.google.com/p/tesseract-ocr/wiki/Compiling
While a go I was in the same situation, Google Code was shutting down and the official Github Tesseract implementation for Visual Studio was really buggy, old and didn't compile.
This repository with a ready to go VS 3.02 tesseract implementation with Leptonica helped me:
https://github.com/charlesw/tesseract-vs2012
It has a documentation how to run it. But basically you have to open it with VS and run it. It will create the dll and libraries required to use Tesseract in a VS Project and the binaries ready to go using Command Lines.
If you need the documentation for Tesseract 3.02 or higher you can find it here:
http://tesseract-ocr.github.io/modules.html
The oficial forum is in google groups there you will find some examples:
https://groups.google.com/forum/#!forum/tesseract-ocr

How to properly install MS VC++ 9 runtime?

I have an application that uses the ms vc++ runtime. How should I install it on the end-user's system if it is not present? I was thinking of bundling it with the installer... but how would I do that as far as what to include? Is there some silent installer? If so, where can it be found? I can't seem to find it in the Windows SDK.
There is an interesting post about deploying the runtime libraries on the Visual C++ blog. The post is about VC8 so I'm not sure all the recommendations apply to VC9.
Here are your options according to Microsoft:
Use an .msi installer including the .MSM files for the VC
libraries you're using. These MSM
files install the libraries globally.
They also keep a reference count so
that the libraries are removed when
the last application using them gets
uninstalled.
Use "app-local"
deployment i.e. copy the
libraries and manifest files in your
application directory. This is a simpler
solution if you don't use an .msi
installer. Your app should still use the
system version of the libraries if they are more
up-to-date than your own.
Link everything statically (and avoid crt usage across dll boundaries)
Another option Microsoft discourage you from using is running the Visual C++ redist installer from your own installer.
I'm not sure what their reasons are. It will take a few extra megabytes and will not be reference counted but it still works very well AFAICT. You can pass the /q option to vc_redist_x86.exe to perform an unattended install (no user interaction).
It has it's own installation program. I've seen it usually run as a prereq step of a larger installer.
One way or the other, you need to list it in your manifest. So you might just as well deliver it as via SxS in your application rather than try to deliver a global copy to the target machine. SxS is a big hard subject, sadly. Hopefully someone will supply an answer with more details and I'll delete this one.

Resources