473,786 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1477
"Miguel" <Mi****@discuss ions.microsoft. com> wrote in message
news:BD******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. com> wrote in message
news:51******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. com> wrote in message
news:BD******** *************** ***********@mic rosoft.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
6718
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 over the country offering
0
7569
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 found none, so, I wrote one and decided to share it with you. It's a very simple one with few functions. I derived a DataGrid and added to it a DataTable to hold the data. The object itself is handling the synchronization between them, because...
5
2141
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 when I got two threads going at the same time. What I have is two text boxes (textBox1 and textBox2) and four buttons(cmdStartThread1, cmdStartThread2, cmdStopThread1, cmdStopThread2)
5
1804
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 very simple to implement as far as I could tell. So I re-configured my apps' web.config and machine.config files from InProc to StateServer, and confirmed that's the mode used by both web apps. To keep it simple, I created two basic ASP.NET apps...
18
1515
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 decided to open a new form: ---Code in the click event of a button: button1 if frm is nothing then frm = new form2() frm.show
0
2169
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 can't see that I am doing anything wrong (i obviousely am though) everything "works", client connects to server and when anything is sent to the server it starts the mp3 and passes all messages the way i ment for it to except that my server is...
7
2731
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 SqlDataAdapter and SqlDataset and loads a very simple table, with both text and integer fields. If a textbox is bound to an integer source where the current value is a valid integer, say 9, I can type in the textbox 'rubbish' and move to another...
2
1875
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 connections async. if the user pushes the selected buttons. i just want a program that connects to another computer on the port and IP address selected and if the other computer is listening, then connect to it but this code doesnt work : Imports...
9
2667
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 only return some constant data. First, I was using MOM 2005 (Windows 2003) to interogate the instances values.
10
110313
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 it also integrates UPX (Ultimate Packer for eXecutables) into the build process, if you have it installed. It also claims functionality on linux, as a bonus (I didn't test this). I highly recommend the UPX options, and will cover how to get it...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8989
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.