
Q147740 CWnd work-around doesn't work with control that uses lic file
Quote:
>Ok, I have my MFC application working just ducky with the OCX control
>I need to use. I put it on another system, and it no longer works.
>(Fails in the OnCreate() event, when I call the Control's Create()
>function.) If I distribute the lic file for the OCX, it works.
>While I'm sure our customers wouldn't mind getting the development
>licence for the control, the company that we purchased it from just
>might. <G>
>Help! Now what do I do?
> PI
.lic file is design time license which is needed only during design time
when you embed control in third party container. You MAY NOT distribute .lic
file with the control. When you compile your application that uses the
control you must provide runtime license. Runtime license is implemented as
BSTR key which is last parameter in CWnd::CreateControl and that you must
supply to be able to create control.
Alexander Galkin
Software Engineer
Zebra Pushware Solutions, Inc.
WWW: http://www.infopager.com