Connection Object

Results 1 to 2 of 2

Thread: Connection Object

  1. #1
    Join Date
    Dec 1969

    Default Connection Object

    I have a com object created using Visual Basic. I have a function named connopen which basically connects to the database and returns the conn object as ref variable. This is how this function called from ASP page:<BR><BR>1. create an instance object<BR>2. create an connection object<BR>3. call instancename.OpenConn(s_dbName As String, s_srvName As String,<BR> s_userId As String, s_pwd as String, <BR> ByRef conn As ADODB.connection)<BR> <BR>But when I call this function from an asp page it says data mismatch. I don&#039t know what&#039s wrong. I am not sure If one can pass connection object as an reference variable thru an com object. Any help appreciated.<BR><BR>Thanks in advance,<BR>Anil

  2. #2
    Join Date
    Dec 1969

    Default RE: Connection Object

    I believe you don&#039t need to pass ADODB.connection as reference.<BR>You should use this reference inside your COM object (on the stage of creating your class in VB).<BR>Secondly ASP support only Variant as Data Type.<BR>

Posting Permissions

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