Wrox Home  
Search P2P Archive for: Go

  Return to Index  

activex_data_objects thread: Using ADO with a customer ActiveX object


Message #1 by "David Billingham" <db@p...> on Wed, 19 Sep 2001 14:30:51 +0100
Hi



I am converting code from using DAO to ADO. Much of the code is in 

ActiveX dlls.



With DAO I could create a db object in the main app and set a property 

with it in an instance of the ActiveX dll and hence have a db connection 

with the ActiveX dll.



I am trying to do ths same with and ADO Connection object, but get the 

following message when I try to use it (eg when assigning to the active 

connection of  command object:



Arguments are of the wrong type, are out of acceptable range, or are in 

conflict with one another.



Does anyone know why I can't do this, and is there a work round?



Thanks



David Billingham



PS If I do the same thing with a command object it works fine...........
Message #2 by "Parag Phanasgaonkar" <parag.phanasgaonkar@p...> on Thu, 20 Sep 2001 11:10:36 +0530
Post your code please.



Best Regards



Parag  Phanasgaonkar


  Return to Index