Thanks to Eros Olmi for making it quite simple to use the RC6 vbRichClient with thinBasic.

No need to register the RC6.DLL in order to use it.

An example;
Code:
uses "Console"
 
Dim clsStringBuilder As iDispatch
 
'---Class ID for cStringBuilder class
$CLSID_cStringBuilder = "{8BF37C34-25F8-4605-BEF0-5069594FAA8C}"
 
clsStringBuilder = NEWCOM CLSID $CLSID_cStringBuilder LIB "E:\Documents\vb6\RC6BaseDlls\rc6.dll"
 
if IsComObject(clsStringBuilder) then
  clsStringBuilder.AddNl("One")
  clsStringBuilder.AddNl("Two")
  clsStringBuilder.AddNl("Three")
  printl clsStringBuilder.ToString
 
  clsStringBuilder = Nothing
else
  printl "clsStringBuilder not created"
end if
 
printl "All done, press a key to end"
WaitKey
This also eliminates the need to use the rc6.cRegFree class,
as all COM Server .dlls are now Registration Free with thinBasic.

More at the following link...

Ref: https://www.thinbasic.com/community/...ll=1#post96568

Joe