467,151 Members | 948 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,151 developers. It's quick & easy.

To register an ocx file automatically

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
  • viewed: 2060
Share:
2 Replies
sivadhas2006
100+
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+
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.

Similar topics

1 post views Thread by yawnmoth | last post: by
2 posts views Thread by Mervin Williams | last post: by
2 posts views Thread by Yet another C# coder | last post: by
7 posts views Thread by int main(void) | last post: by
2 posts views Thread by Mythran | last post: by
8 posts views Thread by =?Utf-8?B?R2Vvcmdl?= | last post: by
65 posts views Thread by Spiros Bousbouras | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.