A simple question
- From: paulwragg2323@xxxxxxxxxxx
- Date: 1 Dec 2006 06:39:01 -0800
Hi,
I have never had any experience of using COM objects but this is the
situation I am currently in:
!) I have received from a 3rd party a DLL that contains a COM object. I
have installed using RegSvr32. The 3rd party did not include any
additional files with the DLL (e.g. a .lib file).
2) I am then using some sample code that they sent us and after a
little re-jiggin this all compiles fine.
3) When I attempt to build the application I get an unresolved symbol
error, referencing the QueryInterface function of the COM object.
I have spent the last couple of days reading up on how COM objects are
created, then how they are referenced and actually used etc.
However, this has not really helped me to be perfectly honest. Now I am
beginning to wonder if the 3rd party has actually provided everything I
fully need.
Note: I have used the #import directive in order to be able to
reference things in the DLL and as I say everything compiles fine, just
it does not build.
Can anybody please tell me anything about this and where I could be
going wrong? Or is it down to the 3rd party to supply me with a .lib
file as well? I believe this could be difficult to obtain from them so
if this is required is there any way I can generate this/work around it
myself?
I will happily provide some of the code if this is deemed neccessary
but I am fairly certain I am doing everything correctly as far as the
code itself is concered.
Thanks in advance,
Paul
.
- Follow-Ups:
- Re: A simple question
- From: Igor Tandetnik
- Re: A simple question
- Prev by Date: Re: How to add a new interface to ATL project
- Next by Date: Re: Error in DispEventAdvise
- Previous by thread: Re: Avoid lazy instantiation for singletons?
- Next by thread: Re: A simple question
- Index(es):
Relevant Pages
|