exporting visual c++ projects

F

flingor

I have written a little program with Microsoft's visual c++ and thus
have an .exe of the program. Now I want to put this .exe in a separate
folder for example to share it. What .dll do I have to put in the
folder with the .exe to get it work?
I'm using these declarations:

#include "stdafx.h"
#include <iostream>
using namespace std;

Or do I have to make a link or something similar? I only have
experience with allegro where I just had to put the "alleg42.dll" in
the same folder of the .exe.

Thanks,

flingor
 
V

Victor Bazarov

I have written a little program with Microsoft's visual c++ and thus
have an .exe of the program. Now I want to put this .exe in a separate
folder for example to share it. What .dll do I have to put in the
folder with the .exe to get it work? [...]

You're in a wrong newsgroup. Please ask in the newsgroup that starts
with "microsoft.public".

V
 
G

Guest

I have written a little program with Microsoft's visual c++ and thus
have an .exe of the program. Now I want to put this .exe in a separate
folder for example to share it. What .dll do I have to put in the
folder with the .exe to get it work?
I'm using these declarations:

#include "stdafx.h"
#include <iostream>
using namespace std;

Or do I have to make a link or something similar? I only have
experience with allegro where I just had to put the "alleg42.dll" in
the same folder of the .exe.

This is off topic for this group since the answer is implementation
dependent, for similar questions you should ask in a group discussing
VC++. The "correct" answer to your question is to install the Visual C++
2005 SP1 Redistributable Package on whichever computer you want to run
it on (a 3MiB download from MS site) which will make sure the program
runs unless it has some third party dependencies.

I have not tested this so it might not work, but an alternative is to in
the project properties under C/C++ -> Code Generation -> Runtime Library
select Multi-threaded (/MT) which should statically link the
dependencies. This will increase the size of the exe.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,200
Messages
2,571,046
Members
47,646
Latest member
xayaci5906

Latest Threads

Top