Hi, All !
I tryed to do exapmle RibbonBar.prg (FWH 9.4) but RegisterServer( "Codejock.CommandBars.v12.1.1.ocx" ) is not work and I got error GPF
(file Codejock.CommandBars.v12.1.1.ocx exist in pholder of this example). What it ?
If IsActivex("Codejock.CommandBars.v12.1.1.ocx")
MsgInfo("Activex is already Registerd")
else
MsgInfo("Activex is NOT Registerd, Now it will Register")
RegisterServer( "Codejock.CommandBars.v12.1.1.ocx" )
Endif
Private Sub Form_Initialize()
CommandBarsGlobalSettings.License = "CommandBars Control Copyright (c) " & _
"2003-2006 Codejock Software" & vbCrLf & "PRODUCT-ID: " & _
"Codejock.CommandBars.ActiveX.v10.20" & vbCrLf & _
"VALIDATE-CODE: XXX-XXX-XXX-XXX"
End Sub
MsgInfo("About to call TActivex")
// Program gives GPF at the next line.
oAct := TActiveX():New( oWnd, "Codejock.CommandBarsFrame.12.1.1", 0, 0, 100, 100 )
ACTIVATE WINDOW oWnd ;
ON INIT (oSettings = oAct:GetProp( "CommandBarsGlobalSettings" ),;
oSettings:License = "CommandBars Control Copyright (c) " + ;
"2003-2006 Codejock Software" +CRLF+ "PRODUCT-ID: " + ;
"Codejock.CommandBars.ActiveX.v12.1" + CRLF +;
"VALIDATE-CODE: xxx-xxx-xx-xxx")
You can distributed for users files Codejock.CommandBars.v12.1.1.ocx and Codejock.CommandBars.v12.1.1.lic.
Then, for first run you application, do :
regsvr32 /s Codejock.CommandBars.v12.1.1.ocx
CoInitialize()
If IsActivex("Codejock.CommandBars.v12.1.1.ocx")
MsgInfo("Activex is already Registerd")
else
MsgInfo("Activex is NOT Registerd yet, Now FWH is going to Register this Activex")
RegisterServer( "Codejock.CommandBars.v12.1.1.ocx" )
Endif
// See the next statements. IsActivex() always returns .F.
CoInitialize()
If IsActivex("Codejock.CommandBars.v12.1.1.ocx")
MsgInfo("Activex is Successful")
else // Not Registered
MsgInfo("Unable to register the Activex")
Endif
I don't know why IsActivex() always returning .F. in my PC
The question is: why the CLSID is not found for a certain PROGID ?
IsActiveX("Codejock.CommandBars.12.1.1")
IsActiveX ("Codejock.CommandBarsFrame.12.1.1")
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 92 guests