Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Could not load the VC++ DLL while calling from C# wrapper DLL

Could not load the VC++ DLL while calling from C# wrapper DLL

Scheduled Pinned Locked Moved C#
csharpc++help
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dashprasannajit
    wrote on last edited by
    #1

    I created a static MFC DLL in VC++ 8.0 in .NET and created a method and put the export declaration in both header and source file as __declspec(dllexport) for that function.Then .NET i created a wrapper DLL in C# like [DllImport("XCENSettingsManager.dll", EntryPoint = "CreatePatientFolders", CallingConvention = CallingConvention.StdCall)] public static extern int CreatePatientFolders(string pPatientID); XCENSettingsManager.dll is the VC++ DLL.Now i created a windows application in C# and called the method i.e.CreatePatientFolders which is a method in XCENSettingsManager.dll.Now it is giving error saying "Could not able to load XCENSettingsManager.dll or the module is not found.Can any one help me.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups