Registering and Registering a .dll from code

0

I am trying to register a dll from my code(Windows 7, 64-bit Application). The code snippet as below.

hinst = ShellExecute(NULL, _T("open"), L"regsvr32.exe", str, NULL, SW_SHOWNORMAL);
str -> fully qualified path of the file like  C:\\XXXX\\XXXX\\XXXX.dll"

The ShellExecute returns the following:

"0x0000002a" and fails to register the file

What could be the issue?

c++
regsvr32
asked on Stack Overflow May 29, 2017 by Sandeep Kumar • edited May 29, 2017 by FortyTwo

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0