GTK-Function with pathnamestring???



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



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