?? 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 + -