首页 > 编程知识 正文

nploader插件下载,加载插件seed parcel失败

时间:2023-05-03 14:36:06 阅读:155488 作者:3016

用ctk加载插件有两种方法。 第一,您需要自己创建ctkPluginFramework。

//ctkpluginctkpluginframeworkfactory * ctkframeworkfactory=newctkpluginframeworkfactory; qharedpointerctkpluginframeworkframework=ctkframeworkfactory-get framework (; try { framework-init (; 框架-开始(; qDebug () ([Info] ctkPluginFramework start . ' ); } catch (constctkpluginexceptionexception ) { qDebug对象:故障转移框架3360 //installpluginctkplugincontext * plugin context=framework-getplugincontext (; qharedpointerctkpluginplugin=plugin context-install plugin (qurl :3360 from local file ()。 /liborg_ctk_example.dll ' ); 插件开始(ctk插件:3360 start _ transient;

另一个是简单地使用ctkPluginFrameworkLauncher

ctkpluginframeworklauncher :3360 add search path (path,true ); //要添加插件的搜索路径bool SUCCEEDED; try { succeeded=ctkpluginframeworklauncher 3360: start (pluginsymbolicname ); //pluginSybolName是插件的符号名称,例如位于MF文件中的plugin-symbolic name : org.CTK.example,这是org.ctk.example catch(ctkpluginexceptione ) STD 3360: cout ' errorin ' pluginsymbolicname ' e.message const ctk exception * E2=e.cause if(E2 ) STD 3360: coute2- message (.tostdstring ) ) std:endl; return LOAD_FAILED; }catch(ctkruntimeexceptione ) STD : cout ' errorin ' pluginsymbolicname ' e.what ) std:endl; const ctkException* e2=e.cause (; if(E2 ) STD 3360: coute2- message (.tostdstring ) ) std:endl; return LOAD_FAILED; }catch(…) STD : cout ' errorin ' pluginsymbolicnamestd 3360: endl; return UNKNOW_EXCEPTION; 要获取插件上下文,请使用以下方法

ckpluginframeworklauncher : getplugincontext (

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。