09-03-2008, 06:44 AM
_create etc are added by QM. Documented in QM help.
I look what is in its type library:
1. Insert type library declaration using the Type Libraries dialog:
typelib XXX ...
2. Then compile the macro.
3. Then type XXX. and look what classes are there.
4. Pick a class, declare variable and look what's in the class.
XXX.Class var.
5 a. If it's not an ActiveX control that must be in a dialog, I use _create to initialize the variable:
XXX.Class var._create
var. ...
5 b. If it's an ActiveX control, I instead add the control to a dialog in the Dialog Editor.
Read more in QM help, 'Using COM components' topic.
Quote:How do you use a dll...I mean how do you know what is in it and how to initialize it...
I look what is in its type library:
1. Insert type library declaration using the Type Libraries dialog:
typelib XXX ...
2. Then compile the macro.
3. Then type XXX. and look what classes are there.
4. Pick a class, declare variable and look what's in the class.
XXX.Class var.
5 a. If it's not an ActiveX control that must be in a dialog, I use _create to initialize the variable:
XXX.Class var._create
var. ...
5 b. If it's an ActiveX control, I instead add the control to a dialog in the Dialog Editor.
Read more in QM help, 'Using COM components' topic.