473,466 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Running programs inside the IDE (CTRL+F5)

Hi,

I have a very interesting problem.

I wrote a little code which linked against an externel library. I have
the debug, and the release version of the ext. lib. One library function
opens a file which is in the same path as the executable. I copyed the
file into the Debug, and the Release directoryes too. Starting the
program directly from the folders (Debug, Release) causes no problem.
When I start it with CTRL+F5, in any configuration it failed to open the
file. When I used the debugger to see what's wrong, I found the lib's
fopen fails.

The code looks like this:

FILE* file = fopen("filename without the full path", "r");

If I use the full path the same thing happens.
I use Visual Studio .Net 2003.

Is there any difference running the program inside or outside the IDE?
What could be the problem?

THX

Nov 17 '05 #1
3 1398
"Janos Makadi" <sy*****@chello.hu> wrote in message
news:ug*************@TK2MSFTNGP12.phx.gbl...
Is there any difference running the program inside or outside the IDE?
What could be the problem?


Probably the current directory. From the menu choose Project->Properties. In
the left pane under the "Configuration Properties" folder click the
"Debugging" item. In the right pane in the edit box labelled woking
directory set the directory to the debug or release folder as appropriate.

Regards,
Wil
Nov 17 '05 #2
William DePalo [MVP VC++] írta:
Probably the current directory. From the menu choose Project->Properties. In
the left pane under the "Configuration Properties" folder click the
"Debugging" item. In the right pane in the edit box labelled woking
directory set the directory to the debug or release folder as appropriate.


Oh, my god! How stupid I am.
Thaks a lot.
Nov 17 '05 #3
"Janos Makadi" <sy*****@chello.hu> wrote in message
news:4c***************************@news.chello.hu. ..
Oh, my god! How stupid I am.
That's being too hard on yourself. The IDE has _so_ many configuration
options that even those of use who claim to know it well often get lost. :-)
Thaks a lot.


You are welcome.

Regards,
Will
Nov 17 '05 #4

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

Similar topics

7
by: Stephan Schaem | last post by:
get this string when I press CTRL-F5 to run: ØB- I get this string when I press F5 to run: Mobile Intel(R) Celeron(R) CPU 1.50GHz I started with a 100% C++ unmanaged program and
1
by: Lee Connell | last post by:
I can't seem to figure out how to debug my own asp.net apps on my windows 2003 small business server thats running sharepoint. When I try to debug an app it tells me the project is not configured...
4
by: archana | last post by:
Hi all i am new to asp.net i have downloaded on asp.net project. and i want to run it on my pc. but while running it is giving error '--------------------------- Microsoft Development...
9
by: lostnewmexico | last post by:
This one has me at whit's end. In order for this to make sense, I will have to lay out the "facts" to get a hypothesis. There is no easy way to explain this. Environment: VC2005. MFC...
5
by: Derek Hart | last post by:
I upgraded to VStudio 2005. Now F5 only runs the app is it was in memory, and does not compile first. What is the quickest way to now compile and run the app? Do I have to choose Rebuild...
0
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, is there any difference between right clicking on my web page and saying view in browser or doing a Debug/Start Without Debug ? As far as stuff like cache, Needing to use Rebuild Page for...
2
Shashi Sadasivan
by: Shashi Sadasivan | last post by:
Hi, I just got the microsoft ergonomic keyboard 4000 and have started tolike it already, I primarily work on visual studio, so my major part of the process is to press ctrl + F5 a thousand times a...
14
by: raylopez99 | last post by:
KeyDown won't work KeyPress fails KeyDown not seen inspired by a poster here:http://tinyurl.com/62d97l I found some interesting stuff, which I reproduce below for newbies like me. The main...
3
by: Jollywg | last post by:
I have several jpg images (including my header) stored in App_Data/Images. I then drug the images onto my web form. They display great on the web form, however when I press f5 or ctrl + f5 they...
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,...
1
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...
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
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...
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.