PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Hurdles when making the move from PowerBASIC to FreeBasic?  (Read 408 times)

Eddy Van Esch

  • Senior Member
  • ***
  • Posts: 246
  • FF3 User
    • DevOTechS
Hurdles when making the move from PowerBASIC to FreeBasic?
« on: January 01, 2019, 06:25:43 PM »

Hi all,

For many of you, this subject is probably already past time.
So, short question, maybe longer answer:
When you made the transition from PowerBASIC to FreeBasic, what was (or where) the thing(s) that cost you the most time and effort to adjust?

Thanks for any feedback.

Kind regards
Eddy

Logged
Eddy

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8793
  • Windows 10
    • PlanetSquires Software
Re: Hurdles when making the move from PowerBASIC to FreeBasic?
« Reply #1 on: January 01, 2019, 07:48:26 PM »

If I had to switch to FB now from PB the transition would be a hell of a lot easier because Jose has created the WinFBX library of code. Just look at all of the source code files in the \Afx include folder. That code alone saves hundreds of hours of coding. Similarly, Jose's CWSTR dynamic unicade string class is the #1 time saver in my code. Everything that I now write is unicode compliant and having a dynamic unicode string is invaluable.

Like every new language transition, the change is not always smooth. WinFBE is a good editor to help you move over to FB especially the WinFBE Suite which contains the compiler and all include files. I wish I had it when I switched.

On the coding side, there were only a couple of things that I found either cumbersome or needing a bit of getting used to:

1) The very strict typing especially when working with the Windows API. You have to use the correct pointer, handle, etc definition otherwise the compiler will throw warnings. You can't simply use a LONG or DWORD as a pointer variable. Get to know the CAST keyword... it will quickly become your friend.

2) Working with DLL's. Simply put, it is a pain in the ass compared to the ease of use in PB.

3) COM is a little harder but Jose has done a lot of work in this area and quite frankly I doubt that many PB'ers used COM enough anyway.

I find FB to be a highly competent language. It is fast and flexible. I am very happy with it.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Eddy Van Esch

  • Senior Member
  • ***
  • Posts: 246
  • FF3 User
    • DevOTechS
Re: Hurdles when making the move from PowerBASIC to FreeBasic?
« Reply #2 on: January 02, 2019, 05:36:48 AM »

Yes, Josť too seems to have done a tremendous job .. again!
Thanks Josť !!

Kind regards
Eddy
Logged
Eddy