CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old July 22nd, 2005, 01:47 PM
    rpsathe rpsathe is offline
    Junior Member
     
    Join Date: Jul 2005
    Posts: 1
    rpsathe is an unknown quantity at this point (<10)
    Unhappy Calling unmanaged dll class functions from managed dll

    I am trying to create a managed dll in managed C++. I am trying to call a class method that is exported by a dll written in unmanaged way.

    I am able to declare an object of the class, but when I call a method, I get following errors.

    DotNet error LNK2001: unresolved external symbol __load_config_used
    DotNet error LNK2019: unresolved external symbol ___CxxFrameHandler referenced in function __ehhandler$?GetProcessorCount@HTCPUIDNative@@SAHXZ
    DotNet error LNK2019: unresolved external symbol __except_list referenced in function "public: static int __cdecl HTCPUIDNative::GetProcessorCount(void)" (?GetProcessorCount@HTCPUIDNative@@SAHXZ)
    DotNet fatal error LNK1120: 3 unresolved externals

    Any ideas ? I can share the exact code. HTCPUIDNative is an unmanaged class in managed DLL that is trying to call an unmanaged stuff.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 07:56 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009