dllimport Questions
2
Solved
I have a project developed with .NET Core and C#, running on Docker, that has to call a few functions on a DLL developed with C++.
The problem is: when I run my project without Docker, on Windows u...
7
Solved
A .NET application calls C dll. The C code allocates memory for a char array and returns this array as result. The .NET applications gets this result as a string.
The C code:
extern "C" __declspe...
Impatience asked 19/12, 2009 at 8:33
5
I have external .DLL file with fast assembler code inside. What is the best way to call functions in this .DLL file to get best performance?
Gaylene asked 13/5, 2013 at 9:37
5
Solved
how to load a dll in a c# project
error:
Unable to load DLL 'Reader.dll': The specified module could not be
found. (Exception from HRESULT: 0x8007007E)
code sample:
[DllImport("Reader.dll")...
5
Solved
Since OSVersion is now not reliable since Windows 10 has been released (this function reports Windows 8 for Windows 10), I'm attempting to use the new Version Helper API functions in my C# applicat...
3
Solved
Assuming I have these two files:
Header.h
class DLL ExportClass{
public:
ExportClass();
static int test;
};
Source.cpp
#ifdef EXPORT
#define DLL __declspec(dllexport)
#else
#define DLL __d...
Febrifugal asked 12/11, 2013 at 10:32
7
Solved
I have a solution in VS 2008 with 2 projects in it. One is a DLL written in C++ and the other is a simple C++ console application created from a blank project. I would like know how to call the fun...
Piceous asked 11/2, 2009 at 23:34
1
Solved
I'm experimenting with Rust on Windows. My code declares and calls a function in an external library.
The declaration is like this:
#[link(name = "Rvea0326nc-64")]
extern "C" {
...
4
Solved
I have a method I want to import from a DLL and it has a signature of:
BOOL GetDriveLetter(OUT char* DriveLetter)
I've tried
[DllImport("mydll.dll")]
public static extern bool GetDriveLetter(...
Eduino asked 2/4, 2010 at 18:35
2
Solved
In a .NET Core application, I'm getting this error when I try to run my unit test project:
System.DllNotFoundException: Unable to load DLL 'opencv_core246' or one of its dependencies: The specifie...
5
Solved
1
Solved
Hi I have a C# WinForm app, I am able to call functions from the libnetclient.dll via DllImport like below:
[DllImport("libnetclient.dll", CharSet = CharSet.Auto)]
public static extern int NETCLIE...
2
Solved
I'm running a socket server on my server and I woke up to messages about its inaccessibility. It turns out that before I went to bed, I had selected text in the window. I forgot to hit Enter to res...
3
Solved
I've created an DLL for my Console Application in Visual Studio.
In my DLL I have a Class named Dialog_MainMenu with has a *.cpp file and a *.h file.
Following error message:
Error 9 error LNK2...
Carabin asked 27/7, 2013 at 20:4
5
Solved
How do I unload a DLL which has been loaded using DllImport in C#?
1
I downloaded the "smilenet-1.2.1-win64-academic" library from this page and imported the smileNET.dll in my Unity project. Then I restarted my visual studio, and when I tried to use the library, it...
Pertain asked 27/2, 2019 at 5:31
12
Solved
EDIT (the whole question, it was too unclear)
I want to use OpenSSL.NET
The OpenSSL.NET install instructions page: INSTALL
Make sure you have libeay32.dll and ssleay32.dll in the current worki...
Blackstone asked 8/9, 2009 at 20:26
0
I made a class library (.net framework) project in C# and I want to use that DLL on my C++ client project.
I've checked on MSDN and online for instructions on how to I made it. So I could see C# c...
Lumpy asked 30/10, 2018 at 5:55
1
Solved
Today, working on some VB.NET code I had to access two external DLLs in order to use some methods. The help topics that I found told me to use the following external methods:
shlwapi.dll → PathIs...
1
Solved
I have ActiveX VB6 DLL (have no access to its sources), and want to call method 'GetUnitInfo'
I use to import it like:
[DllImport(@"C:\Users\R\Documents\lab.dll")]
public static extern long GetUn...
1
Solved
I've tried placing the basic dll's into unity's assets folder - Result: "blah blah will cause Unity to Crash Error."
I've tried Manually adding references - Result: Unity refreshes its references ...
Deafening asked 28/8, 2018 at 5:49
3
Solved
I am getting this weird error while trying to marshal data to my DLL function and back to the C# code. I don't see where I am passing null or reading invalid memory and this error is so vague. Any ...
Lanna asked 27/2, 2010 at 1:57
2
Solved
I am working with unity for an iOS game. For unlocking achievement I need to access a "Achievement.mm" file from my c# code:
[DllImport("__Internal")]
private static extern void
GKAchievement(s...
Corrientes asked 26/7, 2016 at 8:8
5
Solved
How should I DLLImport things in VB.NET? An example would be:
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function GetWindowText(ByVal hwnd As IntPt...
3
Solved
Okay one more function that it's not yet working. I am basically calling some C++ functions from C# by using P/Invoke. The problematic function does query a show laser device for some device relate...
© 2022 - 2024 — McMap. All rights reserved.