dllimport Questions
7
Solved
Every few months I find myself needing to call Win32 from C#. Though I've done it a dozen times, I've usually forgotten the exact machinations, so I poke around the web or old code and figure out w...
4
I'm attempting to import a c# module into Python using python.NET under Anaconda
This has been installed using pip install pythonnet which reported "Successfully installed pythonnet-2.5.2"...
Romanic asked 16/4, 2021 at 9:12
5
Solved
I have a python script that previously worked but that now throws the error:ImportError: DLL load failed while importing _gdal: The specified module could not be found. I am trying to upload a shap...
12
Solved
In fact, I got a C++ (working) DLL that I want to import into my C# project to call it's functions.
It does work when I specify the full path to the DLL, like this :
string str = "C:\\Users\\user...
5
An import error occurs when trying to run jupyter notebook
I'm trying to run jupyter notebook using anaconda (git bash platform), and as I type in jupyter notebook, an import error occurs every ti...
Chantalchantalle asked 16/1, 2019 at 20:35
30
Solved
I have installed PyQt5 on windows platform and and getting an importError: DLL load failed.
I have installed pyqt5 using the command
pip3 install pyqt5
Successfully installed pyqt5-5.8.1
My P...
Group asked 17/3, 2017 at 17:14
1
Trying to find any currently active timers that are still pending that may cause the computer to wake-up. When the timer is created, a name is specified. A list of all named timers would be ideal, ...
10
Solved
Here is the situation, I'm using a C based dll in my dot.net application. There are 2 dlls, one is 32bit called MyDll32.dll and the other is a 64bit version called MyDll64.dll.
There is a static v...
Baseman asked 1/6, 2012 at 14:56
4
Solved
Is there a way to specify the paths to be searched for a given assembly that is imported with DllImport?
[DllImport("MyDll.dll")]
static extern void Func();
This will search for the dll in the a...
3
I am trying to load a library(say ArithmeticOprn.dylib) dynamically and call the methods presented within that library. Please refer to the sample code snippet from below,
[DllImport("libdl.dylib"...
12
I have a DLL (FreeType) which is certainly 32-bit (header: IMAGE_FILE_MACHINE_I386).
I want to use it from C# code, using DllImport.
Target of my application is x86, IntPtr.Size is 4, process is ...
Calyptrogen asked 28/4, 2010 at 10:20
3
I have the following code:
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void PanicFuncDelegate(string str, IntPtr args);
private void PanicFunc(string str, IntPtr args)
{
...
10
Solved
I have a dll which comes from a third party, which was written in C++.
Here is some information that comes from the dll documentation:
//start documentation
RECO_DATA{
wchar_t Surname[200];
wchar...
4
Solved
We are writing a code to do on-demand scan of a file from C# using Windows Defender APIs.
[DllImport(@"C:\Program Files\Windows Defender\MpClient.dll")]
public static extern int WDStatus(out boo...
Crescentic asked 30/11, 2016 at 12:51
0
I have written a small program that generates a system tray icon that can play radio streams from a handfull of stations. It is running well for a year now and I tried to update the code and also t...
Son asked 1/2, 2022 at 7:50
2
Build OS: Windows 10, Cmake 3.16.3.
I use target_link_libraries to link 3rd party .lib file to my .dll library.
But when I use GET_RUNTIME_DEPENDENCIES to install my dll, there is no dependency...
4
Solved
I have an existing app which P/Invokes to a DLL residing in the same directory as the app itself.
Now (due to the fact that Canon produces one of the crappiest API's around) I need to support two ...
1
Solved
I have asked this questions today, but it was falsely closed and I have no option to re-open it. Therefore, I have to ask it again.
I have a class that has a long list of definitions like these:
[D...
Pendley asked 13/11, 2021 at 21:57
3
System specifications:
Python==3.8.5
tensorflow==2.3.1
I am trying to import tensorflow... but I am getting import error. Please help me rectify the problem. I tried following...
pip uninstall te...
Burkhart asked 21/11, 2020 at 14:19
1
I am trying to auto update Cython .so modules that my python program uses on the fly. After I download the new module and del module and import module Python seems to still be importing the older v...
Apanage asked 25/1, 2020 at 3:37
2
Solved
In a project using a server.dll and a client.exe, I have dllexported a server symbol from the server dll, and not dllimported it into the client exe.
Still, the application links, and starts, with...
Bobbyebobbysocks asked 20/12, 2010 at 12:3
3
Solved
This is basically the same question as [SO]: C2491: 'std::numpunct<_Elem>::id' : definition of dllimport static data member not allowed [closed], but considering the following facts:
That (on ...
Stria asked 10/2, 2018 at 1:8
2
I want to define a derived class based on a dll exported class. The base class is defined in Project A, and the derived class is in Project B.
Firstly, in Project A, preprocessor MYDLL_BUILD is d...
Adamo asked 17/3, 2012 at 4:19
2
Solved
I found a lot of questions about it, but no one explains how I can use this.
I have this:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
...
1
Solved
I just encountered with strange behaviour of DllImport in C#, which I can't explain. I want to know how It is possible and where I can read about It. Case is that via DllImport one can call functio...
Chloroform asked 12/3, 2021 at 8:22
1 Next >
© 2022 - 2024 — McMap. All rights reserved.