Results 1 to 12 of 12

Thread: Variable uses an automation type not supported in Visual Basic

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Posts
    126

    Variable uses an automation type not supported in Visual Basic

    Hi to All

    I have some problem calling a com dll from VB6.

    In the object Browser i See:
    Code:
    Sub CreateIterator(iid As GUID, ppv As Any)
    I think the problem is the GUID.(in stdole)

    This is the IDL description:

    Code:
       [
        object,
        uuid(1E8701D0-258F-43ED-9EDC-434FD16E922D),
        helpstring("Switcher Object")
    ] interface IBMDSwitcher : IUnknown
    {
        HRESULT CreateIterator([in] REFIID iid, [out] LPVOID* ppv);
    I can't call CreateIterator from vb6. I get the error
    "Variable uses an automation type not supported in Visual Basic"

    How I can get this interface?


    Please Help me.

    Thanks to all
    Last edited by Nanni; Apr 23rd, 2012 at 01:39 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width