调用接口方法 [英] Invoking an interface method

查看:123
本文介绍了调用接口方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在多个项目中调用接口方法.我也想为其创建.rgs文件.我该如何手动执行.

I want to invoke an interface method in more than one project. Also I want .rgs file to be created for it. How can i do it manually.

推荐答案

areva写道:

我想在多个项目中调用接口方法

I want to invoke an interface method in more than one project


你到底是什么意思您不能以通常的方式(例如通过CoCreateInstance吗?)执行此操作?


What do you mean exactly? Cannot you do it the usual way (i.e. via CoCreateInstance?)?


我想在多个项目中调用接口方法.我也想为其创建.rgs文件.我该如何手动操作.
实际上,我创建了一个接口& amp; amp;还为该接口方法(.cpp和.h)编写了实现.我已经手动完成了.已在resource.h中创建了OBJECT_ENTRY_AUTO(__ uuidof(.....&相关资源.
我收到一条错误消息,指出未找到.rgs文件".如何手动创建.rgs文件,以便将其放入注册表中.
I want to invoke an interface method in more than one project. Also I want .rgs file to be created for it. How can i do it manually.
Actually, I created an interface & also wrote implementation for that interface methods(.cpp & .h). I have done it manualy. Have created OBJECT_ENTRY_AUTO(__uuidof(..... & an associated resource in resource.h.
Iam getting an error stating ".rgs file not found". How to create an .rgs file manually so that it should put an appropriate entry in the registry.


这篇关于调用接口方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆