How can i call the function belong to the exported class from Visual Basic?
Printable View
How can i call the function belong to the exported class from Visual Basic?
Using a C++ class in VB is nearly impossible (it is possible, but very hard and likely to attract bugs), except when you use .NET (and that's not a C++ class anymore).
You'd have to look up the mangled name, specify it as the alias of the function name you really want to use, then create a Type in VB that exactly matches the data structure of the class, initialize it correctly and pass it ByRef as the first parameter to the function (that's the this pointer).
Thx CornedBee advice :)