how to make mfc application independent to visual studio 10 [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have made mfc application using vs10 and made a setup file also for my application .
I can not be able to use this application in a system where vs10 is not there.
Please help .
Thanks in advance

You have to install Redistributable Package on that machine.
http://www.microsoft.com/en-in/download/details.aspx?id=5555
Alternatively, you can pack required dlls with your application.

You have to include the redistributable package of VS 2010 in your installation:
http://www.microsoft.com/en-us/download/details.aspx?id=5555

Users will need the Visual C++ 2010 runtimes on their system, which are available through redistributable packages. They should be included with your VS install, but you can also download them separately here:
x86: http://www.microsoft.com/en-gb/download/details.aspx?id=5555
x64: http://www.microsoft.com/en-gb/download/details.aspx?id=14632

You can use static linking of libraries to avoid the dependencies and avoid the need for installing the VC redistributable. There are two libraries required by your application: The runtime library and the MFC library. Static linking includes these libraries in your exe file.
In the project properties, for the release configuration, set "Runtime Library" to Multithreaded (/MT), and set "Use of MFC" to Use MFC in a Static Library.

Related

Facing problem in including #include<curl/curl.h> in my C++ project, how to install the package for that [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed last month.
Improve this question
Whenever I try to add a library(CURL) it shows a error "cannot open source file'curl/curl.h'" in visual Studio but installed Curl package using VcPkg .
I tried installing the package ,it shows package was installed but couldn't use it in the code
A wild guess: you have installed the package with vcpkg but not enabled the integration with visual studio.
You need to run "vcpkg integrate install" after the package is installed to add the include & library paths to visual studio.
See: https://vcpkg.io/en/getting-started.html
If that does not work, try restarting visual studio.

How to make a c++ project from command prompt? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Note that this is referred to make a project from command prompt, not build or run it, by "make", i mean, creating a .vcxproj file like Visual Studio does.
I am unable to use Visual Studio for now, this is why i'm asking to make a project through cmd, i tried gcc, but it doesn't generate these project stuff.
The vcxproj format provides information the MSBuild tool to control the build process. It's an XML file that is automatically created by Visual Studio, but its possible to make it manually by writing the XML yourself, and then specifying the file when invoking MSBuild from the cmd prompt.
See this walkthrough in the MS docs, and this reference to the vcxproj format if you want it to work when you regain access to VS.
Alternatively, if you're not absolutely required to use Visual Studio and the Visual C++ ecosystem, then it might be worth exploring other build systems as suggested in other answers/comments.
GCC is just a compiler, rather than a full IDE like Visual Studio. It takes source code (and some binary libraries), and then outputs compiled executables or object files.
You can use a build system like CMake or Meson, which can make the building process easier for you and those who clone your code, and can even be integrated into Visual Studio. You can actually use CMake to convert projects into Visual Studio format.

MSVCP140D.dll missing, is there a way around? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have made an encryption application in visual studio 2017. work fine in a environment with VS2017 already installed but the application is not portable.
In a environment where not version of VS is installed a error show up.
MSVCP140D.dll missing
I don't want to download everytime Visual Studio for fixing this error, is there a way to prevente it ?
More information about the application :
Compiled in VS2017
made on Windows 10 x64
use Tiny file dialogue
You should distribute release version of executable that will depend upon VS 2017 redistributable package rather than debug version that depend on debug runtime libraries (notice the D suffix in library name).
You can link the runtime library statically, or provide the VS 2017 redistributable.

install opencv in visual studion 2017 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I would like to install OpenCV in Visual Studio and I have tried several ways and I still have the same problems..
The code doesn't have any errors.
The code says that LNK2019 unresolved external symbol.
Install through the Package Manager Console: PM> Install-Package opencvdefault (c++)
Install through Manage Nuget Package for Solution: opencv.win.native (c++)
Install the file from in internet: opencv_python-3.4.1-cp37-cp37m-win32 (python)
What am I doing wrong? I want to use it in VS 2017 with C++ or Python.
I'd suggest you to download OpenCV sources from opencv.org and latest version of CMake installation kit from cmake.org.
You will be able to built OpenCV on your own PC. My own experience indicated that it's quite easy and Open CV works without any problems.
CMAke has a support for MS Visual Studio 15 (also called MS Visual Studio 2017)
So you have created a project called 'opencv', only slightly confusing the question.
First thing to decide is if you want to use Visual Studio (C++) or Python?
If Visual Studio, I suggest downloading the latest library from the OpenCV website (select 'Win pack') https://opencv.org/releases.html
In your project you will then need to include the OpenCV header folder, and link to the (lib) libraries, then make sure your executable is able to find the main opencv dll library.
I do not recommend compiling the OpenCV library with Cmake - this is not trivial (I've spent half a day on it and failed) - moreover it's not necessary as OpenCV can be used as is.

What is the difference between a microsoft visual c redistributable package and a runtime package? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
What is the difference between a Microsoft visual c++ 2010 redistributable package and a Runtime package? I could not find the install files for the Runtime visual c++ 2010.
Its the redistributable package which include the run time. And at some places its called Runtime Redistributable.
The Microsoft Visual C++ 2010 Redistributable Package installs runtime
components of Visual C++ Libraries required to run applications
developed with Visual C++ on a computer that does not have Visual C++
2010 installed. This package installs runtime components of C Runtime (CRT), Standard C++, ATL, MFC, OpenMP and MSDIA libraries.
Ref: http://www.microsoft.com/en-us/download/details.aspx?id=14632