ShellExecute

What am I doing wrong?

ShellExecute(0,NULL,"regsvr32.exe tip.dll",NULL,NULL,SW_SHOW);

I want to use Regsvr32 to register my DLL in a program.  How do I get this thing to work?  I dont get Shell Execute.

Can someone please provide an example of running regsvr32.exe  with the argument    tip.dll  ??

Thanks.
Nitro187Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
chensuConnect With a Mentor Commented:
::ShellExecute(NULL, NULL, _T("regsvr32.exe"), _T("tip.dll"), NULL, SW_SHOW);
0
 
Nitro187Author Commented:
Thanks a lot  :)
0
All Courses

From novice to tech pro — start learning today.