dllimport Questions

2

Solved

I have a third party "mystery dll" written with Delphi(unknown version), working example in delphi (past 2009), dire need to use said dll in my C# code, and almost no relevant knowledge on how to d...
Interlocution asked 5/7, 2016 at 17:4

1

Solved

I was re-reading through some .Net documentation today when I noticed that the first portion of the extern keywords documentation claims: The extern modifier is used to declare a method that is ...
Hine asked 24/6, 2016 at 13:49

3

I need to pass an argument to an unsafe DllImported function in the form of: [DllImport("third_party.dll")] private static extern unsafe int start(int argc, char** argv); I'm assuming it's...
Banter asked 9/6, 2016 at 18:11

4

Solved

I've seen a couple of examples such as this: [DllImport("user32.dll")] static extern bool TranslateMessage([In] ref Message lpMsg); [DllImport("user32.dll")] static extern IntPtr DispatchMessage(...
Thickknee asked 23/7, 2010 at 20:6

1

My C++ DLL (called from C# application) works fine with Debug version (main C# app in Debug ) but release version(main C# app in Release) gives The specified procedure could not be found. (Exceptio...
Chevaldefrise asked 28/4, 2016 at 15:45

6

Solved

Hopefully this is a brainlessly easy question, but it shows my lack of expertise with C++. I'm a C# programmer, and I've done extensive work with P/Invoke in the past with other people's C++/C dlls...
Akkadian asked 7/10, 2009 at 20:15

2

I'm primarily an PHP developer, but I have some old ASP one of our previous developers made that broke and I can't figure out how to fix it. We have a program that sends some variables to a listene...
Lei asked 19/2, 2016 at 18:3

2

Solved

I have read almost every example I could find via google, and couldn't accomplish the simplest task creating a dll (windows) from nim Could anyone explain it step by step? I am using the nim IDE...
Actinism asked 26/10, 2015 at 14:27

4

Solved

I got a C++ dll which has to be integrated in a C# project. I think I found the correct way to do it, but calling the dll gives me this error: System.BadImageFormatException: An attempt was made t...
Mymya asked 8/6, 2010 at 7:41

2

Solved

I want integrate a header .h or .dll file in CAPL (concretly Visa32.dll, visa.h or sicl.h) to control a multimeter 34461A. How can I include the .h files or .dll file in CANoe? I created an ECU mo...
Roby asked 26/10, 2015 at 8:11

3

Solved

I know that with C++ one can create DLL files that contain certain functions, which can then be imported into Excel (e.g. via VBA). Let us take the following C++ function double __stdcall square_...
Langlauf asked 14/9, 2015 at 19:3

5

After switching to VS2010, the managed debug assistant is displaying an error about an unbalanced stack from a call to an unmanaged C++ function from a C# application. The usuals suspects don't see...
Eutectoid asked 5/3, 2010 at 22:33

3

Solved

I have a .NET 3.5 executable, compiled with 'Any CPU' and when I attempt to run it on Windows Server 2008 x64 R2 - It gives me: Faulting application name: mcb.exe, version: 0.1.0.8, time stamp: 0x...
Neumeyer asked 27/6, 2011 at 20:40

2

I desperatly need your help. Im trying to compile statically the poppler library (specially for qt4) on windows with the visual c++ 2008 compiler. To achieve this task I needed to compile a bunch ...
Delegation asked 30/1, 2011 at 7:29

1

I have a several-thousand-line application that relies on SIGFPE (handled by a function pointer passed to signal()) to change state and have the code run correctly when certain floating point condi...
Claypan asked 26/7, 2010 at 20:1

1

Solved

I'm invoking an unmanaged function in my C# code. The declaration of this function is as follow: int myFun(unsigned char* inputBuffer, unsigned char* &outputBuffer); I use this function as...
Grillparzer asked 6/6, 2015 at 7:29

3

Solved

Many methods in the .Net library are implemented in native code. Those that come from the framework itself are marked with [MethodImpl(MethodImplOptions.InternalCall)]. Those that come from some un...
Lave asked 28/2, 2012 at 23:18

1

Solved

I have dll imported. All the other parts work, but the string return value of imported method gives this: Unhandled exception at 0x7748EA5F (ntdll.dll) in ***.exe: 0xC0000374: A heap has been co...
Accouchement asked 20/5, 2015 at 12:11

2

Solved

I am able to get a list of exported function names and pointers from an executable in windows by using using the PIMAGE_DOS_HEADER API (example). What is the equivalent API for Linux? For context...
Highlight asked 27/4, 2015 at 18:12

1

Solved

I have some code var aa = a(); b(aa); While debugging, I set a breakpoint on the b() call. Then going to the immediate window, I'd like to be able to execute code from a DLL that is in my proje...
Elnaelnar asked 23/4, 2015 at 20:58

2

Solved

I'm using global hooks from user32.dll with dllimport in C#. Keyboard one works fine, but the mouse wheel events are a problem. This is my mouse event callback: private IntPtr MouseInputCallback(...
Fournier asked 17/2, 2012 at 14:42

4

Solved

I notice in the MSDN documentation that there are multiple ways to declare a reference to a function in an external DLL from within a VB.NET program. The confusing thing is that MSDN claims that ...
Consciousness asked 1/6, 2009 at 22:11

1

Solved

I have a third party dll that contains a template class with several specializations. I have my own specialization on Linux, trying to compile a windows dll however results in linker errors. I tri...
Wanderlust asked 23/11, 2014 at 16:1

2

Solved

I'm trying to find a way to add code to swig generated functions. I have used typemaps to extend classes, but can't find anything in the documentation about extending specific functions. Given the...
Isaac asked 17/11, 2014 at 16:4

1

I need to check what window the user currently has selected, and do stuff if they have a specific program selected. I haven't used the GetForegroundWindow function before, and can't find any info...
Interpellant asked 29/8, 2014 at 15:9

© 2022 - 2024 — McMap. All rights reserved.