Click to See Complete Forum and Search --> : API to register a dll ?


sohail_k
March 17th, 2004, 07:03 AM
Is there any Api using which I can register a dll.

Actually I have a dll that i want to register from C/C++ code.

I know i can use ShellExecute and specify regsvr32 and the dll name as parameter.

But i want to do it programmatically

So Does anyone know abt it?

Thanx

Andreas Masur
March 17th, 2004, 07:10 AM
Take a look at the following thread (http://www.codeguru.com/forum/showthread.php?s=&threadid=177176)...

sohail_k
March 17th, 2004, 07:50 AM
thanx Andreas

Andreas Masur
March 17th, 2004, 08:12 AM
You are welcome...

Sam Hobbs
March 17th, 2004, 02:20 PM
Note that regsvr32 is a Platform SDK sample program; you can look at the source code and use whatever it uses.

sohail_k
March 18th, 2004, 12:38 AM
Hi Sam,

By the Regsvr32 sample of Platform SDK , do you mean the sample "Register" that comes as COM sample in Platform SDK?

Regards,
Sohail

Sam Hobbs
March 18th, 2004, 01:09 AM
No, probably not. Evidently it is a MFC sample. It is called the "REGSVR sample". If you look for that, you should find descriptions of it as being the source code for RegSvr32.EXE.