I have an assembly with a strong name. I am trying to use several
Active X controls. I understand these controls need to be strong
names also. What I don't understand is how to do that. I have run
'aximp c:\winnt\system32\msmask32.ocx
/keyfile:"[keypath]\[keyfile].snk"' which created 2 files
'C:\WINNT\system32\MSMask.dll' and
'C:\WINNT\system32\AxMSMask.dll', both in the Sytem32 directory. Now,
how to get the control into the toolbox to place it on a form? When I
choose to customize toolbox and select the MSMask.dll file, I get an
error 'There are no components that can be placed in the toolbox'. Is
there a step i am missing here, or do I have the whole idea wrong?
What do I need to do, to give an AX .ocx file a strong name and be
able to use it from the toolbox in .NET 1.1?
Thank you for your help.
Kalvin
Mattias Sj?gren - 01 Dec 2003 20:37 GMT
Kalvin,
>When I
>choose to customize toolbox and select the MSMask.dll file, I get an
>error 'There are no components that can be placed in the toolbox'. Is
>there a step i am missing here, or do I have the whole idea wrong?
You should select AxMSMask.dll instead, that's the one containing the
control.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Kalvin - 01 Dec 2003 20:58 GMT
Thank you for a quick reply!
I tried 'AXMSMask.dll', same message.
Kalvin
Jim H - 03 Dec 2003 19:37 GMT
> Thank you for a quick reply!
>
> I tried 'AXMSMask.dll', same message.
>
> Kalvin
Kalvin - I am having the exact same problem. Have you been able to resolve
it yet?
Kalvin - 03 Dec 2003 20:20 GMT
>> I am having the exact same problem. Have you been able >> to resolve
it yet?
Unfortunately, no, I was hoping you had the answer. Until we can figure
it out, we are kind of stuck to not being able to use Strong Named
assemblies as we use several older com components.
Kalvin
Per Bergland - 08 Dec 2003 11:40 GMT
Don't try to use the aximp.exe manually - it stinks (e.g. it doesn't set
the class attribute that allows you to add the control to the toolbox -
duh!).
The VS.NET ActiveX importer (!= aximp) is better since it allows you to
add items to the toolbox and specify a strongname file but for serious
work I recommend rolling your own ActiveX importer that munges the C#
code produced by the internal aximp helper classes and compiles it into
something nicer than what aximp can do.
/Per
Kalvin - 08 Dec 2003 14:53 GMT
I apologize for what may be stupidity on my part, but, how do I run the
VS.NET ActiveX importer without running aximp.exe manually. The way I
have done it so far is to just use the .NET command line and aximp. Is
there another way? How do I use it?
Thank you for your help!
Kalvin