Results 1 to 6 of 6

Thread: Pass a UDT to a late-bound active-x dll ?

  1. #1

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Pass a UDT to a late-bound active-x dll ?

    I have an active-x dll, and there's an init function in a class in it.
    I want to pass an array of UDTs into the function, but VB won't allow me to pass a UDT to a late bound function.

    Any thoughts ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  2. #2

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I could convert the entire UDT to a string I suppose...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Fanatic Member
    Join Date
    Aug 2001
    Location
    Connecticut
    Posts
    855
    try a variant array.
    VB 6.0, Access, Sql server, Asp

  4. #4

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    When I change the function declaration of the function im tyring to pass the data to in the activex dll, i get the same error
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5
    Fanatic Member
    Join Date
    Aug 2001
    Location
    Connecticut
    Posts
    855
    I would think Udts can be replaced by a class and passed to a dll as object or variant.
    VB 6.0, Access, Sql server, Asp

  6. #6

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Yeah I know except I would have to rewrite large parts of my application to do that.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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