Results 1 to 2 of 2

Thread: Types into and out of DLL's

  1. #1
    Voldemort
    Guest

    Question Types into and out of DLL's

    I am using a single "Type" to transfer data into an Active X DLL. The DLL has a single function within it that outputs a result as a second, different "Type".

    The input type is defined as a BYREF in the function call within the DLL but when I run the client program I get a BYREF error on my data entry Type.

    Does anyone know what the problem might be ?? Is it a valid techinque to use a function within a DLL like this?

    -------------
    Confused of Windsor

  2. #2
    jim mcnamara
    Guest
    The interface has to be declare the udt explicitly as ByRef
    Code:
    Implements IMyInterface
    Private type MyUDT
       a as Long
       b as variant
    End Type
    Private Property Let stuff(ByRef myVar as MyUdt)
    End Property
    As I remember, UDT's, like Strings are reffed ByVal by default.

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