ReleaseCOM identifier not found

Started by
1 comment, last by noatom 11 years, 1 month ago

So,I'm trying to use ReleaseCOM in my code.I included the library folders and used these:

#pragma comment(lib,"d3d9.lib")
#pragma comment(lib,"d3dx9d.lib")
#pragma comment(lib,"dxguid.lib")
#pragma comment(lib,"DxErr.lib")
#pragma comment(lib,"dinput8.lib")
however,the same error appears,what could be wrong?
Advertisement
First off, when you get an error, post what the error is. Secondly, ReleaseCOM() isn't a standard DirectX or COM function. You're probably following a book that uses it as a helper function, but it's not necessary. Just use Release() on the pointers you want to release.

you were right,it was a helper function.Thanks

This topic is closed to new replies.

Advertisement