Questions tagged [unmanagedexports]

35 questions
6
votes
1 answer

Using NuGet libraries in an Unmanaged C# .NET library project

I am creating plugins for a software called BIM Vision. They have a wrapper around a C API and thus I am using UnmanagedExports to have my unmanaged DLL compiled fine with the wrapper. Issue is that I cannot use NuGet librairies at all in my…
defvs Daniel
  • 300
  • 3
  • 15
6
votes
1 answer

Returning a string from a C# DLL with Unmanaged Exports to Inno Setup script

I have a C# DLL which exposes a function using Unmanaged Exports which is called directly by an Inno Setup Pascal script. This function needs to return a string to Inno Setup. My question is how can I accomplish this? My preferred method is to pass…
Ohad
  • 166
  • 1
  • 6
5
votes
2 answers

DllExportAppDomainIsolatedTask failed unexpectedly on building a DLL

I am trying to build the Dll in C# in Visual Studio. Used the NuGet RGiesecke.DllExport. However for some reason it returns some error when building the Dll. Bellow is the description. Error The "DllExportAppDomainIsolatedTask" task failed…
5
votes
1 answer

UnmanagedExports equivalent c#.Core2

I'm rather new to C# and been doing a few projects in .Net Framework but been pushed towards the .Core side of things. My question is - I was using UnmanagedExports on a few of my projects to create some library's (Linux / Win) but am unable to get…
5
votes
1 answer

C# Unmanaged Export not working

I am trying to get the Unmanaged Export Basic sample working. The steps I am following: Create a new classlibrary project. Add the UnmanagedExports with nuget. Change CPU target to x86. Add the code from the tutorial I am following to the…
Alfonso_MA
  • 537
  • 5
  • 26
4
votes
2 answers

How can I convert C++ unmanaged DLL to C#

I have unmanaged dll in C++ which is working properly, I try to re-implement it by C# but I get following error: System.ArgumentException: Value does not fall within the expected range at System.StubHelpers.ObjectMarshaler.ConvertToNative(Object…
Peyman
  • 3,068
  • 1
  • 18
  • 32
3
votes
1 answer

Form not displaying in credential provider

I have a function in C# that displays a form. I have exposed the function using Unmanaged Exports and calling it from C++ in credential provider sample on a command link. The form does not display (nothing happens). However, when I call the same C#…
js.hrt
  • 159
  • 2
  • 14
3
votes
1 answer

UnmanagedExports Error "RGiesecke.DllExport.MSBuild.DllExportAppDomainIsolatedTask"

I am having a problem with Visual Studio 2017 compiling a DLL project: I did "Install-Package UnmanagedExports" on Package Manager Console... The error: The "RGiesecke.DllExport.MSBuild.DllExportAppDomainIsolatedTask" task could not be loaded from…
TomQL
  • 31
  • 1
  • 3
2
votes
1 answer

DUMPBIN /EXPORTS: why does it differ between debug and release binaries?

I'm trying to understand how to interpret the output of DUMPBIN /EXPORTS, specifically the Name column: Binary Ordinal Hint RVA Name x86 Debug 1 0 00090B67 ??0ImBitVector@@QAE@$$QAU0@@Z = @ILT+7010(??0ImBitVector@@QAE@$$QAU0@@Z) x64…
aybe
  • 15,516
  • 9
  • 57
  • 105
2
votes
1 answer

Using UnmanagedExports Package [DllExport] to call C# DLL in VBA Triggers "Can't Find DLL Entry Point" Error

I'm using Robert Giesecke's Unmanaged Exports package to access c# dll in Excel VBA. I've followed several examples and continue to get the run-time error 453: "can't find entry point MyDLLFunction in myDllName.dll" I'm on a 64bit machine using…
Amy
  • 165
  • 1
  • 10
2
votes
0 answers

Unmanaged Exports not creating a .lib file

I am trying to create an example of exporting a simple function from a managed C# class library and use it in an unmanaged C++ console application. I'm using Robert Giesecke's Unmanaged Exports for this. (IDE is Visiual Studio 2017) My Code on the…
2
votes
1 answer

UnmanagedExports Function Parameters - Cause VBA 49 Bad DLL Calling Convention

I am unable to get my C# Dll to work with my Excel Macro enable spreadsheet to call the function in the Dll. I am able to call the function if it has no parameters, able to return the expected value. But I cannot get the Dll call from VBA to be…
1
vote
0 answers

What is the difference between UnmanagedExports.Repack and UnmanagedExports.Repack.Upgrade?

So I was looking into how to export an unmanaged .dll from C#, and found lot's of recommendations for Robert Giesecke's UnmanagedExports package. I then installed it to my SDK style project.. and it didn't work. I then learned I should of used…
Red Riding Hood
  • 1,932
  • 1
  • 17
  • 36
1
vote
1 answer

Calling C# DLL http.client.GetAsync(uri) with await causes SEHException

I'm calling c# dll unmanaged methods from a different language. I have callback set so my app gets results thru it when c# dll is done. This causes SEHException on .Invoke: public static async Task> Fetch2(Uri uri) { …
1
vote
1 answer

Return List/Array from unmanaged C# DLL

I have Unmanaged C# DLL: [DllExport(ExportName = "GetStudentsList", CallingConvention = CallingConvention.StdCall)] static public ListGetStudentsList() { return List; } [DllExport(ExportName = "maxElement",…
Usman
  • 43
  • 5
1
2 3