Access to VB ActiveX DLL PROPERTIES

From: Andreas (atrotzek_at_cogito.com)
Date: 12/13/04


Date: 13 Dec 2004 07:47:41 -0800

Hi all,

i have a little problem while accessing a VB ActiveX Dll from VC++. i
use standard COM function to get a pointer to a class with
CoCreateInstance and QueryInterface. Calls to vb class-functions work
well, but i can't access properties.

The compiler abort with the note "...no member of..."

I've written a VB ActiveX DLL with public classes. One class has a
property for accessing another class like this:

The class base has a property-class login
VB:
Public Property Get LogIn() As Base.Login
   Set LogIn = m_LogIn
End Property

Part of the idl
...
Definition of base
        HRESULT LogIn([out, retval] _LogIn** );
        [id(0x68030000), propget]
...

I can see this property in the project-class-view, but i can't access
it in c++ with
...
        _Base *pBase = NULL;
        _LogIn *pLogIn = NULL;
        ...QueryInterface(...)....
        
->error: pLogIn = pBase->LogIn;

Any idea?
Thanks in advance for all help.
Andreas



Relevant Pages

  • Access to VB ActiveX DLL PROPERTIES
    ... I've written a VB ActiveX DLL with public classes. ... The class base has a property-class login ... Public Property Get LogIn() As Base.Login ...
    (comp.lang.cpp)
  • Access to VB ActiveX DLL PROPERTIES
    ... but i can't access properties. ... I've written a VB ActiveX DLL with public classes. ... Public Property Get LogIn() As Base.Login ...
    (microsoft.public.vc.mfc)
  • Using OLEDB from ActiveX DLL
    ... I have written an ActiveX DLL that does lookups in a SQL Server ... Express 2005 via ODBC. ... my local Windows login. ... What am I missing about making the OLEDB connection, ...
    (microsoft.public.vb.general.discussion)
  • OLEDB connection from ActiveX DLL
    ... I have written an ActiveX DLL that does lookups in a SQL Server ... Express 2005 via ODBC. ... my local Windows login. ... What am I missing about making the OLEDB connection, ...
    (microsoft.public.vb.database)