Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ActiveX control uses global variables
#1
Hi,
In the following code, I used a global variable in the ActiveX control, but there is always a prompt in the output bar, How improved?

var:
WebKitXCEF3Lib.WebKitXCEF3+ we3
tip:
Warning in <open ":1865: /453">Macro4Big GrinlgProc: Most COM objects cannot be global (+). Or may need <help>lock. Need to release explicitly.    <help #IDP_DIR_OPT>?

Thanks in advance for any advice and help
david



Macro Macro4
Code:
Copy      Help
typelib WebKitXCEF3Lib {FF2C3A99-34D0-4C82-9545-6A1588574233} 4.0

str dd=
;BEGIN DIALOG
;0 "" 0x90CF0AC8 0x0 0 0 584 332 "Dialog" "4"
;3 ActiveX 0x54030000 0x0 0 0 584 332 "WebKitXCEF3Lib.WebKitXCEF3 {FFF36428-F7BC-4B9B-81D5-FB0957A2EB1C}"
;END DIALOG
;DIALOG EDITOR: "" 0x2040C02 "*" "" "" ""

if(!ShowDialog(dd &sub.DlgProc 0)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,WebKitXCEF3Lib.WebKitXCEF3+ we3
,we3._getcontrol(id(3 hDlg))
,DT_SetAutoSizeControls hDlg "3s"
,we3._setevents("sub.we3")
,
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


#sub we3_OnBrowserReady
function ;;WebKitXCEF3Lib.IWebKitX'we3
we3.Open("www.quickmacros.com")


Messages In This Thread
ActiveX control uses global variables - by Davider - 08-15-2022, 06:05 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)