dllimport Questions

1

Solved

I have been using jpype to integrate with some java code using python lately and have been having no real issues. I am now attempting to set up my stack on a new system and am running into difficul...
Ultracentrifuge asked 8/5, 2018 at 5:35

3

I am using Visual Studio 2012 to build a WPF program. There is a DLL compiled from C that I use DllImport to call. The Dll is added in the project and marked as Build Action: Content Copy to Out...
Kilohertz asked 11/1, 2016 at 7:57

1

Solved

I am trying to call some functions from a C++ DLL file in my C# program. But I got stuck when it comes to pointers. Could somebody point me to the right direction? Here's the C++ header file with ...
Demott asked 30/4, 2018 at 15:16

3

Solved

My C#/SQLite was working fine until I decided to update the SQLite DLLs (from 1.0.82.0 to 1.0.84.0). Now I get this crash: Unable to find an entry point named 'sqlite3_changes_interop' in DLL 'S...
Mavilia asked 18/1, 2013 at 10:14

1

Solved

I am attempting to use the AmsiScanBuffer function of the Windows Anti-Malware Service Interface from managed code, specifically C#. When attempting to call the method the program hangs on the call...
Bechance asked 12/1, 2018 at 18:9

9

Solved

I am using DllImport in my solution. My problem is that I have two versions of the same DLL one built for 32 bit and another for 64 bit. They both expose the same functions with identical names an...
Nicollenicolson asked 23/8, 2009 at 23:21

2

Solved

Here is my code: using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; using System; using System.IO; public class CarMove : MonoBeh...
Overage asked 12/10, 2017 at 10:24

2

Solved

I'm trying to export a global variable from a DLL. Foo.h class Foo { public: Foo() {} }; #ifdef PROJECT_EXPORTS #define API __declspec(dllexport) #else #define API __declspec(dllimport) #end...
Anarchist asked 22/6, 2010 at 22:16

5

I have a managed C# dll that uses an unmanaged C++ dll using DLLImport. All is working great. However, I want to embed that unmanaged DLL inside my managed DLL as explain by Microsoft there: http:...
Lavish asked 20/3, 2009 at 16:2

1

Solved

I created a C DLL out of my C++ class which uses OpenCV for image manipulations and want to use this DLL in my C# application. Currently, this is how I have implemented it: #ifdef CDLL2_EXPORTS #d...
Rostand asked 17/8, 2017 at 15:4

3

Solved

I have a problem with make a dll on Visual Studio 2013. This code works on Code::Blocks. The error was definition of dllimport function not allowed" on line void DLL_EXPORT prim(map<string, vect...
Alti asked 7/6, 2016 at 7:46

1

Solved

I want to build a DLL version of libjpeg 9b. According to the document here, it seems that we need to add a preprocessor __declspec(dllexport) or __declspec(dllimport) before the declaration of eac...
Moat asked 9/6, 2017 at 6:32

2

Solved

I create a DLL (say CORE.DLL) ,I have classes/functions declared as follows: #ifdef RINZOCORE_SHARED #define RINZO_LIB __declspec(dllexport) #else #define RINZO_LIB __declspec(dllimport) #endif ...
Leicester asked 16/1, 2012 at 6:1

4

Solved

I'm running into linking problems in MSVC for a project that I wrote for g++. Here's the problem: I build libssh as a static library as part of my application, adding the target in cmake with add...
Lovage asked 13/9, 2010 at 20:59

5

Solved

I have a web application which is importing DLLs from the bin folder. const string dllpath = "Utility.dll"; [DllImport(dllpath)] Now what I want to do is first import the DLLs from a folder no...
Jeanejeanelle asked 4/11, 2009 at 18:53

3

Solved

I'm writing a little C# app that calls a few functions in a C++ API. I have the C++ code building into a DLL, and the C# code calls the API using DllImport. (I am using a .DEF file for the C++ DLL ...
Jabalpur asked 24/11, 2009 at 20:4

1

Solved

Say you have following C++ code: extern "C" { void testA(int a, float b) { } static void testB(int a, float b){ } } I want to access this in my C# project using DllImport: class PlatformIn...
Triphylite asked 23/2, 2017 at 8:58

4

I use [Dllimport("DllName.dll")] where I'm sure a path to my dll exists in the process PATH environment variable, and still I get "DllName.dll could not be found"
Agace asked 16/11, 2008 at 16:43

2

Using C# and .Net 4.0 in a winforms application: Is it possible to add the UAC shield to a button and retain the buttons background image? How? This is what I'm using at the moment, but it removes...
Livraison asked 7/12, 2012 at 7:4

4

Solved

In an application I am using an onscreen keyboard(OSK) for when it is running on a tablet. We've made a class called OSK which has a show and hide method. When the user presses 'enter' on the onsc...
Squamous asked 5/7, 2013 at 8:36

1

Solved

My goal is to fill in Dll's import table manually in order to hook internal LoadLibrary calls (when you load library it may load another library inside its DllMain). Here is my code which fill in ...
Dystopia asked 15/11, 2016 at 9:41

3

I have to use a third party DLL in my application. The DLL is a 32-bit and the system I am using is 64-bit OS. I have Imported the 32-bit DLL in my DotNet application (framework-4.5) as below [...
Magnification asked 14/5, 2013 at 9:21

0

I am creating windows app. which is targeting windows 10 platform and it is Universal Windows App and I am using https://github.com/phatware/WritePadSDK for creating writing lad in windows app. Now...
Role asked 26/8, 2016 at 8:20

1

Solved

I want to use MuJoCo (http://www.mujoco.org/), an advanced physics simulator with python bindings (https://github.com/openai/mujoco-py). I've got my MuJoCo license file mjkey.text and added the re...
Incommodious asked 4/8, 2016 at 11:36

5

Solved

I have created a C++ Dll project which contains a class "myCppClass" and tried to Dll export it using the following code as described by: http://msdn.microsoft.com/en-us/library/a90k134d(v=vs.80).a...
Galyak asked 19/1, 2011 at 21:34

© 2022 - 2024 — McMap. All rights reserved.