Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My Programs dont run on other people's computers!

Status
Not open for further replies.

spearchucker

Programmer
Dec 23, 2002
3
0
0
US
I use MS Visual Studio .NET and am having trouble with my c# programs. I tell it to build my solution, then I find the folder it created the .exe in, (there are two, bin and obj), i usually goto bin. I take this exe and email to other people, when I run it, it works, but everyone else gets an error! How do I give them the program I made?
 
One: In bin are you sending them the debug or release version? Obviously the debug won't work on their computers.

Two: Do they have the .NET framework installed? A C# app won't work without it.
 
Really, they have to have the .net framework installed? Ah man, that stinks! Does visual c++ .net also require the .Net framework?
Thanks!
 
You will need the .NET redistributable which can be downloaded from
Once its installed you can just copy your app's exe directory over - no "app install" and no messing with the registry. But you have to watch out if you have references to COM objects in your code. These objects are not usually copied with your code. But you can just copy any required dll's into the directory with your executable and it should work fine. Again, no registry involved.
Dean
---
goddette@san.rr.com
 
VS C++ is the only VS module that can create unmanaged code. So if you write straight code, you won't need the redistributable, I think. But if you use .NET calls in the C++ code, my understanding is that they will need to have .NET redistributable installed.



Dean
---
goddette@san.rr.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top