Hello

Ok I have a dll that I created in visual c++ 6 which I am trying to use in VB. But I keep getting a "Expecting Function or Variable" error.

Dim msg
set msg = createobject("MyDLL.Class.1")

msgbox msg.function

that is the gist of what i'm doing. the .dll is just basically a interface between VB and a C++ dll. In which msg.function access the COM object's function which references the c++ function.

hope this isnt too confusing
any help appreciated
Thanks