Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

I create a CNiGraph control dynamically, But why havent I seen the Demo Mode Message Window?

I am a licenced user of Mesurement Studio. I create a CNiGraph control dynamically. All work well.
Then I copied my source code to another PC, I run "regsvr32 cwui.ocx", I found I can compile my source code on that computer, without any message box.
But some people said that there will be a Demo Mode Message box.
That's to say, any one can copy my source code to other computer and compile it well, then how can I protect my right?
On what condition the Demo Mode Message Box will appear? I want it to show up when others use my code.
0 Kudos
Message 1 of 5
(3,287 Views)
It sounds like you were expecting the message box to come up at compile-time. Is that correct? If so, that is not expected and should not ever happen - the message box that you're referring to should not come up until you actually run the application. However, if you're dynamically creating the control and you are specifying the license string at creation time in your code, I expect it would still work when you take the code to another machine. Could you please reply with more information about what you're trying to do and how you expect this to work? Thanks.

- Elton
Message 2 of 5
(3,287 Views)
Thanks for your answer.
Yes,I dynamically create the control and I specify the licence string at creation time.
When the code is copied to another PC, I expect the demo message box show up either at compile-time or when the app is executed.
But when I test my code on another computer, I don't see the message box.Is this normal?
0 Kudos
Message 3 of 5
(3,287 Views)
Yes, this is normal. Regardless of how you create the control, you would never see the message at compile time. If you did not create the control dynamically with the license string, you would see an evaluation message when you ran the application. Since you are specifying a license string, though, the control is getting a valid license at run-time, hence there will not be an evaluation message.

- Elton
0 Kudos
Message 4 of 5
(3,287 Views)
Thanks!
Now I am very clear after thinking over this problem at compile time and at run time separately.
I will give your answer a high rating.
Thank you again.
0 Kudos
Message 5 of 5
(3,287 Views)