Yeepy...
I'm seeking for Linux equivalents to SystemParametersInfo() and GetCurrentDirectory() Windows API functions. Does someone here know if there are such equivalent functions and how can I call them from PB code? Any help will be very appreciated.
Thanks in advance...
By the way, does anyone know if there is some kind of documentation that shows Windos API x Linux API equivalences we can use as reference material for cross platform issues?
Windows X Linux API equivalents
Windows X Linux API equivalents
Derlidio Siqueira
There are not.. but if you would like to have overlapping in api's have
a look at http://www.wxwindows.org/.
a look at http://www.wxwindows.org/.
Not yet
I've received a private message from Mac Stevens about this post, and he recommend me a book named "Beginning Linux Programming, 2d Edition", by Richard Stones and Neil Matthew. I've order the book already, but the seller says it can take almost 41 days to arrive overseas! Well, I'll have to wait. But for the meanwhile, he gave me a clue about the directory issue (but I haven't tested it yet):
#include unistd.h
char *getcwd(char *buf, size_t size);
About PBDep reply, well, I haven't had time to explore http://www.wxwindows.org as I wish to. I'm overloaded this times (4 projects running paralleled), and as if it wasn't enough I had to make a major surgery last week in order to remove a bad kidney So, my doctor says I must rest, and spend no more than a couple of hours a day in front of my computer until he says I'm well (It may occur next week).
That's it...
I've received a private message from Mac Stevens about this post, and he recommend me a book named "Beginning Linux Programming, 2d Edition", by Richard Stones and Neil Matthew. I've order the book already, but the seller says it can take almost 41 days to arrive overseas! Well, I'll have to wait. But for the meanwhile, he gave me a clue about the directory issue (but I haven't tested it yet):
#include unistd.h
char *getcwd(char *buf, size_t size);
About PBDep reply, well, I haven't had time to explore http://www.wxwindows.org as I wish to. I'm overloaded this times (4 projects running paralleled), and as if it wasn't enough I had to make a major surgery last week in order to remove a bad kidney So, my doctor says I must rest, and spend no more than a couple of hours a day in front of my computer until he says I'm well (It may occur next week).
That's it...
Derlidio Siqueira
for the current directory, you can use this code and read the PWD variable:
viewtopic.php?p=57962#57962
Timo
viewtopic.php?p=57962#57962
Timo
quidquid Latine dictum sit altum videtur