Recent content by mcmcdonald

  1. M

    Passing structure to COM-function - problems

    Hi! Yes, it seems it's not possible to pass and get back structures with memptr. When trying to pass a raw i get a type conflict error (progress error code 5890, COM-error 0x80020005). Perhaps i have to wrap these function calls into a self-made COM object. Thanks for your reply! Andreas...
  2. M

    Passing structure to COM-function - problems

    Hi! Thanks for reply! Also passing the vec3 as input returned the same error. I think it's a generell problem passing mem structures to the COM-methods. When i try to call a function that returns such a Vector the application gets frozen: DEF VAR vec3 AS MEMPTR. SET-SIZE(vec3) = 12...
  3. M

    Passing structure to COM-function - problems

    Hello! I have a problem accessing COM-functions of a 3D library (Truevision3D). Some functions need data structurs in the form of D3DVECTOR, defined as typedef struct D3DVECTOR { float x, y, z; } D3DVECTOR, *LPD3DVECTOR; when i try to call the function from visual basic, all runs well: Dim...
Back
Top