Home > Software engineering >  The third party controls loading
The third party controls loading

Time:09-16

Excuse me each great god, and I had a VB6 program, cited a isbutton third party controls, the original program with a good, open source program on another computer now find all references to the control of form error, unable to load the controls, but controls all have the position and size of a rectangle, point up, and the name of the controls can also be seen in the properties window, as if you there's a control, but I can't load, don't know what the problem is, who met you? The great god, please guide!

CodePudding user response:

New machines shipped without control, the control of the ocx file is copied to the new machine, and then register
Regsvr32 X: \ \ XXXX... \ XXXX. Ocx

CodePudding user response:

reference 1/f, stupid dog flew first response:
new machines shipped without control, the control of the ocx file is copied to the new machine, and then register
Regsvr32 X: \ \ XXXX... \ XXXX ocx


I quote is CTL user controls, not ocx, if ocx, I know is to register,

CodePudding user response:

Can also generate ocx

CodePudding user response:

Third party controls, is necessarily registered

CodePudding user response:

refer to the second floor qq_23226579 response:
Quote: reference 1/f, stupid dog flew first response:

New machines shipped without control, the control of the ocx file is copied to the new machine, and then register
Regsvr32 X: \ \ XXXX... \ XXXX ocx


I refer to is CTL user controls, not ocx, if ocx, I know is to register,


You said "CTL user controls", refers to the engineering used in the "third party controls the source code!

So: do you use the "third party engineering" (control) is another project, or the EXE engineering include the "control"?

If it is "the third engineering", then "control engineering" and "EXE engineering" to form "project team"!
Opened the project, to open the "engineering group", can't directly open the EXE engineering,
Pay attention to "project team" and "engineering" icon is not the same,
Below is "engineering" icon on the left, on the right is "engineering group" icon,


If it is included in the EXE engineering controls ", it should be won't have what problem,
One thousand "really have a problem", after that you open the project, and then open the "control designer" check for an error message prompt?
(double click on the corresponding in the project explorer window CTL project)
If not prompt error, the designer is closed, and then to draw, to control to the corresponding control name,

CodePudding user response:

Oh, before you is to use engineering group, an exe engineering reference a ocx project?
If it is the case, you describe phenomena can have several
1, you only opened the exe engineering, but the system did not register OCX, solution or project group, or try to register OCX program compiled,
2, you only opened the exe project, the system also register OCX inside, but may be because there is no set compatible with previous versions of OCX engineering OCX files, lead to something new compiler creates new class id, lead to exe program cannot find OCX, the solution is to open engineering group, citing OCX project, or to use binary compatibility setting OCX to register again, then exe project to reference,

OCX DLL project is highly recommended to set up and compile results and the binary compatibility, lest appear all sorts of strange questions,

CodePudding user response:

I copy the program source code to the u disk, and then open on different machines, one machine is no problem, it is Windows 7 32 bit system, different levels of several other computer has a problem, win1064bit system of open source code can be loaded in the computer CTL controls, but appwiz. Ocx add, not even registered in the ide window display is normal, in control, a run, form all controls have no, just a bare gray form; Another Windows 7 32 bit systems, is I in the above questions, anyway, the problem is not the same as different computer, very collapse,

CodePudding user response:

refer to 7th floor qq_23226579 response:
I copy the program source code to the u disk, and then open on different machines, one machine is no problem, it is Windows 7 32 bit, system, different levels of several other computer has a problem, win1064bit system of open source code can be loaded in the computer CTL controls, but appwiz. Ocx not even registered to add in, in the ide window display is normal, in control, a run, form all controls have no, just a bare gray form; Another Windows 7 32 bit system, it is in my above questions, anyway, the problem is not the same as different computer, very collapse,

Registered commands that need to be registered in the administrator mode

CodePudding user response:

refer to 7th floor qq_23226579 response:
I copy the program source code to the u disk, and then open on different machines, one machine is no problem, it is Windows 7 32 bit, system, different levels of several other computer has a problem, win1064bit system of open source code can be loaded in the computer CTL controls, but appwiz. Ocx not even registered to add in, in the ide window display is normal, in control, a run, form all controls have no, just a bare gray form; Another Windows 7 32 bit system, it is in my above questions, anyway, the problem is not the same as different computer, very collapse,

You said that "ocx even registered, also can't add", estimation is no normal load third-party controls in VB6!
You should pay attention to: in a 64 - bit system, to put this ocx SysWOW64 directory to register, not System32 directory!
You try to "run as administrator" start VB6, create a new standard EXE engineering, then add you the control to the project,
This should be the normal use of controls,
Then, just closed this project (don't have to save it, of course), then try to open you "need of the project",

CodePudding user response:

If in EXE engineering, quoting another "control engineering", if be in the form of "engineering group" compile directly,
May be due to the control path "" is not the same, lead to can't find the corresponding control in EXE engineering information,
Can try to quote in EXE engineering controls,


But I'm not sure this effect:
Because I use the user control are included in EXE engineering of directly, no single used "control engineering",

CodePudding user response:

references a drink, 9/f, the bright moon response:
Quote: refer to 7th floor qq_23226579 response:

I copy the program source code to the u disk, and then open on different machines, one machine is no problem, it is Windows 7 32 bit system, different levels of several other computer has a problem, win1064bit system of open source code can be loaded in the computer CTL controls, but appwiz. Ocx add, not even registered in the ide window display is normal, in control, a run, form all controls have no, just a bare gray form; Another Windows 7 32 bit system, it is in my above questions, anyway, the problem is not the same as different computer, very collapse,

You said that "ocx even registered, also can't add", estimation is no normal load third-party controls in VB6!
You should pay attention to: in a 64 - bit system, to put this ocx SysWOW64 directory to register, not System32 directory!
You try to "run as administrator" start VB6, create a new standard EXE engineering, then add you the control to the project,
This should be the normal use of controls,
Then, just closed this project (don't have to save it, of course), then try to open you "need of the project",


references to the tenth floor a toast to invite the bright moon response:
if in EXE engineering, refer to another "control engineering", if be in the form of "engineering group" directly compile,
May be due to the control path "" is not the same, lead to can't find the corresponding control in EXE engineering information,
Can try to quote in EXE engineering controls,


But I'm not sure this effect:
Because I use the user control are included in EXE engineering of directly, no single used "control engineering",



At 6

CodePudding user response:

references a drink, 9/f, the bright moon response:
Quote: refer to 7th floor qq_23226579 response:

I copy the program source code to the u disk, and then open on different machines, one machine is no problem, it is Windows 7 32 bit system, different levels of several other computer has a problem, win1064bit system of open source code can be loaded in the computer CTL controls, but appwiz. Ocx add, not even registered in the ide window display is normal, in control, a run, form all controls have no, just a bare gray form; Another Windows 7 32 bit system, it is in my above questions, anyway, the problem is not the same as different computer, very collapse,

You said that "ocx even registered, also can't add", estimation is no normal load third-party controls in VB6!
You should pay attention to: in a 64 - bit system, to put this ocx SysWOW64 directory to register, not System32 directory!
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related