Subj : Component Object Model To : borland.public.cpp.borlandcpp From : Scott Wilson Date : Mon Sep 12 2005 12:48 pm Hi, I am trying to use COM to create an object from a DLL. To do this I have added the following code: #define COM_NO_WINDOWS_H #include and then included the header file for the DLL: #include "c:\source\wClientDLL\wClient.h" I then tried to create a pointer to the object I want to create (I think) CComPtr m_iwClient; but the compiler gives me some errors: Error: E2303 Type name expected Error: E2139 Decleration mission ; I have noticed that this seems to work in some of the included cpp files that come with the borland command-line tools (dxhelp3.cpp being an example), but doesn't seem to work for me. I can't really seem to find any documentation for borland tools for this (they all seem to use MS VC++), so any help would be appreciated. Cheers, Scott .