Top "Dllimport" questions

Use this tag for questions about importing functions, data or objects from DLLs (Dynamic-link libraries).

How to use [DllImport("")] in C#?

I found a lot of questions about it, but no one explains how I can use this. I have this: …

c# process dllimport
How can I specify a [DllImport] path at runtime?

In fact, I got a C++ (working) DLL that I want to import into my C# project to call it's …

c# c++ dll constants dllimport
Is there any native DLL export functions viewer?

Is there any free native Windows DLL export functions viewer, which shows the function name, and a list of their …

dll function native dllimport
How to use <DllImport> in VB.NET?

How should I DLLImport things in VB.NET? An example would be: <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.…

vb.net dllimport
Calling functions in a DLL from C++

I have a solution in VS 2008 with 2 projects in it. One is a DLL written in C++ and the other …

c++ visual-studio-2008 dll dllimport
Call function from DLL?

I'm new to C# and I'm trying to learn to usage of DLLs. I'm trying to wrap my objects in …

c# dll interop call dllimport
Read a Registry Key

I have a web application which is importing DLLs from the bin folder. const string dllpath = "Utility.dll"; [DllImport(dllpath)] …

c# asp.net visual-studio registry dllimport
BadImageFormatException when loading 32 bit DLL, target is x86

I have a DLL (FreeType) which is certainly 32-bit (header: IMAGE_FILE_MACHINE_I386). I want to use it from …

c# dll dllimport 32bit-64bit badimageformatexception
"Unable to find an entry point named [function] in dll" (c++ to c# type conversion)

I have a dll which comes from a third party, which was written in C++. Here is some information that …

c# c++ dll dllimport extern
Embedding unmanaged dll into a managed C# dll

I have a managed C# dll that uses an unmanaged C++ dll using DLLImport. All is working great. However, I …

c# unmanaged dllimport managed