Top "Dllimport" questions

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

FindWindowEx from user32.dll is returning a handle of Zero and error code of 127 using dllimport

I need to handle another windows application programatically, searching google I found a sample which handles windows calculator using DLLImport …

c# winapi pinvoke dllimport findwindow
Using a 32bit or 64bit dll in C# DllImport

Here is the situation, I'm using a C based dll in my dot.net application. There are 2 dlls, one is 32…

c# .net pinvoke 32bit-64bit dllimport
Linking error LNK2019 in MSVC, unresolved symbols with __imp__ prefix, but should be from static lib

I'm running into linking problems in MSVC for a project that I wrote for g++. Here's the problem: I build …

visual-c++ cmake dllimport lnk2019 imp
DLL load failed when importing PyQt5

I have installed PyQt5 on windows platform and and getting an importError: DLL load failed. I have installed pyqt5 using …

python python-3.x dllimport pyqt5 importerror
PInvokeStackImbalance C# call to unmanaged C++ function

After switching to VS2010, the managed debug assistant is displaying an error about an unbalanced stack from a call to …

c# c++ visual-studio-2010 pinvoke dllimport
unresolved external symbol for __declspec(dllimport) when using dll to export class

I want to define a derived class based on a dll exported class. The base class is defined in Project …

c++ visual-c++ inline dllimport dllexport
DllImport or LoadLibrary for best performance

I have external .DLL file with fast assembler code inside. What is the best way to call functions in this .…

c# dllimport loadlibrary
Docking Window inside another Window

I have a winform application (.NET 2.0 C#). From this application, I want to start another process (another winform application) and …

c# winforms .net-2.0 dllimport docking
Specify the search path for DllImport in .NET

Is there a way to specify the paths to be searched for a given assembly that is imported with DllImport? […

.net dllimport
How to pass strings from C# to C++ (and from C++ to C#) using DLLImport?

I've been trying to send a string to/from C# to/from C++ for a long time but didn't manage …

c# c++ string dllimport