15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


License key in OLE control

Sridhar Rao Chedalla -- C.Sridhar@blr.sni.de
Thursday, January 16, 1997

Hello,
 
          Environment : Visual C++4.2b , Window NT 4.0
 
         I have created an OLE control through Appwizard. While creating
I have
selected YES for license validation. I am able to create OCX succes
fully but when I try to insert this control into OLE test container it
says Unable to Insert specified Control. How do I give license key. Is
there any technical notes on this.
 
C.Sridhar



Mike Blaszczak -- mikeblas@nwlink.com
Friday, January 17, 1997

At 18:22 1/16/97 -0800, Sridhar Rao Chedalla wrote:

> Environment : Visual C++4.2b , Window NT 4.0
> 
>I have created an OLE control through Appwizard. While creating
>I have selected YES for license validation. I am able to create OCX succes
>fully but when I try to insert this control into OLE test container it
>says Unable to Insert specified Control.

Make sure the license file is available when the control is inserted.
If it isn't in the same directory as the control's executable, there
will be trouble.

You could figure out exactly what's going on by using the debugger.
Visual C++ comes with a very, very powerful debugger.  You could set
the executable image for your debugging session to be TSTCON32.EXE,
and put a breakpoint on the licensing member functions within  your 
control.  You'd be albe to trace through the code and see _exactly_
what fails right as it's happening!


.B ekiM
http://www.nwlink.com/~mikeblas/
Why does the "new" Corvette look like a 1993 RX-7?
These words are my own. I do not speak on behalf of Microsoft.





| Вернуться в корень Архива |