Page 1 of 1
A way to tell cross-platform?
Posted: Sun Nov 15, 2009 6:37 pm
by Perkin
Hi, I've searched the forum but haven't found any topics to help me.
Is there any way to check a source/project for cross-platform compatability, perhaps even reporting which commands are used which prevent compatability.
I've done a couple of small progs for Windows and am now thinking of trying to convert them for Linux/Mac and would like to see what commands, procedures, gadgets etc. would need to be adapted for use on other OS's.
Any Ideas?
TIA
Perkin
Re: A way to tell cross-platform?
Posted: Sun Nov 15, 2009 6:59 pm
by akj
@Perkin:
For starters, try this:
Access the PureBasic Help window and select Contents -> Additional Informations (sic)
Then in the right-hand pane click on Platform-dependant Functions
Re: A way to tell cross-platform?
Posted: Sun Nov 15, 2009 11:15 pm
by Foz
The biggest issue you will face is the gui. ALL controls are different sizes across different OS's. With Linux it gets even worse.
For an example of what I'm talking about, load the gadgets.pb example. Perfect on windows, not so good elsewhere.
This is something I'm battling at the moment (I use Linux almost exclusively, but need to develop for windows). I have an idea to fix the issue, and am working on a tool to fix it, but it's slow going.
Re: A way to tell cross-platform?
Posted: Sun Nov 15, 2009 11:35 pm
by luis
Foz wrote:The biggest issue you will face is the gui. ALL controls are different sizes across different OS's. With Linux it gets even worse.
Hi Foz, in case you missed this post:
http://www.purebasic.fr/english/viewtop ... 12&t=38349
Re: A way to tell cross-platform?
Posted: Mon Nov 16, 2009 11:32 am
by Foz
No, not missed, that post is the foundation of my tool

Re: A way to tell cross-platform?
Posted: Mon Nov 16, 2009 1:31 pm
by Perkin
Although the display problems are hugely different, I'm not too overly concerned with their compatability, what I'm try to solve is to see which commands used out of all my program is either missing or incompatable with the other OS's.
(So I know how much work I'll have to do to get a reasonably 'working' version)
I already knew of the list in the help file, but what about any other commands etc.