By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

DLLs and OCX

Ali Rizwan
100+
P: 927
Hi all,
How can i add ocx and dll files in my form at runtime?? Is it possible?
For example i have a dll file now i want to call its contents in my app by adding the dll to my app.

Thanx
>> ALI <<
May 10 '08 #1
Share this Question
Share on Google+
3 Replies


Dököll
Expert 100+
P: 2,364
Hi all,
How can i add ocx and dll files in my form at runtime?? Is it possible?
For example i have a dll file now i want to call its contents in my app by adding the dll to my app.

Thanx
>> ALI <<
I have ever done this but couldn't you simply add the DLL in question in a the root folder of your app?!?
May 11 '08 #2

pentahari
P: 60
Hi all,
How can i add ocx and dll files in my form at runtime?? Is it possible?
For example i have a dll file now i want to call its contents in my app by adding the dll to my app.

Thanx
>> ALI <<
you can add dll and ocx at runtime in your form read the form file in notepad and see the code for reference and components and add the line programmatically using write coding.

(or) not runtime process:
First Copy the dll and OCX to your current application folder and register the dll and ocx for unregistered components in another system.
May 12 '08 #3

Ali Rizwan
100+
P: 927
Sorry for saying that you cant understand my problem.
Actually i want that when i have create an exe of my app. Now when my app is running on another pc it will add some ocx or dll files by reading a text file.
Now tell me how can i add reference to that ocx or dll.
For example. in my app all buttons are of default style. Now i create a text file in which button style change command is written with ocx path. Now all buttons will change their appearence to new style.
This is just an example. Just tell me how can i add new ocx in my app??

Thanx
>> ALI <<
May 14 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.