Home > Software engineering >  VB program is packaged in other machines running tips runtime error 430: class does not support auto
VB program is packaged in other machines running tips runtime error 430: class does not support auto

Time:10-25

I'm winxp sp3 + vb6 wrote a program to access access 2003, local operation is no problem, use the setup factory packaging to other machines running appears "run-time error 430: class does not support automation or does not support expected interface", how should solve?

Dim con As ADODB. Connection
Dim RST As ADODB. You
The Set con=New ADODB. Connection
The Set RST=New ADODB. You

Con. The Open ". The Provider=Microsoft Jet. The OLEDB. 4.0; Data Source="& amp; App. The Path & amp; "\ xishu. MDB; Persist Security Info=False "
RST. ActiveConnection=con

RST. Open the "select * from leixing where id=" & amp; idp

CodePudding user response:

References of some components are not correctly registered!
But it seems not ADODB not registered, because in XP is built-in ADODB library;

CodePudding user response:

I installed the VB6 SP6, reference is Microsoft ActiveX Data Objects 2.8 Library, run on other XP to this fault, really don't know what reason, many explanations are said to install MDAC, but not on XP has been shipped?

CodePudding user response:

Installed XP comes with MDACTyp2.8, you should also not!
Your question should be not to control or reference not registered,

CodePudding user response:

I only use to database access Microsoft ActiveX Data Objects Library 2.8, other are useless

CodePudding user response:

Meet the same problem,

CodePudding user response:

reference 4 floor alrock response:
I only to the database access Microsoft ActiveX Data Objects Library 2.8, other are useless


The XP system should you have any question, this part is the (without) sp1 XP will upgrade the XP sp3 try it on

CodePudding user response:

I also met this problem before, check a lot of information, can not solve, finally know VB is compiled under the XP version has a problem, now the GHOST on the network version, some will go wrong, then I change a version to install, is everything all right, you can try to move in this direction, now download system also need not much time

CodePudding user response:

refer to 7th floor yejian520 response:
I also encountered this problem before, check a lot of information, can not solve, finally know VB is compiled under the XP version has a problem, now the GHOST on the network version, some will go wrong, then I change a version to install, is everything all right, you can try to move in this direction, now don't need to download a system how much time

Really do not have other way? Compiled all my original system thoroughly, reshipment system is online download "rain forest wind" GHOST installed, appears the question, really trouble,

CodePudding user response:

C: \ Program Files \ Common Files \ System \ ado version of the file you question me generally own machine this folder with low version

CodePudding user response:

Development of machines that would be the old version of the compiler

CodePudding user response:

Dim con As Object
Dim RST As Object
The Set of con=CreateObject (" ADODB. Connection ")
The Set RST=CreateObject (" ADODB. You ")

Con. The Open ". The Provider=Microsoft Jet. The OLEDB. 4.0; Data Source="& amp; App. The Path & amp; "\ xishu. MDB; Persist Security Info=False "
RST. ActiveConnection=con

RST. Open the "select * from leixing where id=" & amp; Idps
.
RST. Close
Con. Close

The set of RST=nothing
The set of con=nothing
'* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Main reason is because the two machines ADO interface problem, only use late binding to solve the problem,
Is said to be the Microsoft programmers to switch to Windows 7 compulsory because ADO interface under Windows 7 and XP ADO interface caused by inconsistent
, starting I found that even under the XP, as long as you have installed VS2010sp1, at compile to not installed machines run
Or not, so the reason may be caused by ado version interface change, can't, can only use late binding

CodePudding user response:

If Windows 7 sp1, the dejected sp1 had

Another try 2.6 or 2.7 version of the adodb library

CodePudding user response:

In the error KB983246 patches installed on machine

CodePudding user response:

Microsoft ActiveX Data Objects Library 2.8
Switch to 2.7! The same problem, that's what I solve

CodePudding user response:

refer to 12 floor clear_zero reply:
if Windows 7 sp1, put the sp1 annoyed with

Try another 2.6 or 2.7 version of the adodb library


At first, as long as they are not install sp1, now even if you don't install sp1, there will be other patches to affect, so still under xp compile instead

CodePudding user response:

Different machine compile indeed perform different, sometimes the same source in my own machine compile results each other on qq sent files prompt said 360 virus, compiled in the company of the machine will not poison,

CodePudding user response:

You say specific point ah ah

CodePudding user response:

This packaging process also to problems in xp sp2, Windows 7 sp1 development platform,

CodePudding user response:

The
reference 13 floor response:
install KB983246 patches in the error of machine


Not before the patch, the main program can run, but there are local error, specially after the sp3 and the patch, error (automation error) program is started, more miserable,

CodePudding user response:

Windows Virtual PC was used to simulate the an xp sp3 environment, installed inside the VB6 sp6, compile under the Windows 7 form all transplants in the past, recompile and package, their operation is all right, but in the other xp sp3 + packaging procedure or just use the adodb library statement on win2003 sp2 at 430 errors, has in the different versions of the msado 2.0 ~ 2.8. The TLB package installation problem is still in the past, I'm going to collapse, which give an idea!!!!!!

CodePudding user response:

C: \ Program Files \ Common Files \ System \ ado
The problems in folder

My computer in the problems in the folder in overwrite the file on the machine I developed

Compile again will be able to solve problems

Lower ADO version of the development on the machine, the other you can't have

CodePudding user response:

On this question I have answered the original fast for half a year didn't stick

CodePudding user response:

I use Windows 7 compiled to another machine running on the same problem,
Put the project on the other with VB6 machines to recompile just normal,

CodePudding user response:

I also met this problem, not control register, ADO version
1. Under some xp error;
2. Can't use under Windows 7 and visit;

Is such a solution,
1. Use low version ADO2.5 version
2. In the C: \ Program Files \ Common Files \ System \ ado folder and C: \ WINDOWS \ system32 folder with ado file,
2.81.3012.0 msado25 TLB, version number, the size of 80 KB,
When packaged with the can,

CodePudding user response:

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related