Hello,
i'd like to load different ActiveX controls to the same position at one panel.
I don't want to include those ActiveX controls with right click -> ActiveX -> Select ActiveX Control to the panel, but at runtime programatically.
I have found the following functions:
NewActiveXCtrl
NewActiveXCtrlFromFile
NewActiveXCtrlFromPersistence
The class id (clsid) that i get for the MS Webbrowser control has the format 8-4-4-4-12 (e.g. 8856F961-340A-11D0-A96B-00C04FD705A2).
As far as I know the functions NewActiveXCtrl and NewActiveXCtrlFromFile only accept the format: 0x5, 0x1, 0x1, 0x2, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x2 (e.g.: 0x6F03A, 0x0, 0x0, 0xC0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x46)
How can i convert the 8-4-4-4-12 format to the format that matches to the functions?
The function NewActiveXCtrlFromPersistence seems to support the 8-4-4-4-12 format but i have problems to understand and create the "persistence text" as defined in the function prototype:
(extern int CVIFUNC_C NewActiveXCtrlFromPersistence (int panel, const char *ctrlLabel, int top, int left, char *defaultIID, int binaryFormat, char *persistenceText, HRESULT *activeXError);)
Does somebody has a clue how to convert the 8-4-4-4-12 format or to create an ActiveX control independent "persistence Text"?
Best regards
MaWie