PlanetSquires Forums

Support Forums => General Board => Topic started by: Israel Vega Alvarez on August 28, 2015, 03:44:16 PM

Title: Thanks by support of FreeBASIC
Post by: Israel Vega Alvarez on August 28, 2015, 03:44:16 PM
It's great to know that people as talented as you (Jose Roca, Paul Squires and many more of this forum) are using and sharing their knowledge to
help us learn to FreeBASIC. I've been using  PureBasic but certainly the compiler is closer to PowerBasic is FreeBASIC.

Now I'll start using it too ... thank you very much for making us feel we are not alone without PowerBASIC.
Title: Re: Thanks by support of FreeBASIC
Post by: Paul Squires on August 28, 2015, 11:39:15 PM
:)  Awesome Israel.  I hope to do a lot more in FreeBASIC over the coming weeks. I have started an open source version of the JellyFish Editor and its source code will be distributed as a FireFly project. I have some key list / hash table code that I will hopefully post tomorrow. Jose has been working on an extremely cool BSTR class that will make working with Unicode and Windows COM much easier. I am currently in Florida on vacation but I try to access these forums as often as I can.
Title: Re: Thanks by support of FreeBASIC
Post by: José Roca on August 29, 2015, 01:41:08 AM
You ain't see nothing yet.

Working in a class for variants. Later I will write one for safearrays (the most difficult).

Usage example:


DIM cvar AS CVariant = "Test string"
Print AfxVarToStr(*cvar)


AfxVarToStr will return a BSTR that can be attached to an instance of the CBStr class, e.g..


DIM bs AS CBStr
DIM cvar AS CVariant = "Test string"
bs = AfxVarToStr(*cvar)
print **bs
--or print val(**bs) if it contains a numeric value


Contrarily to PB's VARIANT$ and VARIANT#, AfxVarToStr will work with any kind of variant type, even safearrays.

These classes will open the door to use all the Windows COM technologies with FB.
Title: Re: Thanks by support of FreeBASIC
Post by: José Roca on August 29, 2015, 05:39:01 PM
Darn! They don't provide the propvarutil header and library.