Register ocx

  • Thread starter Thread starter Albert Krüger
  • Start date Start date
A

Albert Krüger

Hello

I want to write code in dotnet which register an ocx (I don't want to use
this ocx in dotnet). Exist a class in dotnet for this or have someone an
example to do this?

Thanks
Albert Krüger
 
You could do it the fast and nasty way - format a command string with
regsvr32.exe <ocxfilename> and execute that. It would be prudent to find out
if regsvr32 uses exitcodes to indicate success / failure.
 
The solution from Mattias is the best for me because I must write a tool
under dotnet which handles a program and his ocx's ( written in vb6)

Thanks
Albert
 
Back
Top