Windows X Linux API equivalents

Linux specific forum
User avatar
Derlidio
User
User
Posts: 77
Joined: Fri Feb 27, 2004 9:19 pm
Location: SP - Brazil

Windows X Linux API equivalents

Post 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?
Derlidio Siqueira
pbdep
User
User
Posts: 68
Joined: Fri Apr 25, 2003 5:18 pm
Location: Netherlands

Post by pbdep »

There are not.. but if you would like to have overlapping in api's have
a look at http://www.wxwindows.org/.
User avatar
Derlidio
User
User
Posts: 77
Joined: Fri Feb 27, 2004 9:19 pm
Location: SP - Brazil

Post by Derlidio »

Thanks for the reply. I'll take a closer look!
Derlidio Siqueira
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

@ Derlidio: Any luck with this !?
User avatar
Derlidio
User
User
Posts: 77
Joined: Fri Feb 27, 2004 9:19 pm
Location: SP - Brazil

Post 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...
Derlidio Siqueira
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

for the current directory, you can use this code and read the PWD variable:
viewtopic.php?p=57962#57962

Timo
quidquid Latine dictum sit altum videtur
Post Reply