Passing objects to dll ?

Results 1 to 3 of 3

Thread: Passing objects to dll ?

  1. #1
    Peter Jarvis Guest

    Default Passing objects to dll ?

    Hi,<BR><BR>I am trying to pass an object to a dll and get a "Type Mismatch" error.<BR><BR>I read somewhere that you can only pass things as Variants to a dll - is this true ? Is there no solution other than to change the dll to accept variants ?<BR><BR>Many thanks,<BR><BR>Peter

  2. #2
    Join Date
    Dec 1969

    Default RE: Passing objects to dll ?

    Um, that depends entirely upon what the DLL is expecting. If the DLL wants an integer, and you send it a variant containing a string, you get a type mismatch. <BR><BR>Objects are even worse, because they aren&#039t simple data types. However, if the DLL asks for a car object, then you can pass it a car object. <BR><BR>this is assuming its inproc too. <BR><BR>newbie

  3. #3
    Peter Jarvis Guest

    Default RE: Passing objects to dll ?

    Thanks for the reply.<BR>The dll is expecting a string but when I pass it a string from ASP I get a type mismatch. When I change the dll to accept a variant it all works ok. I read on-line somewhere that ASP can only pass variants to dlls - is this so ? Is there a workaround ?

Posting Permissions

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