create .exe

Hi!

I have created a simple program 'hello world'. The code is generated automatically by visual studio 2003 and is below:

// This is the main project file for VC++ application project

// generated using an Application Wizard.

#include "stdafx.h"

#using <mscorlib.dll>

usingnamespace System;

int _tmain()

{

// TODO: Please replace the sample code below with your own.

Console::WriteLine(S"Hello World2");

system("PAUSE");

return 0;

}

-

Then, I built the soluction. So I tried to execute this file in another computers, but I got different messages error.

What's wrong?
Help me.

[1148 byte] By [MarceloShiba] at [2007-12-16]
# 1
What errros were you seeing when running the same executable on a different machine?

Thanks,
Ayman Shoukry
VC++

AymanShoukry at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2

thanks, ayman

but i have already solved the problem...

MarceloShiba at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 3
Hello, Marcelo Shiba
Ok so first of all, are you using .net framwork? If you are then you need to install the .net framework on the target machine.
Secondly, since you are using a Visual C++ compiled application, you will need to redistribute certain dlls, to find out which download
http://www.dependencywalker.com/
Also
as for VC++ libraries, you will need CRT assembly. If you do not include and afx*.h or atl*.h, you won't need MFC and ATL. With Beta 2, destribution of CRT is described here http://blogs.msdn.com/nikolad/archive/2005/03/18/398720.aspx.
--Thanks very much to Nikola Dudar for all of this information.
Gal Beniamini.
GalBeniamini at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...