|
runtime error 429 - ActiveX component can't create object -
Hello,
I have made a Visual Basic application that uses Jet engine (DAO 3.51). I want to put the program and database on CD, and I want the user to run my program from CD without Setup. So my program checks the system every time it starts to run, If it finds that a required ocx od dll is not available on the system it copy the file and register it. To get the files required for my program, the "Package & Deployment Wizard" make the "Setup1.lst" file, which have all the required File for my program. So, I copy these files and tested the program on Windows 98 pure, but the following error occurs: ******************************************* * Runtime error 429 * * * * ActiveX component can't create object * ******************************************* I think the problem cause is due to DAO files registration: I will till how I register the DAO files, may be you can help me finding the problem cause: in the "Setup1.lst", the following line copy the "dao350.dll" to $(MSDAOPATH) which is "C:\Program Files\Common Files\Microsoft Shared\DAO\", and then register it: File21=@dao350.dll,$(MSDAOPath),$(DLLSelfRegister),$(Shared),4/8/98 9:42:24 AM,570128,3.51.1608.0 but in my program, I copy this file to "C:\Windows\System" and register it using "regsvr32.exe" I also copy all files to "C:\Windows\System\" it they don't exist. and then register those that have to be registerd using "regsvr32 /s" Other files that I copy for DAO are: "msjint35.dll", "msjter35.dll", "VBAJET32.DLL", "msrd2x35.dll", "EXPSRV.DLL", "MSREPL35.DLL" and "MSJET35.DLL" I want to mention that there are two files in "[Bootstrap Files]" section the I didn't copy. I don't know what they are used for, they are File6=@STDOLE2.TLB,$(WinSysPathSysFile),$(TLBRegister),,6/3/99 1:00:00 AM,17920,2.40.4275.1 File7=@ASYCFILT.DLL,$(WinSysPathSysFile),,,3/8/99 1:00:00 AM,147728,2.40.4275.1 I have one more question, what is the difference between $(WinSysPath) and $(WinSysPathSysFile) Thanks for your time, Belal Marzouk
|