中文:
MyDllTest调用HwaRader.dll,在HwaRader.dll中有IIRader接口,IIviDriver是IIRader的父类,在IIviDriver中
通过属性的方式去调用Identity(即IIviDriverIdentity)的方法,但是却出现了错误,这是怎么回事呢??高手们
可以帮我解决一下吗?真的很感谢了~
在一个接口中通过属性访问调用另一个接口,真的需要耗费一定的精力啊!
打开"MyDllTest\Exe\MyDllTest.exe",点击"TEST"调用“m_IRaderPtr->Identity->Description”将会出错,但是如果
调用的是"m_IRaderPtr->Close()",就不会出错的。
源码请看附件:http://pan.baidu.com/s/1ntry4OD
English:
MyDllTest call HwaRader.dll,There IIRader interface HwaRader.dll in,IIviDriver is IIRader's parent class,
I want to call Identity(IIviDriverIdentity) by the way of call the IIviDriver's property,But it was an error,
this is how it happened,Gurus, Can you help me solve it? I really appreciate the ~
In a call to another interface by other interface accessed via the property really takes some effort ah! ~
open"MyDllTest\Exe\MyDllTest.exe", when you Click the "TEST" call “m_IRaderPtr->Identity->Description”will be wrong,
but you call "m_IRaderPtr->Close()" is rigth.
Source See Annex:
http://pan.baidu.com/s/1ntry4OD
please tell me~~~:qsy101@163.com
thanks!