Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How do distribute an application with CWUI.OCX

i want to distribute with my application ( ni5102 aquisition ) the CWGraph
composant.
If I put the file CWUI.OCX onto the client machine , then register it, ....
the Graph composant display :
"Evaluation copy" ....
How can I do it?

b.royer@alpes2i.fr
0 Kudos
Message 1 of 4
(5,983 Views)
You neglected to mention the development environment you are using. The reason for this is that our controls require licenses. These licenses must be embedded in your application to be used properly. Visual Basic and Visual C++ embed the licenses automatically for controls that you use in forms and dialogs (unless you add them dynamically). Some other environments do not. There is an article in our KB about installing licenses in VC++ apps for dynamically created controls here: http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/d671d44f1e5384c386256529007c3672?OpenDocument

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 4
(5,983 Views)
Thanks for reply,

I can't use the LicDemo as described.

I 'm using the component like this :

#import "C:\WINNT\system32\CWUI.ocx" raw_native_types, no_namespace,
named_guids
_DCWGraph *m_cwGraph; // _DCWGraph : IDispatch

And create it like this :

long l;
_bstr_t szstyle("Stylgraph.cwx");

wnd_contain.Create(m_hWnd,CRect(lpCreateStruct->x,lpCreateStruct->y,lpCreate
Struct->cx,lpCreateStruct->cy),NULL,WS_CHILD|WS_VISIBLE|WS_BORDER);

l=wnd_contain.CreateControl(A2W("CWUIControlsLib.CWGraph.1"));
l=wnd_contain.QueryControl( DIID__DCWGraph , (void**)&m_cwGraph);

m_cwGraph->ImportStyle(szstyle);
m_cwGraph->PutImmediateUpdates(TRUE);


How can I put the Licence information into the wright place ?

b.royer@alpes2i.fr



"Chris Matthews" wrot
e in message
news:506500000005000000C0250000-986697009000@quiq.com...
> You neglected to mention the development environment you are using.
> The reason for this is that our controls require licenses. These
> licenses must be embedded in your application to be used properly.
> Visual Basic and Visual C++ embed the licenses automatically for
> controls that you use in forms and dialogs (unless you add them
> dynamically). Some other environments do not. There is an article in
> our KB about installing licenses in VC++ apps for dynamically created
> controls here:
>
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/d671d44f1e
5384c386256529007c3672?OpenDocument
>
> Best Regards,
>
> Chris Matthews
> Measurement Studio Support Manager
0 Kudos
Message 3 of 4
(5,983 Views)

      hello, Do you solve the problem? I have met the same problem.If I put the file CWUI.OCX onto the client machine , then register it, the Graph composant display :"Evaluation copy" ....
      How can I do it?Heart

0 Kudos
Message 4 of 4
(4,900 Views)