473,385 Members | 1,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

run simple c++ exe on other system????

I have a simple c++ program I just wrote with VC 6.0. I want to run this program on another machine, but it just locks up. What do I need to do to run the .exe file that is created in the debug folder on a different system?

thanks
Nov 17 '05 #1
3 1462
"Miguel" <Mi****@discussions.microsoft.com> wrote in message
news:BD**********************************@microsof t.com...
I have a simple c++ program I just wrote with VC 6.0. I want to
run this program on another machine, but it just locks up.
What do I need to do to run the .exe file that is created in
the debug folder on a different system?


Well, do you have the development environment installed on the other
machine? Debug builds often use debug DLLs, if those DLLs are not present
the application should not run. I don't know why you have a lockup - perhaps
it is DLL hell (mismatch of application and DLL).

Note that I am specifically not addressing licensing issues - only you know
how many machines are licensed to run the compiler in your shop.

Regards,
Will
Nov 17 '05 #2
Yes, by building a release version. You will still need to deploy the
correct run time dlls though is you have selected the dynamic CRT or MFC,
but the release files you can legally redistribute.

Ronald Laeremans
Visual C++ team

"Miguel" <Mi****@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
Thanks for the reply Will.

I do not have the development enviornment on the other machine. Is that
my only option to get this program running on that machine? Can I build
an executable that doesn't rely on debug dlls?

Thanks

"William DePalo [MVP VC++]" wrote:
"Miguel" <Mi****@discussions.microsoft.com> wrote in message
news:BD**********************************@microsof t.com...
> I have a simple c++ program I just wrote with VC 6.0. I want to
> run this program on another machine, but it just locks up.
> What do I need to do to run the .exe file that is created in
> the debug folder on a different system?


Well, do you have the development environment installed on the other
machine? Debug builds often use debug DLLs, if those DLLs are not present
the application should not run. I don't know why you have a lockup -
perhaps
it is DLL hell (mismatch of application and DLL).

Note that I am specifically not addressing licensing issues - only you
know
how many machines are licensed to run the compiler in your shop.

Regards,
Will

Nov 17 '05 #3
what do you mean by a simple application? Do you use MFC or any other
FrameWork or is it a place simple console application.

If you use frameworks like MFC then you would require to build the
application in release mode and then use it on the target machine. If you
use debug build then your application might use the debug versions of the
dll like say MFC42D.DLL for MFC4.2 instead or MFC42.DLL. Dubug dlls are not
present on systems which does not have development tools like VC++
installed.

However, if the above case were true then you should not have got lockups in
your application. You should have seen popup error messages telling you that
the dll was not found. Try eliminating other problems like uninitialized
variables, eliminate all warning in your build and other similar things.
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: channa_s | last post by:
Hi, I would be very grateful if anyone could help me with the following. I want to create a SIMPLE distributed database. It is as follows: There is a institution which has branches all...
0
by: Tal Sharfi | last post by:
Hi everyone I recently had the need for StringGrid object same as the one that Delphi has. An object that helps show lists of other objects in a simple grid. I searched the news groups and...
5
by: sarge | last post by:
I would like to know how to perform simple multithreading. I had created a simple form to test out if I was multithreading properly, but got buggy results. Sometime the whole thig would lock up...
5
by: Logickle | last post by:
Hi, all. I'm working on an application which requires communicating session info between separate web apps running on the same web server. The out of process server method sounded ideal, and...
18
by: Sender | last post by:
Yesterday there was a very long thread on this query. (You can search on this by post by 'sender' with subject 'Simple Problem' post date Oct 7 time 1:43p) And in the end the following code was...
0
by: Harley | last post by:
Hello, I am just learning the tcp/ip functions etc under vb.net so please look over me if this is obviouse. I have been all over looking into any functions that I didn't totaly understand and...
7
by: Justin Hoffman | last post by:
I am new to vb.net programming and am just exploring the way databinding works with Windows forms and am having trouble with some fairly basic customization of data entry. The form uses the...
2
by: iwdu15 | last post by:
hey, i was wondering if 1) anyone could tell me whats wrong with my code, i did a little fixing to the msdn version fo this, or 2) how to make a simple program that will connect and listen for...
9
by: Andrew | last post by:
Hi, I implemented a simple WMI Provider in C#. It is a service which expose 10 instances of a simple WMI Class. The WMI class pnly expose 4 public properties (Value,Min,Max,StdValue) which...
10
true911m
by: true911m | last post by:
This is a simple walkthrough to get PyInstaller up and running. I decided to give PI a try, because it claims to be more selective about what it bundles into its executable files by default, and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.