A simple question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

.



Relevant Pages

  • Re: huge array
    ... into your exe - then you don't have to ship IL. ... simply compiles the il on the target machine at install and stores the native ... There are 3rd party native code compilers however - and with the ... it is possible (using 3rd party apps) to ship without your exe ...
    (microsoft.public.vb.general.discussion)
  • Re: Problem using CString with MFC and ATL
    ... can you get the 3rd party vendor to give you a version which does ... take LPCTSTR? ... > Basically CString is part of MFC, so I built a DLL with an stl ... > __cdecl MyFunction(class CString)" ...
    (microsoft.public.vc.mfc)
  • Re: Calling .NET COM object from MFC application
    ... is only a wrapper on the actual DLL. ... Check the registery for HKEY_CLASSES_ROOT\ThirdPartyServer..., ... use C# COM, to call this third party COM, if I new how to expose it to ... This third party didn't provide any ...
    (microsoft.public.vc.mfc)
  • Re: Loading DLLs from different path - Solved - but is there better way?
    ... All we want to do is basically have a DLL loaded by a 3rd party exe, programmatically figure out where its dependent dlls are located. ... I added a call to the DllMainDLL_PROCESS_ATTACH load event to a function that sets the process PATH environment string with the server location read from the registry: ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Using Open, Close , Lock, Unlock, etc. as dll method names
    ... I can develop and test the dll and then just drop it in place of the ... The problem is that the original component ... Start a new ActiveX DLL project, add the 3rd party DLL as a reference, then ... use Implements keyword for each object in separate class files. ...
    (microsoft.public.vb.general.discussion)