A word of caution here though, your working directory can change while using
your app. If you have a file lookup window and you change the directory
with that, it will change your working dir and the INI might not be found.
Dan
----- Original Message -----
From: Jill M. Claus <[EMAIL PROTECTED]>
To: Price, Duncan <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 1999 8:36 AM
Subject: RE: PFCSIG executable path function?
> Wow - that seems almost too easy - So I thought I would confirm my
understanding of what you said to be sure I'm not misinterpreting. ;-)
>
> Currently, I have the following in the constructor event of my
n_cst_fwappmanager object...
>
> ls_application_path = "N:\SOMEDIR\MRS.INI"
>
> If I put...
>
> ls_application_path = "MRS.INI"
>
> there instead, it will search through my path to find the ini?
>
> Jill
>
> >>> "Price, Duncan" <[EMAIL PROTECTED]> 11/24/99 04:56AM >>>
> If you put no path on the ini file at all then it will search though your
> system variables "PATH" ( on My Computer > Properties ), which will
include
> your current working directory.
>
> If you cannot include the directories in you path then you can use the
file
> and platform services to get the current directoty.
>
>
> n_cst_FileSrv nFileSrv
> n_cst_Platform nPlatformSrv
> String ls_INI
>
> // Get an appropriately instantiated copy of the file and platform
services.
> f_SetFileSrv ( nFileSrv, TRUE )
> f_SetPlatform ( nPlatformSrv, TRUE )
>
> ls_INI = nPlatformSrv.of_GetWindowsDirectory () + '\' + 'myapp.ini'
>
> > -----Original Message-----
> > From: Jill M. Claus [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 23, 1999 11:18 PM
> > To: [EMAIL PROTECTED]
> > Subject: PFCSIG executable path function?
> >
> > Is there a function somewhere in the PFC that will return the path to
> > where the executable is currently sitting? I am trying to find a way
to
> > indicate where the ini file is without having to recompile the
executable
> > every time the application files are moved. (i.e. the exe, dll's,
pbd's,
> > etc.) Any help would be greatly appreciated.
> >
> > Thanks,
> > Jill
> >
> > > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE
COMMANDS,
> > ADDRESS
> > > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
> > pfcsig
> > > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
>
> This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. CREDIT SUISSE GROUP, CREDIT SUISSE FIRST BOSTON, and each of
their subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this message
are those of the individual sender, except where the message states
otherwise and the sender is authorised to state them to be the views of any
such entity.
>
>
>
> > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS,
ADDRESS
> > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
pfcsig
> > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
>
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]