Using COM object from ASP

Results 1 to 3 of 3

Thread: Using COM object from ASP

  1. #1
    skinny Guest

    Default Using COM object from ASP

    I&#039ve created a COM object that I&#039m using from ASP<BR>scripts. However, I have a few methods that return<BR>objects in the function. Like..<BR><BR>ComObject.Method(in value, out value2, out value3)<BR><BR>I keep getting type mismatch errors whenever I try to<BR>use these methods.

  2. #2
    Nate Johnson Guest

    Default RE: Using COM object from ASP

    Type mismatch leads me to believe that you are passing the incorrect data type into the com method. one example of a problem that can happen if you explicity define something as a string in the paramters of your COM method, but then inadvertantly pass in a variant from your webpage. I would verify all of the paramters that you are passing and use the cint(), cstr() functions where necessary...<BR>these functions will convert integer and string, respectively before you pass them into the com.<BR><BR>

  3. #3
    skinny Guest

    Default RE: Using COM object from ASP

    Thanks for your response! I&#039m positive that I&#039m passing<BR>the right stuff into the method. I guess my real question<BR>is:<BR><BR> Is there any pitfalls with returning values in a method<BR>call? <BR><BR>The parameter that seems to trip up is something that the<BR>COM object will fill up with values and return to me. <BR>It should be passed by reference so the COM object can<BR>modify its value and return it to me.<BR><BR>Thanks,<BR>skinny

Posting Permissions

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