C++ Builder IDE >> Current Working Directory issue (BCB6)

by Andrue Cope [TeamB] » Fri, 22 Jul 2005 16:28:44 GMT

Ever since installing the TntUnicode components my copy of BCB6 has
started up with its current working directory set to the TntUnicode
source directory. I've tried disabling the design time package but it's
still set there.

As you may know this causes problems with Code Insight requiring me to
navigate back to my project directory as soon as Builder loads.

Does anyone have any idea why Builder is behaving this way and how I
can stop it from happening?

--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html


C++ Builder IDE >> Current Working Directory issue (BCB6)

by Yu-Chen Hsueh » Sat, 23 Jul 2005 00:06:03 GMT


Andrue,

Have you checked the "Start In" field for your BCB6 shortcut?





C++ Builder IDE >> Current Working Directory issue (BCB6)

by Andrue Cope [TeamB] » Mon, 25 Jul 2005 16:05:36 GMT





Yes. I have shortcuts for each project and that one is set correctly.

But I've found it. There was an entry in my .DSK for [PackageWindow0]:

I removed that and the problem went away. That was the project that I
build the package with so presumably that's the cause.

[PackageWindow0]
Create=1
Visible=1
State=0
Left=260
Top=260
Width=368
Height=244
MaxLeft=-1
MaxTop=-1
ClientWidth=360
ClientHeight=219
TBDockHeight=244
LRDockWidth=368
Dockable=1
StatusBar=0
TextLabels=1
Toolbar=1
SectionWidth0=150
SectionWidth1=210
Module=D:\32bit\Builder New
Components\TntUnicodeControls\BCB6\TntLibR.bpk


--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html


Current Working Directory issue (BCB6)

by Vladimir Stefanovic » Mon, 25 Jul 2005 22:07:20 GMT

> [...] There was an entry in my .DSK [...]

*.DSK file made me so much trouble so far that I never
ever use it (althought it's very useful to customize the
desktop, I confess).

I think that code about *.dsk is not adequeately tightened
at IDE side.

Once, I just copied the Project to other location because
I wanted to make some major changes to it, and I wanted
to leave the 'original' untouched just in case...

I worked with 'copy' of my Project.

After lots of changes, I noticed *two* same project file
names in the editor tab control, like | Unit1.cpp | Unit1.cpp |.

When I started investigating what was wrong, I discovered
that different changes were made to *both* of those files -
in the 'original' and in the 'copy' !

That means that I messed the 'original' and messed the 'copy', so
none of those Projects were good start point to recover the
original. Both files had parts that were changed.

I had backup old one day, but that was not enough. Beleave or
not *.~* files saved me because I noticed the problem at
right time.




--
Best regards,
Vladimir Stefanovic




Similar Threads

1. Set Current Working Directory

Hi,

I have a 3rd party COM application that I am running through it's own
process in COM+ due to some restrictions I was having running it
directly with COM. The problem I'm having is that it will not inherit
the working directory of my main application using the object and uses
C:\Windows\System32 as it's working directory. I need to be able to
change this. Is that possible without modifying the COM object itself?

Thanks,

Marcus de Leon

2. path of the current working directory(.sln/.vcproj)

3. Portable way of obtaining current working directory......

Hi,

I'm working on a portable ANSI C++ application designed to compile and 
execute under Windows and LINUX/UNIX.

Is there a portable way of obtaining the current working directory? Sorry, 
if I'm being stupid...

Thanks,

Shaun 


4. Why TOpenDialog changes current work directory? - Borland C++ Builder VCL Components

5. Find directory of .exe (it is not always the current directory)

If a program is run from a batch file, the current directory for the
program will be that of the batch file, not of the .exe.  How can I
find the directory of the .exe?  My program's files are in the same
directory as the .exe, and it assumes that it can find them by using
the current directory, which is not always the case.

thanks,
Zytan

6. this.Cursor works but not Cursor.Current not working - CSharp/C#

7. Delete current directory and subdirectories

Hi Everyone:

   I am new to C# and wants to delete current directory and all sub
directories.
   Can someone please provide some sample?

Thanks in advance.

Pargat

8. current directory of WebBrowser control - CSharp/C#