From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

CWUI Creation of licenced ActiveX

Dear Chris Matthews,
Thanks for reply but 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 wri
ght place ?

b.royer@alpes2i.fr
0 Kudos
Message 1 of 2
(3,030 Views)
This is dynamic creation, the knowledgebase article I linked to previously (http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/d671d44f1e5384c386256529007c3672?OpenDocument) contains information on how to do this. You can also find a lot of information on this in MSDN at http://msdn.microsoft.com.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 2
(3,030 Views)