?? testinterface1.pro
字號:
/*****************************************************************************
Copyright (c) Prolog Developement Center
Written by: Visual Prolog
******************************************************************************/
implement testInterface1 inherits comInterface
facts
nativeInterface : iTestInterface1 .%release of interface is handled inside ccomInterface class
clauses
newComponent(ComponentClassID) :-
CompIF = comCreation::createInstance(ComponentClassID, iTestInterface1::iid),
nativeInterface := uncheckedConvert(iTestInterface1, CompIF),
comInterface::new(nativeInterface).
clauses
new(ImportedInterface):-
nativeInterface := uncheckedConvert(iTestInterface1, ImportedInterface:queryInterface(iTestInterface1::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_Interface1(Output) :-
comExceptionCheck::check(
comExceptionCheck::classInfo,
"method_Interface1 ",
nativeInterface:method_interface1(Output),
[]).
end implement testInterface1
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -