473,413 Members | 1,731 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,413 software developers and data experts.

Executable File Doesn't Work (Visual C++ 2003)

4
I wrote a program with Visual C++. It compiles and runs fine wiith Visual Studio, but wyen I open the executable (release and debug) file the DOS window pops up, then immediately closes. I tested this with all of my other programs that I could find and in about 2/3 of them the same thing happened. I can't find any one thing different in the working and non working programs that would explain why this is happening. I'd appreciate any input any of you might have on the subject.

Thanks
Sep 23 '06 #1
4 2216
Lebron
4
The common element that the non-working programs have and the working ones don't is reading/writing to/from data files. I think I can see the error message that's supposed to be displayed if the data file cannot be opened in the flash that the DOS window is open for. Is it an illegal shift to read/write from data files in the application or is something else wrong? Also, I do have all files included in the solution and the programs do run and compile inside of Visual Studio.
Sep 23 '06 #2
Banfa
9,065 Expert Mod 8TB
Are these programs console or window applications?

That is do they have a main or a WinMain?
Sep 23 '06 #3
Lebron
4
They have a main, which makes them console, correct?
Sep 23 '06 #4
Lebron
4
Well I got to thinking about how in unix you need to have the file in the same folder as the program or include a path to get to it. So this led me to try putting the text file in the release folder, which apparently isn't done automatically, and it makes the program work. However, having user accessible text file is not a good idea, since it contains information such as passwords. Is there any way to build the file into the application?
Sep 24 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: lamar_air | last post by:
I have a fortran executable which when run from cmd it asks for a series of parameters which you enter then hit enter. From my python cgi script i want to be able to run the executable. Enter the...
7
by: Johnny | last post by:
How do I create a link on a Web page on my hard drive that will run an executable file on my hard drive? For example, let's say I create runpoodle.htm and save it to my hard drive, and let's...
1
by: Alex VanderWoude | last post by:
I am trying to <include> some text into an XML documentation topic, but that text is stored in a file that is in a different directory than the "current" XML file. Using a relative path does not...
6
by: Cecil Sheng | last post by:
Hello, I've searched this newsgroup, but i can't find the answer. We have some programs written in VB 6, and we've upgraded to VB.NET recently.But I can't find a way to build native win32...
4
by: Marcel | last post by:
Hi, I just bought VB .NET Standard. I Read a lot but could not find a deployment wizard. I also read a few messages back that a .NET executable need the .NET Framework. How do I distribute this...
3
by: hpark2_1999 | last post by:
Hi! I know how easy it is to create an NT services using .net framework (using Visual Studio 2003). Here is my problem. I came across a situation where I would like to run 2 instances of a...
3
by: rohan_from_mars | last post by:
I changed my solution name to a new name, but still visual studio 2003 builds the executable with the old solution name. Also, I am unable to change the name from Project properties dialog box....
6
by: Jerad Rose | last post by:
I recently installed Visual Studio 2003, after having already installed VS 2005. Unfortunately, it took over all of the file associations. There is an option in Visual Studio 2005 to restore...
4
by: linda.chen | last post by:
Greeting. We have a 6 year old application, which contains both managed (C#) and unmanaged code (C++). For all the new components we try to create them in C#. We build all projects (both C++...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.