If I write windows API application using vc++ 10,does the .exe file work in any windows computer or is vc++ a necessity in the other computer also?

Recommended Answers

All 2 Replies

Sometimes an executable created by a solution will reference standard libraries that come with visual studio. If you are running the executable on the machine it was built on it will use the ones in the Visual Studio Directory, however you can easily get Microsoft Visual Studio redistributables without installing VC++. I believe that most applications referencing the Microsoft API will require these libraries.

Additionally if you are running a setup to install your program on another machine you can require the setup to include the libraries it needs to be installed.

Like satyrn said, you need to provide redistributables (manifest and runtime library files) with your application. it will be found in (visual studio installed directory)\VC\redist directory.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.