dll

Passing arrays to NASM DLL, pointer value gets reset to zero

孤街醉人 提交于 2020-01-06 05:16:11
问题 I am passing three arrays of doubles from Python (3.6.2) into a DLL written in 64-bit NASM (Windows) using CTypes. The pointers to the arrays are in rcx, rdx, r8 and r9. On entry, I extract the pointers into three separate arrays, called a_in_data, b_in_data, and c_in_data. The elements of those arrays are (1) pointer (2) data type and (3) length. In the area preceded by "Test #1" in the code below we check the value at b_in_data[0] and we get a valid pointer (just remove the comment symbols

My vb.net code can not Call my VB6 DLL when deployed

我们两清 提交于 2020-01-06 05:07:13
问题 I have some code that creates a reference to a vb6 dll and Uses that reference to call the object. I am having a problem because in Debug and on my machine it works great. But when i deploy it to the server which is a windows 2008 64 Server it doesn't work. I get this error: "Retrieving the COM class factory for component with CLSID {C259F578-EC04-4C0F-A13B-AA440F13CB73} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

A .NET exception (TypeLoadException) occured in the module

人盡茶涼 提交于 2020-01-06 05:00:16
问题 I have a Visual studio project with lots of commercial DLL files that I use in my program. I have used many of these DLL files so far without any problem. Yesterday I had to use a yet another DLL file. I linked the DLL file as a referense (as usual), I can see it is added to the project since code-completion works and I could build the project successfully. But when I run this on the target PC, I get a TypeLoadException. A .NET exception (TypeLoadException) occured in the module I tried to

python37.dll not linked in executable

不打扰是莪最后的温柔 提交于 2020-01-06 04:56:07
问题 I extended c++ with python but the exectuable won't run on systems that do not have python installed. #include "C:\.....python.h" int main() { Py_Initialize(); PyRun_SimpleString("print("hello world")\n") Py_Finalize(); return 0; } When I run on a windows system without python installed I receive the following error: The code execution cannot proceed because python37.dll was not found. Reinstalling the program may fix the problem. How do I link python37.dll to the executable. 回答1: A DLL is by

Using VST.net with Unity3d to create a simple VST host

孤者浪人 提交于 2020-01-06 04:53:07
问题 I've successfully simplified the Vst.net host sample to directly load a vst instrument. Mostly I've just stripped out the GUI and made it automatically fire a few test notes. This code works when I build it as a console application. using System; using Jacobi.Vst.Core; using Jacobi.Vst.Interop.Host; using NAudio.Wave; using CommonUtils.VSTPlugin; namespace Jacobi.Vst.Samples.Host { ///<Summary> /// Gets the answer ///</Summary> public class pianoVST { ///<Summary> /// Gets the answer ///<

Assembly Not Found on deployment of C# project

本秂侑毒 提交于 2020-01-06 01:51:12
问题 So I made a C# project in visual studio with 3 class library projects. Everything works fine when debugging but When I try to deploy. Database and Program installs just fine but when I try to open the Application, I get an Assembly or File not Found Exception. The DLL he can't find is a class library in my project. On the File System Editor, VS automatically detected the dependencies and included the 3 dll files in to application directory. I tried excluding these dll's and just adding the

Calling a FORTRAN DLL using ctypes

末鹿安然 提交于 2020-01-06 01:47:11
问题 I am trying to learn how to complie FORTRAN code into a DLL that I can call from Python using ctypes. Even a simple example is not working, can anyone help? I have a single procedure in FORTRAN: subroutine ex(i) integer i i=i+1 return end Then I try to run this from Python I compile it with the MinGW complier as follows gfortran -c test.f gfortran -shared -mrtd -o test.dll test.o Looking at the DLL created I see Microsoft (R) COFF/PE Dumper Version 12.00.30723.0 Copyright (C) Microsoft

Know in what context DLL is running

扶醉桌前 提交于 2020-01-06 00:51:47
问题 I want to know if the DLL is being used in web or desktop context. One way is to check if HttpContext is null or not. But I want to know if there is other better way to do it. 回答1: We went through the very same thing, as we have a .DLL that runs in both a Windows and a Web app and you've already nailed the way to determine which is which. public bool IsWebApp() { return (HttpContext.Current != null); } Then within your application, you just query: if ( this.IsWebApp() ) { //do webby stuff...

NvCplGetThermalSettings call to nvcpl.dll returns false (C++)

谁说我不能喝 提交于 2020-01-05 17:41:02
问题 I'm trying to retrieve GPU temperature information using the code below (not mine; slightly modified), but get a 'false' return when I attempt to call the .dll function, nvCplGetThermalSettings: HINSTANCE lib = LoadLibraryA("nvcpl.dll"); if(lib) { NvCplGetThermalSettings nvCplGetThermalSettings = reinterpret_cast<NvCplGetThermalSettings> (GetProcAddress(lib,"NvCplGetThermalSettings")); DWORD coreTemp,ambientTemp,upperLimit; int success = nvCplGetThermalSettings(0,&coreTemp,&ambientTemp,

function mapping delphi/pascal dll in jna handle and string

微笑、不失礼 提交于 2020-01-05 12:07:08
问题 I'm trying to call a function in a delphi dll using JNA. the function definition is: function myFuncGetName (aHandle : THandle; var aBuf : pwideChar ): integer; export; my jna mapping looks like this: int myFuncGetName(PointerByReference aHandle, WString aBuf); the return value should be 0 for success and -1 for fail and I'm always getting -1. I have started up WinDbg and attached to the process and it breaks at myFuncGetName. 057cb384 eb11 jmp myDLL!myFuncGetName+0x87 (057cb397) 057cb386