[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: GTK-Function with pathnamestring???



			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]