0
virtual void DeleteItem(_bstr_t ItemName) = 0
錯誤:
error C2061: syntax error : identifier '_bstr_t'
我想谷歌在線和使用的#include但它不排除錯誤
任何用其他方式解決這個問題?
virtual void DeleteItem(_bstr_t ItemName) = 0
錯誤:
error C2061: syntax error : identifier '_bstr_t'
我想谷歌在線和使用的#include但它不排除錯誤
任何用其他方式解決這個問題?
將#include <comdef.h>
(其中_bstr_t
包含的定義)添加到包含文件中,例如stdafx.h
。
你的#包括什麼? –
[本頁](https://msdn.microsoft.com/en-us/library/zthfhkd6.aspx)說你應該'#include' - 如果這不適合你,請嘗試'cl/E'來看看預處理器輸出,並查看是否可以看到'_bstr_t'定義或一些繞過它的'#ifdef'分支。 –