📄 subject_34620.htm
字号:
<p>
序号:34620 发表者:刘畅 发表日期:2003-03-31 20:53:55
<br>主题:这是什么错误呀,请高手指点!!!
<br>内容:--------------------Configuration: Bank - Win32 Debug--------------------<BR>Compiling...<BR>Bank.cpp<BR>c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : error C2259: 'CComObject<class CMoveMoney>' : cannot instantiate abstract class due to following members:<BR> c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator<class ATL::CComObject<class CMoveMoney> >::CreateInstance(void *,const struct _GUID &,<BR>void ** )'<BR>c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : warning C4259: 'long __stdcall IMoveMoney::Perform(long,long,unsigned short ** )' : pure virtual function was not defined<BR> d:\com与com+实践和提高\thirteenth\bank\bank.h(254) : see declaration of 'Perform'<BR> c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator<class ATL::CComObject<class CMoveMoney> >::CreateInstance(void *,const struct _GUID &,<BR>void ** )'<BR>c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : error C2259: 'CComObject<class CMoveMoney>' : cannot instantiate abstract class due to following members:<BR> c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator<class ATL::CComObject<class CMoveMoney> >::CreateInstance(void *,const struct _GUID &,<BR>void ** )'<BR>c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : warning C4259: 'long __stdcall IMoveMoney::Perform(long,long,unsigned short ** )' : pure virtual function was not defined<BR> d:\com与com+实践和提高\thirteenth\bank\bank.h(254) : see declaration of 'Perform'<BR> c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator<class ATL::CComObject<class CMoveMoney> >::CreateInstance(void *,const struct _GUID &,<BR>void ** )'<BR>MoveMoney.cpp<BR>D:\COM与COM+实践和提高\thirteenth\Bank\MoveMoney.cpp(43) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX<BR>Generating Code...<BR>Error executing cl.exe.<BR><BR>Bank.dll - 2 error(s), 3 warning(s)<BR><BR>这里有原程序!请大家帮忙!!!
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:ray111 回复日期:2003-04-01 15:38:21
<br>内容:can you attach your simplified project up? I would like to have a debug. thank you! ray
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -