Can't import .OCX assembly into Web Matrix Project.

  • Thread starter Thread starter Jason Robertson
  • Start date Start date
J

Jason Robertson

Hi,

I am using Web Matrix Project as .NET programming environment. Can you show
me detailed steps how to import the .ocx library into the Web Matrix
Project. I can't seem to be able to import other assembly than .dll, .exe or
..mcl . I am pretty new to the .NET programming environment, and may be
missing something.

I can see the file in C:\Program Files\Common Files\Tops\xyzxyz.ocx , but I
can't find a way to import it into the Web Matrix Project to see all Methods
and Properties of the assembly.

Thank you for any help.
 
Hi,

Assuming tlbimp.exe is a part of Microsoft .NET SDK, you can create the
Interop assembly manually with tlbimp.exe and then reference the prepared
Interop assembly from your WebMatrix project.
 
As it's an .ocx, shouldn't it rather be aximp?


Best regards,

Henrik Dahl

Dmitriy Lapshin said:
Hi,

Assuming tlbimp.exe is a part of Microsoft .NET SDK, you can create the
Interop assembly manually with tlbimp.exe and then reference the prepared
Interop assembly from your WebMatrix project.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Jason Robertson said:
Hi,

I am using Web Matrix Project as .NET programming environment. Can you
show
me detailed steps how to import the .ocx library into the Web Matrix
Project. I can't seem to be able to import other assembly than .dll, ..exe
or
.mcl . I am pretty new to the .NET programming environment, and may be
missing something.

I can see the file in C:\Program Files\Common Files\Tops\xyzxyz.ocx , but
I
can't find a way to import it into the Web Matrix Project to see all
Methods
and Properties of the assembly.

Thank you for any help.
 
Depends on the intended use of the OCX. If it will be used as a *control*
hosted on a form, then you are right - the original poster will need aximp
as well. If the ocx will be used just as an ActiveX DLL (like Microsoft
Script Control is often used, for example), then tlbimp is enough.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Henrik Dahl said:
As it's an .ocx, shouldn't it rather be aximp?


Best regards,

Henrik Dahl

Dmitriy Lapshin said:
Hi,

Assuming tlbimp.exe is a part of Microsoft .NET SDK, you can create the
Interop assembly manually with tlbimp.exe and then reference the prepared
Interop assembly from your WebMatrix project.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Jason Robertson said:
Hi,

I am using Web Matrix Project as .NET programming environment. Can you
show
me detailed steps how to import the .ocx library into the Web Matrix
Project. I can't seem to be able to import other assembly than .dll, .exe
or
.mcl . I am pretty new to the .NET programming environment, and may be
missing something.

I can see the file in C:\Program Files\Common Files\Tops\xyzxyz.ocx , but
I
can't find a way to import it into the Web Matrix Project to see all
Methods
and Properties of the assembly.

Thank you for any help.
 
Back
Top