Adding C functions to COM object

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Rajesh (Rajesh_at_discussions.microsoft.com)
Date: 08/02/04

  • Next message: Rhett Gong [MSFT]: "RE: Unpackaging Packager objects"
    Date: Mon, 2 Aug 2004 00:37:01 -0700
    
    

    I'm trying to convert my console application to a COM object. the console application is a woking one, so i want to make use of it in some other scripting languages. so I created a ATL simple object and added the console application's header and c files to the project . I ve renamed the main fuction and its arguments to a normal fuctions, but ive nt associated the function call yet in the simple object.

    But when ive compiled the project i found some Linker errors

    error LNK2001: unresolved external symbol __MSRCom_ProxyFileInfo
    MSRCom error LNK2019: unresolved external symbol __imp__NdrDllGetClassObject@24 referenced in function _DllGetClassObject@12
    error LNK2019: unresolved external symbol __imp__NdrDllCanUnloadNow@4 referenced in function _DllCanUnloadNow@0
    MSRCom error LNK2019: unresolved external symbol _NdrCStdStubBuffer2_Release@8 referenced in function _CStdStubBuffer2_Release@4
    error LNK2019: unresolved external symbol _NdrCStdStubBuffer_Release@8 referenced in function _CStdStubBuffer_Release@4

    if Ive commited any errors plz specify that and how to solve this linker errors..


  • Next message: Rhett Gong [MSFT]: "RE: Unpackaging Packager objects"

    Relevant Pages

    • Re: iostream + iostream.h
      ... it was less work to rewrite the code than I thought but ... When I ignore msvcprtd.lib I get approx 400 linker errors like the ... NumRecCpp.lib: error LNK2019: unresolved external symbol ... The 'ios::nocreate' flag can just be ignored? ...
      (comp.lang.cpp)
    • error LNK2001: unresolved external symbol __CxxFrameHandler3
      ... get the linker errors below. ... 1>libcpmtd.lib: error LNK2001: unresolved external symbol ... symbol __CxxFrameHandler3 ... /OUT:"Windows Mobile 6 Professional SDK \Debug ...
      (microsoft.public.vc.atl)
    • Re: LNK2001 in Verbindung mit DirectShow
      ... Abhängigkeiten des Samples + Google bemüht diemal hatte ich ja nen konkreten ... I get the following linker errors when compiling a directshow filter? ... LNK2001: unresolved external symbol _IID_ISampleGrabber ...
      (microsoft.public.de.vc)
    • Link errors while building VC6 project using VC++ Toolkit 2003
      ... Now I get some strange linker errors, and I don't know much about linker errors :-( ... PropPageAbout.obj: error LNK2001: unresolved external symbol __RTC_CheckEsp ... Error executing link.exe. ... Release/WinCPUID.exe: fatal error LNK1120: 3 unresolved externals ...
      (microsoft.public.dotnet.languages.vc)