Page 1 of 1

Windows X Linux API equivalents

Posted: Mon Mar 22, 2004 12:49 am
by Derlidio
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?

Posted: Mon Mar 22, 2004 12:37 pm
by pbdep
There are not.. but if you would like to have overlapping in api's have
a look at http://www.wxwindows.org/.

Posted: Mon Mar 22, 2004 2:41 pm
by Derlidio
Thanks for the reply. I'll take a closer look!

Posted: Sat May 22, 2004 2:10 pm
by Num3
@ Derlidio: Any luck with this !?

Posted: Sat May 22, 2004 3:12 pm
by Derlidio
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...

Posted: Sat May 22, 2004 3:56 pm
by freak
for the current directory, you can use this code and read the PWD variable:
viewtopic.php?p=57962#57962

Timo