471,354 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Licensing ActiveX Controls at Runtime

Hello,

I need to license AxMSCommLib.AxMSComm at runtime, I'd rather not mess
with the registry at install. I have seen this code posted all over the
web:

AxMSCommLib.AxMSComm com;
string strLicense = "kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun";
System.Reflection.FieldInfo f =
typeof(AxHost).GetField("licenseKey",
System.Reflection.BindingFlags.NonPublic |
System.Reflection.BindingFlags.Instance);

f.SetValue(com, strLicense);

This code DOES NOT WORK. Any ideas why?

Thanks.

Dec 17 '05 #1
0 952

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Shawn | last post: by
3 posts views Thread by Evan Delodder | last post: by
reply views Thread by Dan | last post: by
7 posts views Thread by Jarod_24 | last post: by
4 posts views Thread by Wilfried Mestdagh | last post: by
4 posts views Thread by Mr Seth T | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.