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.
:) 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.
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.
Darn! They don't provide the propvarutil header and library.