Board index » cppbuilder » using activex dll's

using activex dll's

Are there any easy ways to use an registrated ActiveX dll in BCB?

F.ex in VB the ActiveX dll can be used like this:

   Dim myDll As Object
   Set myDll = CreateObject("myDll.MyClass")

Any simular methods in BCB ?

/Ola

 

Re:using activex dll's


Quote
"Ola Eriksen" <o...@vivatech.no> wrote in message

news:3ea6a68d@newsgroups.borland.com...

Quote
> F.ex in VB the ActiveX dll can be used like this:

>    Dim myDll As Object
>    Set myDll = CreateObject("myDll.MyClass")

> Any simular methods in BCB ?

Have a look at the Variant class, it supports a similar syntax.

    Variant v = Variant::CreateObject("myDll.MyClass")
    // use v.OleProcedure() and v.OleFunction() as needed

Gambit

Other Threads