📄 testinterface2.pro
字号:
/*****************************************************************************
Copyright (c) Prolog Developement Center
Written by: Visual Prolog
******************************************************************************/
implement testInterface2 inherits comInterface
facts
nativeInterface : iTestInterface2 .%release of interface is handled inside ccomInterface class
clauses
newComponent(ComponentClassID) :-
CompIF = comCreation::createInstance(ComponentClassID, iTestInterface2::iid),
nativeInterface := uncheckedConvert(iTestInterface2, CompIF),
comInterface::new(nativeInterface).
clauses
new(ImportedInterface):-
nativeInterface := uncheckedConvert(iTestInterface2, ImportedInterface:queryInterface(iTestInterface2::iid)),
comInterface::new(nativeInterface).
clauses
method1(Input, Output):-
comExceptionCheck::check(
comExceptionCheck::classInfo,
"method1",
nativeInterface:method1(Input, ComOutput),
[]),
Output = string::createCopy(ComOutput),
comMemory::taskMemFree(uncheckedConvert(pointer,ComOutput)).
clauses
method_Interface2(Output) :-
comExceptionCheck::check(
comExceptionCheck::classInfo,
"method_Interface2",
nativeInterface:method_Interface2(Output),
[]).
end implement testInterface2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -