Click to See Complete Forum and Search --> : Annoying error!!!!!


mwagiru
July 13th, 2002, 03:36 AM
I have encountered the following error while programming in EVB
"an error was encountered while running this program: ActiveX
component
can't create object "

I have Embeded Visual tools 3.0 installed along with SDK's for Pocket
PC
and Active Sync 3.5

I have then installed Windows CE Data Access 3.1 downloaded from the
microsoft site.

What is reason for the error, do i need to install any more
tools...How
do i get around this problem??

alanr
July 15th, 2002, 10:31 AM
Are you absolutely certain that the Active X control you are using in your application is existant and registered on the device or emulator you are using?

robley
July 15th, 2002, 01:46 PM
Make sure that you are using ADOCE in the following way:

Dim rsExisit As ADOCE.Recordset
Set rsExisit = CreateObject("ADOCE.Recordset.3.1")

If you are just using
Set rsExisit = CreateObject("ADOCE.Recordset")
You will get this error.

mwagiru
July 16th, 2002, 04:34 AM
I have since solved the problem.
Robley, yours seems reasonable, but not exactly what i was looking for.
why will: Set rsExisit = CreateObject("ADOCE.Recordset")
cause an error and Set rsExisit = CreateObject("ADOCE.Recordset.3.1")
wouldn't?