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

To register an ocx file automatically

P: 75
Hi all
i have created an activex control and have created an ocx,i need to automatically register an ocx file how can it be done without using
regsv32 "pathname\xx.ocx".
Nov 20 '06 #1
Share this Question
Share on Google+
2 Replies


sivadhas2006
100+
P: 142
Hi,

Try using the following APIs...

1. LoadLibrary
2. GetProcAddress of RegisterServer
3. Call the RegisterServer function
4. FreeLibrary

Regards,
M.Sivadhas.
Nov 20 '06 #2

100+
P: 267
Hi,

Try using the following APIs...

1. LoadLibrary
2. GetProcAddress of RegisterServer
3. Call the RegisterServer function
4. FreeLibrary

Regards,
M.Sivadhas.
hi

regsvr32.exe "path & xxx.ocx" /s will register in background...
Nov 21 '06 #3

Post your reply

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