Could not load the VC++ DLL while calling from C# wrapper DLL
C#
1
Posts
1
Posters
0
Views
1
Watching
-
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.