如何生成DISPID [英] How to generate DISPID

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

问题描述

我修改了VC ++项目的.odl文件以添加一些属性,以便从其他VC ++项目访问这些属性。



如何为这个修改过的.odl文件生成.h和.cpp文件,以便我可以在其他VC ++项目中引用这些.h和.cpp文件。



.cpp引用项目中的文件内容如下所示....

我只想添加类似的代码到我的新房产。这段代码是自动生成的吗?但我不确定如何生成它



I have modified .odl file of a VC++ project to add some properties, so that the properties will be accessed from other VC++ projects.

How do i generate .h and .cpp file for this modified .odl file, so that i can refer these .h and .cpp file in the other VC++ projects.

.cpp file contents in the referring project looks like below....
I just want to add similar kind of code to my new properties. Is this code automatically generated...? but i am not sure how to generate it

BOOL CTrialScreener::GetEnabled()
{
	BOOL result;
	GetProperty(0xf, VT_BOOL, (void*)&result);
	return result;
}

void CTrialScreener::SetEnabled(BOOL propVal)
{
	SetProperty(0xf, VT_BOOL, propVal);
}

推荐答案

参见 https://www.google.com/search?q=generate+.h+and+.cpp+file+for+this+modified+。 odl +文件 [ ^ ]。


这篇关于如何生成DISPID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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