It is currently Fri Mar 22, 2019 9:57 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 58 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: PBSource-Converter(v394 to v400) Released!
PostPosted: Wed Apr 05, 2006 7:07 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Sep 16, 2005 7:47 pm
Posts: 215
Location: Germany
Hi,

What is the PBSourceConverter?
----------------------------------------

PBSourceConverter is a Plugin based "Multi-Pass Converter" with it you can converting PurBasic-Sources.
So you can make a compatible Sourcecode for a new PureBasic-Compiler. As alternative you can also make
compatible Sourcecodes to previously versions of PureBasic. So you must only create an own PluginFile for it.
The current version of Converter contains already the Plugin "PB394 to PB400".

DownLoad Link:

http://www.codersworkshop.com/viewshowcase.php?id=839

Image

_________________
Ciao
AL90

Image
Pure FileMaster - a Total-Commander Clone


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 05, 2006 7:30 pm 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
Great job. I saved alot of time with your tool.

_________________
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 05, 2006 7:34 pm 
Offline
Always Here
Always Here

Joined: Mon Sep 22, 2003 6:45 pm
Posts: 7439
Location: Norway
Good idea and good job, but I still had some severe problems with my program after conversion because of an extremely tricky usage of ExamineDirectory(), NextDirectoryEntry() and OpenPreferences(). I can't even solve it manually. :lol:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 05, 2006 7:45 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Sep 16, 2005 7:47 pm
Posts: 215
Location: Germany
Thanks all! :wink:

@Trond

Yes, I'm known the problems with ExamineDirectory() and so on.
I'm have also problems with it and i can't it explain. :cry: :)

_________________
Ciao
AL90

Image
Pure FileMaster - a Total-Commander Clone


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 05, 2006 7:54 pm 
Offline
Always Here
Always Here

Joined: Mon Sep 22, 2003 6:45 pm
Posts: 7439
Location: Norway
Actually, that code was correctly converted :D , but I was using NextDirectoryEntry() in an unsupported way. I got around it by using DisableDebugger and EnableDebugger.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 05, 2006 9:32 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Jul 22, 2003 5:02 pm
Posts: 1534
Location: In a long distant galaxy
This is very nice, usefull, welcome and well done !

I'm trying your converter on a big project.

Is it possible to do a rule for such case ?

( using PureCOLOR library for example )

Code:
PureCOLOR_SetGadgetColor(#gList,#Black,$ffffff)


translated to :

Code:
SetGadgetColor(#gList,#PB_Gadget_BackColor,$ffffff)
SetGadgetColor(#gList,#PB_Gadget_FrontColor,#Black)



2/
Is it possible to add the possibility to process a bunch of files ( convertion of all files of a project in a row ) ?

3/
In the 3.94 to 4.0, GetDatabaseLong() and GetDatabaseFloat is not converted.

_________________
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 05, 2006 10:18 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Sep 16, 2005 7:47 pm
Posts: 215
Location: Germany
@Trond

Quote:
Actually, that code was correctly converted. :D


I hope that. :D

Unsupported way? how?

@Flype

Quote:
translated to :

Code:

SetGadgetColor(#gList,#PB_Gadget_BackColor,$ffffff)
SetGadgetColor(#gList,#PB_Gadget_FrontColor,#Black)


Normaly yes. you can add a new converting job for current plugin.

Quote:
Is it possible to add the possibility to process a bunch of files ( convertion of all files of a project in a row ) ?


Includes? it comes in later versions. :wink:

Quote:
In the 3.94 to 4.0, GetDatabaseLong() and GetDatabaseFloat is not converted.


hmm these commands are already supported by pluginfile. Get on Edit
and check the Pluginfile. Here the part of script from plugin.

Code:
[BEGIN JOB]
OriginalName = GetDatabaseLong
ReplacedName = GetDatabaseLong
[ADD PARAMETER]
Position = 1
[FROM COMMAND]
CommandName = UseDatabase | OpenDatabase | OpenDatabaseRequester
Position = 1
[ALLOW #PB_ANY]
Position = 1
[END JOB]

[BEGIN JOB]
OriginalName = GetDatabaseFloat
ReplacedName = GetDatabaseFloat
[ADD PARAMETER]
Position = 1
[FROM COMMAND]
CommandName = UseDatabase | OpenDatabase | OpenDatabaseRequester
Position = 1
[ALLOW #PB_ANY]
Position = 1
[END JOB]


The values will be get so from UseDatabase and OpenDatabase. If the
value cannot recognize, the converter set a <value recognize failed>

_________________
Ciao
AL90

Image
Pure FileMaster - a Total-Commander Clone


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 05, 2006 10:29 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Sep 20, 2004 3:52 pm
Posts: 1648
Hey this is cool. Thanks!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 05, 2006 11:58 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Sep 16, 2005 7:47 pm
Posts: 215
Location: Germany
No problem. :wink:
Thanks to all for interesting to my tool.

_________________
Ciao
AL90

Image
Pure FileMaster - a Total-Commander Clone


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Apr 06, 2006 12:04 am 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1459
Location: North by Northwest
Cool Tool :!:

The only thing that needed to be changed manually on a 45K source code was #PB_EventMenu and #PB_EventGadget.
(they changed to #PB_Event_Menu and #PB_Event_Gadget)

Even have to congratulate Fred & Co, because the exe size changed from 100k to 80k.


Top
 Profile  
Reply with quote  
 Post subject: Re: PBSource-Converter(v394 to v400) Released!
PostPosted: Thu Apr 06, 2006 12:55 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Fri Apr 25, 2003 5:24 pm
Posts: 7581
> DownLoad Link:
> http://www.codersworkshop.com/viewshowcase.php?id=839

I get this error when clicking the zip link on the URL above:

Code:
While trying to retrieve the URL:

The following error was encountered:

Connection Failed
The system returned:

    Error: Could not connect to server.
The remote host or network may be down. Please try the request again.

Your cache administrator is root.

_________________
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.


Top
 Profile  
Reply with quote  
 Post subject: Re: PBSource-Converter(v394 to v400) Released!
PostPosted: Thu Apr 06, 2006 1:03 am 
Offline
Addict
Addict

Joined: Wed Aug 24, 2005 8:39 am
Posts: 2736
Location: Southwest OH - USA
PB wrote:
> DownLoad Link:
> http://www.codersworkshop.com/viewshowcase.php?id=839

I get this error when clicking the zip link on the URL above:
(snip)
[/code]


dunno - works fine for me (at 8:00PM EDT) :)

Great tool - many thanks for sharing with us.

cheers


Top
 Profile  
Reply with quote  
 Post subject: Re: PBSource-Converter(v394 to v400) Released!
PostPosted: Thu Apr 06, 2006 1:24 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Fri Apr 25, 2003 5:24 pm
Posts: 7581
I still can't get it, nor can I see the screenshot of it. :(

@AL90: Can you mirror it somewhere more reliable? Thanks!

_________________
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Apr 06, 2006 1:48 am 
Offline
User
User
User avatar

Joined: Tue Mar 28, 2006 9:26 pm
Posts: 59
Here ya go PB:

Image

Direct Download


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Apr 06, 2006 1:50 am 
Offline
User
User
User avatar

Joined: Tue Mar 28, 2006 9:26 pm
Posts: 59
PS. Thanks AL90 for another great and free tool!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 58 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 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