有挑战性的问题:这是BUG吗?
vcmfc 2000-12-29 10:35:00 我在我的IFont问题作一个测试,却发现这样的BUG?,如下:
我现VC的ATL COM AppWizard生成一个COM组件,并插入一个ATL对象,并在其属性页中
Stock Properties属性页中使用其中的Font属性,然后编译,编译过程中产生以下警告:
warning MIDL2039 : interface does not conform to [oleautomation] attribute : [ Parameter 'pFont' of Procedure 'putref_Font' ( Interface 'ITButton' ) ]
warning MIDL2039 : interface does not conform to [oleautomation] attribute : [ Parameter 'pFont' of Procedure 'put_Font' ( Interface 'ITButton' ) ]
warning MIDL2039 : interface does not conform to [oleautomation] attribute : [ Parameter 'ppFont' of Procedure 'get_Font' ( Interface 'ITButton' ) ]
其语句是系统产生的,如下:
MIDL2039 :HRESULT Font([in]IFontDisp* pFont);
HRESULT Font([in]IFontDisp* pFont);
[propput, id(DISPID_FONT)]
虽然产生警告,还是产生组件,在VB中进行测试,发现在VB中的对象属性页中对Font属性进行赋值时,
产生InValid Properties Value,如果ATL是个成熟的成品,Microsoft应该会发现这个问题?,对这个问题
该如何进行解决?,why?,各们大哥大姐们,我的项目就是碰到这个问题,加急!