Subj : Re: Component Object Model To : borland.public.cpp.borlandcpp From : Mohsen Date : Wed Sep 14 2005 03:01 pm "Scott Wilson" wrote: >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 > It's a good idea to give some brief information concerning the object you want to create. Whether it is an OCX, Type Library or a DLL. Mohsen .