-
Hello,
I have finished VB project that uses an OCX project ("vbp" not compiled "ocx"),
I want now to make an EXE file of my project, so I first compiled the OCX project.
The problem is that my project is refrencing the vbp OCX project not the compiled one,
so I deleted the refrence to ocx project (.vbp) and made refrence to compiled ocx (.ocx).
The problem now is thar when I run the project, the interface of the ocx not found,
there is no error messages but I don't see the ocx on my Project.
(Note: the Visible property of the ocx is set to TRUE)
How can I solve this probem?
Thanks,
Belal Marzouk
-
This is why MS implemented the VBG system. Go back into the EXE project. If the OCX project is not displayed in the Project Explorer, then add it. Set the reference in the EXE back to the OCX vbp.
Under the file menu, you'll see an option that says "Make Project Group..." Select that and you've got it. It maintains the refernces in the EXE to the right project: the compiled OCX. (or DLL, in the case when I figured this out)