03-17-2024, 12:10 AM
I encountered the same issue. I used the registration serial number, but the image still doesn't display
Macro Gdp
Macro Gdp
typelib GdPicture_NET_14 {B5893B58-701E-4110-9871-1DA14CF9C1DC} 14.2
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 ActiveX 0x54030000 0x0 0 0 216 110 "GdPicture_NET_14.GdViewer {0CC0D923-B9ED-310C-B453-D1A59F25712C}"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040C02 "*" "" "" ""
GdPictureImaging Gdp._create
GdViewer- GdViewer1
;https://www.gdpicture.com/guides/gdpicture/How%20to%20unlock%20GdPicture.NET.html
LicenseManager oLicenseManager._create
oLicenseManager.RegisterKEY("xxxxxx")
if(!ShowDialog(dd &sub.DlgProc 0)) ret
#sub DlgProc v
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,,//Loading the image from open dialog
,,int imageID = Gdp.CreateGdPictureImageFromFile("")
,,
,,GdViewer1._getcontrol(id(3 hDlg))
,,GdViewer1.DisplayFromGdPictureImage(imageID)
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1