LOCAL GLOBALSettings:= NIL
GlobalSettings:= CreateObject("Codejock.CommandbarsGlobalSettings.13.0.0")
WiTH OBJECT GlobalSettings
:License:= "CommandBars Control Copyright (c) " + ;
"2003-2006 Codejock Software" +CRLF+ "PRODUCT-ID: " + ;
"XCB-ESD-ACTX-9600" + CRLF + "VALIDATE-CODE: XXX-XXX-XXX-XXX"
END WITH
/
....
DEFINE WINDOW oWnd
/* aqui gera GPF */
License() <-- aqui ?
@ 0, 0 ACTIVEX oAct PROGID "Codejock.CommandBarsFrame.13.0.0" OF oWnd SIZE 0, 0
oAct:bOnEvent = { | cEvent, aParams, pParams | RibbonBarEvent( cEvent, aParams, pParams, aButtons ) }
oAct:Do( "AttachToWindow", oWnd:hWnd )
...
ACTIVATE WINDOW oWnd ----> ON INIT License() <-- ?
LOCAL GLOBALSettings:= NIL
RegisterServer( "Codejock.CommandBars.v12.1.1.ocx" )
// Method to Activate CodeJock Licence
GlobalSettings:= CreateObject("Codejock.CommandbarsGlobalSettings.12.1.1")
WiTH OBJECT GlobalSettings
:License:= "CommandBars Control Copyright (c) " + ;
"2003-2008 Codejock Software" +CRLF+ "PRODUCT-ID: " + ;
"Codejock.CommandBars.ActiveX.v12.1" + CRLF + "VALIDATE-CODE: XXX-XXX-XXX-XXX"
END WITH
DEFINE WINDOW oWnd TITLE "FWH Support Codejock ActiveX"
oAct := TActiveX():New( oWnd, "Codejock.CommandBarsFrame.12.1.1", 0, 0, 0, 0 )
anserkk wrote:Dear Mr.Ari,
Here is the sample code
- Code: Select all Expand view
LOCAL GLOBALSettings:= NIL
RegisterServer( "Codejock.CommandBars.v12.1.1.ocx" )
// Method to Activate CodeJock Licence
GlobalSettings:= CreateObject("Codejock.CommandbarsGlobalSettings.12.1.1")
WiTH OBJECT GlobalSettings
:License:= "CommandBars Control Copyright (c) " + ;
"2003-2008 Codejock Software" +CRLF+ "PRODUCT-ID: " + ;
"Codejock.CommandBars.ActiveX.v12.1" + CRLF + "VALIDATE-CODE: XXX-XXX-XXX-XXX"
END WITH
DEFINE WINDOW oWnd TITLE "FWH Support Codejock ActiveX"
oAct := TActiveX():New( oWnd, "Codejock.CommandBarsFrame.12.1.1", 0, 0, 0, 0 )
It is working fine here.
Regards
Anser
this does not work with Windows Vista / windows seven.
RegisterServer( "Codejock.CommandBars.v12.1.1.ocx" )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 71 guests