|
-
Feb 6th, 2008, 06:27 AM
#1
Thread Starter
New Member
How to create an Activex Control & use in other VB applications
Hi All,
I have certain functions which I want to distribute within my organisation. I do not want to distribute the source codes. So what I have done is opened a new VB project, and to that I have added a User Control, in which I have added the public functions. Thereafter I have compiled the the project into and ocx file. So far so good.
When I distribute the ocx to my colleagues, in their VB application, in the component section, they have added the ocx to the list. But the problem is that they are not able to view the functions that I have included in the ocx file. Furhter when the VB application is being executed it gives an error "Compile error: Sub or function not defined"
Somebody please help, I am in a fix.
-
Feb 6th, 2008, 05:25 PM
#2
Re: How to create an Activex Control & use in other VB applications
This sounds like a deployment issue.
Are you creating a setup package for this OCX or just handing them the naked OCX itself? It sounds as if it isn't getting registered.
You are also supposed to create a DEP file (using the P&D Wizard) for OCXs you plan to distribute for others to develop programs against. This should be included in the setup package and normally is placed next to the OCX on disk by the installer. This DEP file tells the P&D Wizard later on what your OCX's dependencies are (if any), and is used when somebody else packages a program they wrote which uses your OCX.
Basically though, it sounds like they just need to register your OCX.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|