Discussion:
CodeGuard there but not there!
(too old to reply)
Derek Harvey
2008-07-22 10:01:04 UTC
Permalink
My project, brought over from BCB6 into BCB2007 had and has GodeGuard
enabled and working (I see a tab called Codeguard and get reports from time
to time).
But, in Tools menu there is no CodeGuard configuration item (as expected
from Help pages);
In Project options->C++ compiler there is no CodeGuard compile support item
(again as expected from Help).
I cannot find CodeGuard anywhere else in the options, global or per-project.
1. How is this explained??

2. What I was looking for is a way of directing the .cgl file to an explicit
path (which could be an allowed path when the program is running in
'free-standing' mode without Admin privileges when the default path seems
inaccessible under XP). I assume such an option will be found in one of the
above places, but why do I not have them? If there is no such option
(implied by the Help page?) how do I solve this problem?

Thanks
Derek
Bruce Salzman
2008-07-22 15:32:48 UTC
Permalink
Post by Derek Harvey
My project, brought over from BCB6 into BCB2007 had and has GodeGuard
enabled and working (I see a tab called Codeguard and get reports from time
to time).
But, in Tools menu there is no CodeGuard configuration item (as expected
from Help pages);
In Project options->C++ compiler there is no CodeGuard compile support item
(again as expected from Help).
I cannot find CodeGuard anywhere else in the options, global or per-project.
1. How is this explained??
You can add cgconfig.exe to the tools menu (it's in the BCB bin folder).
Post by Derek Harvey
2. What I was looking for is a way of directing the .cgl file to an explicit
path (which could be an allowed path when the program is running in
'free-standing' mode without Admin privileges when the default path seems
inaccessible under XP). I assume such an option will be found in one of the
above places, but why do I not have them? If there is no such option
(implied by the Help page?) how do I solve this problem?
AFAIK the log is placed in the same location as the app. I suppose you could
put your app in some other folder for debugging purposes.
--
Bruce
Derek Harvey
2008-07-23 09:37:19 UTC
Permalink
Thanks for your hints. I can certainly open cgconfig from ...\bin which
gives global options.
How do I get it into Project options so I can switch it on or off for a
compile/make/build?

Do I have to go into the project file and edit that. I did not have to do
that in BCB6?
Possibly a Release build has it off by default?
That doesn't solve my problem of the file location. I want to issue a 'beta'
which can be run by non-admin users and I still want the CGL file and XP
will not allow it to be written in the program's location.
I will try putting it somewhere else, perhaps shared documents and see if
that will work. It would not be a satisfactory solution IMHO.

Derek
Post by Bruce Salzman
Post by Derek Harvey
My project, brought over from BCB6 into BCB2007 had and has GodeGuard
enabled and working (I see a tab called Codeguard and get reports from
time to time).
But, in Tools menu there is no CodeGuard configuration item (as expected
from Help pages);
In Project options->C++ compiler there is no CodeGuard compile support
item (again as expected from Help).
I cannot find CodeGuard anywhere else in the options, global or per-project.
1. How is this explained??
You can add cgconfig.exe to the tools menu (it's in the BCB bin folder).
Post by Derek Harvey
2. What I was looking for is a way of directing the .cgl file to an
explicit path (which could be an allowed path when the program is running
in 'free-standing' mode without Admin privileges when the default path
seems inaccessible under XP). I assume such an option will be found in
one of the above places, but why do I not have them? If there is no such
option (implied by the Help page?) how do I solve this problem?
AFAIK the log is placed in the same location as the app. I suppose you
could put your app in some other folder for debugging purposes.
--
Bruce
Dennis Cote
2008-07-23 15:06:46 UTC
Permalink
Post by Derek Harvey
Thanks for your hints. I can certainly open cgconfig from ...\bin which
gives global options.
How do I get it into Project options so I can switch it on or off for a
compile/make/build?
There should be an Enable All CodeGuard Options checkbox in the Project
Options dialog under the C++ Compiler - Debugging section.


You use the Configure Tools item in the Tools menu to add the Codegaurd
configuration item to the tolls menu itself. Click Add to add a new menu
item, and fill in the boxes. My Codeguard configuration has the
following entries:

Title: &CodeGuard Configuration
Program: C:\CodeGear\RAD\5.0\bin\cgconfig.exe
Working Dir: C:\CodeGear\RAD\5.0\bin\
Post by Derek Harvey
That doesn't solve my problem of the file location. I want to issue a 'beta'
which can be run by non-admin users and I still want the CGL file and XP
will not allow it to be written in the program's location.
I will try putting it somewhere else, perhaps shared documents and see if
that will work. It would not be a satisfactory solution IMHO.
I don't think there is any option to change the location of the
codeguard log file. It is always created in the same directory as the
application.

HTH
Dennis Cote
Derek Harvey
2008-07-25 17:47:19 UTC
Permalink
Thanks. Yes, it is there under 'debugging'. The Help file, as so often, was
imprecise.
And I have now got it into the Tools menu.
Derek
Post by Dennis Cote
Post by Derek Harvey
Thanks for your hints. I can certainly open cgconfig from ...\bin which
gives global options.
How do I get it into Project options so I can switch it on or off for a
compile/make/build?
There should be an Enable All CodeGuard Options checkbox in the Project
Options dialog under the C++ Compiler - Debugging section.
You use the Configure Tools item in the Tools menu to add the Codegaurd
configuration item to the tolls menu itself. Click Add to add a new menu
item, and fill in the boxes. My Codeguard configuration has the following
Title: &CodeGuard Configuration
Program: C:\CodeGear\RAD\5.0\bin\cgconfig.exe
Working Dir: C:\CodeGear\RAD\5.0\bin\
Post by Derek Harvey
That doesn't solve my problem of the file location. I want to issue a
'beta' which can be run by non-admin users and I still want the CGL file
and XP will not allow it to be written in the program's location.
I will try putting it somewhere else, perhaps shared documents and see if
that will work. It would not be a satisfactory solution IMHO.
I don't think there is any option to change the location of the codeguard
log file. It is always created in the same directory as the application.
HTH
Dennis Cote
Bruce Salzman
2008-07-23 15:24:58 UTC
Permalink
Post by Derek Harvey
Thanks for your hints. I can certainly open cgconfig from ...\bin which
gives global options.
How do I get it into Project options so I can switch it on or off for a
compile/make/build?
I created a new Build Configuration called Codeguard Debug that has the
Codeguard options activated (as Dennis described).
--
Bruce
Derek Harvey
2008-07-25 17:47:54 UTC
Permalink
Thanks. That sounds a useful thing to do.
Derek
Post by Bruce Salzman
Post by Derek Harvey
Thanks for your hints. I can certainly open cgconfig from ...\bin which
gives global options.
How do I get it into Project options so I can switch it on or off for a
compile/make/build?
I created a new Build Configuration called Codeguard Debug that has the
Codeguard options activated (as Dennis described).
--
Bruce
Loading...