user1157977
user1157977

Reputation: 917

error C2061: syntax error : identifier '_bstr_t'

Code:

     virtual void DeleteItem(_bstr_t ItemName) = 0

Error:

      error C2061: syntax error : identifier '_bstr_t'

i tried google online and use #include but it doesnt remove the error

any other way to resolve this?

Upvotes: 0

Views: 1184

Answers (1)

lulyon
lulyon

Reputation: 7265

Add #include <comdef.h>(where _bstr_t definition included) to your include file, for example stdafx.h.

Upvotes: 0

Related Questions