I created an object that has a pointer to a com object as a datamember. I tried using CoInitializeEx() in the objects constructor and in the new thread where the object is instantiated.
It says it's an undeclared identifier or some such nonsense and flags everywhere I try to use it.
In another file in the same project though I've used the same object and it works fine. So it isn't a matter of having included the dlls wrong or having the wrong defines in stdafx.h
I have no experience with COM so I don't know what the problem might be. Maybe you guys have something for me to try?