Jonathan Groves
Jonathan Groves wrote:
Are you talking about your development-environment? If this is an issue only
belonging to development-times then here's my tip. At this time I always open
the project-sheet of pb. One click on the search-button for the destination of
the .exe-file opens the getfilesavename()-dialog. Another click on OK makes the
thing. That might be a bit 'curious' but it works.
If you have bitmaps that you want to use within your application you should list
their filenames and path in a resource-file and advice pb to use this
resource-file (project-sheet). You won't have to administer the path for every
single file, but only the resource-file (e.g. pictures.pbr).
HTH Uwe
Jonathan Groves
"Uwe Sauerbrey" <saue...@solution-execute.de> wrote in message
news:3A4384B7...@solution-execute.de...
I'm going to assume you want the directory that the EXE is residing
in, not the working directory, since the user can change this to
something completely disassociated with the EXE. To get this, you need
something like:
External function prototype:
function ulong GetModuleFileNameA (unsignedlong hmod, REF string
Filename, ulong count) library "kernel32.dll"
Function:
string ls_FileName = Space (1024), ls_Dir
ulong lul_Length = 1024, lul_Module
n_cst_String lnv_String
lul_Module = Handle (GetApplication())
IF lul_Module <= 0 THEN RETURN ""
GetModuleFileNameA (lul_Module, ls_FileName, lul_Length)
ls_Dir = Left (ls_FileName, lnv_String.of_LastPos (ls_FileName, "\"))
RETURN ls_Dir // returns directory with last backslash still in place
Of course, you can customize this if you're not using PFC.
Good luck and happy whatever,
Terry [TeamSybase] and Sequel the techno-kitten
Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a PowerBuilder Developer's Toolkit,
winner of PowerTimes 1999 "Little Helper of the Year"
"Jonathan Groves" <jpgr...@fergusonassoc.com> wrote in message
news:QVKL4oD...@forums.sybase.com...
Jonathan Groves
"Philip Salgannik" <NOSPAM_p...@phtcorp.com> wrote in message
news:y9KAtqE...@forums.sybase.com...
"Jonathan Groves" <jpgr...@fergusonassoc.com> wrote in message
news:nLNtQ3E...@forums.sybase.com...
"Jonathan Groves" <jpgr...@fergusonassoc.com> wrote in message
news:9012rJD...@forums.sybase.com...
Jonathan Groves
"Kevin James" <futu...@iname.com> wrote in message
news:Sjwx#uEcAH...@forums.sybase.com...