Original Post
I'm learning DirectPlay. In the first tutorial, COM is initialized by calling
CoInitializeEx(NULL, COINIT_MULTITHREADED);In my (console) app I get an undeclared identifier on this function call. (Both the function and COINIT_MULTITHREADED are undeclared identifiers). I included every header file that tutorial 1 includes, except for its resource.h. WTF??? I looked through the help, and I can't find anything that says what header files I need to include for this function or for COM functions in general. The VC++7 help had a link to the MSDN page for this function, which was, of course, unavailable ATM or some shit. I used the function CoInitialize in an app that used DirectShow. I didn't have to include any header files specifically for COM there. It's 1:00 AM. Maybe this is the start to a very bad day. EDIT: I found out that the function prototype for CoInitializeEx is in objbase.h, but including that didn't do anything. [edited by - amish1234 on October 12, 2003 4:11:14 AM] [edited by - amish1234 on October 12, 2003 4:15:16 AM]