Re: GTK-Function with pathnamestring???
- From: "Pawel S. Veselov" <Pawel Veselov Sun COM>
- To: Christian Schneider <christian_schneider_2000 yahoo de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GTK-Function with pathnamestring???
- Date: Tue, 7 Oct 2003 13:31:31 -0700
Hello, Christian !
[ This is not GTK ]
argv[0] is always a pointer to a executable. If it's relative, use getcwd(),
to append to get full pathname.
On Tue, Oct 07, 2003 at 10:15:30PM +0200, Christian Schneider wrote:
Hallo,
is there a function with GTk which returns a string
(or a pointer) with the pathname where the executable
file is placed?
For example my compiled executable is called test.exe.
If the test.exe is placed at the position
c:\programs\test.exe (under Windows) I want to get the
string (pointer) "c:\programs\".
If I copy this test.exe to c:\kopiert\test.exe I want
to get the string "c:\kopiert\".
My programm should be able to be compiled with linux
and windows. Therefore I ask for a GTK-function.
If there is not a GTK-function do you know a function
for windows and for linux?
Regards
Christian Schneider
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und KlingeltÃne fÃrs Handy bei http://sms.yahoo.de
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Bye.
--
Pawel S. Veselov [vps] (MTS, Service Provisioning and OMA) __ __(O) _ __
(408) 276-5410 e-mail: Pawel Veselov Sun COM \ V /| || ' \
fax(408) 276-3243 HomePage: http://manticore.2y.net \_/ |_||_|_|_|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]