It is currently Fri Jul 10, 2020 4:21 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Windows X Linux API equivalents
PostPosted: Mon Mar 22, 2004 12:49 am 
Offline
User
User
User avatar

Joined: Fri Feb 27, 2004 9:19 pm
Posts: 77
Location: SP - Brazil
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Mar 22, 2004 12:37 pm 
Offline
User
User
User avatar

Joined: Fri Apr 25, 2003 5:18 pm
Posts: 68
Location: Netherlands
There are not.. but if you would like to have overlapping in api's have
a look at http://www.wxwindows.org/.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Mar 22, 2004 2:41 pm 
Offline
User
User
User avatar

Joined: Fri Feb 27, 2004 9:19 pm
Posts: 77
Location: SP - Brazil
Thanks for the reply. I'll take a closer look!

_________________
Derlidio Siqueira


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat May 22, 2004 2:10 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:51 pm
Posts: 2808
Location: Portugal, Lisbon
@ Derlidio: Any luck with this !?

_________________
Software: http://xipa.org
Elevator Maintenance: http://central-elevadores.pt
Good web hosting!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat May 22, 2004 3:12 pm 
Offline
User
User
User avatar

Joined: Fri Feb 27, 2004 9:19 pm
Posts: 77
Location: SP - Brazil
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat May 22, 2004 3:56 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5810
Location: Germany
for the current directory, you can use this code and read the PWD variable:
http://forums.purebasic.com/english/vie ... 7962#57962

Timo

_________________
quidquid Latine dictum sit altum videtur


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye