• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 728
  • Last Modified:

ocx wrapper without having to register it

Dear Experts

I have an .ocx file which I used to use in vb6.  To use it, I had to register that ocx on all users computers which was a pain.  With .net, is it possible to some how wrap the ocx in .net and create a standard .net application without having to register the ocx file on all users computers?

I am looking into aximp but it does not seem to be the answer.

Please help
0
narmi2
Asked:
narmi2
  • 2
  • 2
1 Solution
 
Bob LearnedCommented:
.NET creates runtime callable wrappers for COM libraries, but it doesn't remove the need to register the COM library on the machine, and there is no way around that requirement, that I know of.

Bob
0
 
narmi2Author Commented:
As a work around, is it possible to get the .net program which contains the ocx to register the ocx on computers where the ocx is not registered?
0
 
Bob LearnedCommented:
You should be able to call regsrv32.exe:

Process.Start("regsrv32.exe", "c:\Windows\Ani32.ocx")

Bob
0
 
narmi2Author Commented:
>> .NET creates runtime callable wrappers for COM libraries, but it doesn't remove the need to register the COM library on the machine, and there is no way around that requirement, that I know of.

Would this work?

http://codebetter.com/blogs/paul.laudeman/archive/category/1147.aspx
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now