dll

How do I access a type from a C++/CLI dll in C#?

I created a C++/CLI dll with the below code: #pragma once #include “msg.h” //msg_t is a struct defined here using namespace System; namespace myCLRDll { typedef msg_t my_msg_t; public ref class Class1 { }; } build the library, add the reference to my C# application and the using myCLRDll; directive but when I went to use the my_msg_t I get…
Read more

Power Shell Windows Service Update dll’s process

I have Power Shell script for publish/update new dll’s for running windows service: Import-Module WebAdministration function Main( [string] $siteName = $(Throw “Value cannot be null: siteName”), [string] $sitePath = $(Throw “Value cannot be null: sitePath”), [string] $servicePath = $(Throw “Value cannot be null: sitePath”), [string] $serviceName = $(Throw “Value cannot be null: sitePath”), [string] $buildConfiguration = $(Throw “Value cannot be…
Read more

Unable to find LIBECPG.dll when running a postgresql program

I’m running a simple embedded sql code using PostgreSQL, and I’m getting a System Error message saying “The program can’t start because LIBECPG.dll is missing from your computer. Try resinstalling the program to fix this problem.” I DO have the library in the postgres installation (“C:Program Filespostgres.4lib”). Is it possible that I could be missing an environment variable (to point…
Read more

python, out of nowhere a tkinter error? DLL load failed: %1 is not a valid Win32 application

I’ve been using this script weekly and when I tried to use it today it suddenly gave me the following error: E:Bots—NameChecker>python —NameChecker.py Traceback (most recent call last): File “—NameChecker.py”, line 2, in <module> from Tkinter import Tk File “C:Python27liblib-tkTkinter.py”, line 38, in <module> import FixTk File “C:Python27liblib-tkFixTk.py”, line 65, in <module> import _tkinter ImportError: DLL load failed: %1 is…
Read more

(IronRuby) Uninitialized constant when calling function from a .dll

So, I’ve got this .dll that I believe I added to the project correctly. But whenever I try to call something from the .dll I get an error, `in `const_missing’: uninitialized constant Object::PS3Lib (NameError)` I’m fairly new to Ruby, IronRuby, and my code where this is occurring looks like this, and can’t figure out why this isn’t working. require “PS3Lib,…
Read more

Interop.zkemkeeper how to connect c#

I have a bio metric devices to connect C# project. AxInterop.zkemkeeper.dll Interop.zkemkeeper.dll Interop.ZKFPEngXControl.dll zkemkeeper.dll I added to my project and trying to connect the device. When I create the object “CZKEMClass” this class its getting error An unhandled exception of type ‘System.Runtime.InteropServices.COMException’ occurred in WindowsFormsApplication1.exe Additional information: Retrieving the COM class factory for component with CLSID {00853A19-BD51-419B-9269-2DABE57EB61F} failed due to…
Read more

Wix re-register DLL on repair action

I have an MSI that includes a DLL file that is registered using the following code: <Fragment> <ComponentGroup Id=”ProductComponents” Directory=”INSTALLFOLDER”> <Component Id=”XYZ.dll” Guid=”<GUID>”> <File Id=”XYZ.dll” KeyPath=”yes” Source=”XYZ.dll” SelfRegCost=”1″ /> </Component> </ComponentGroup> </Fragment> Now after installation I manually register a different version of the file (using regsvr32). I rerun the MSI installation and do a repair. The manual DLL isn’t overwritten…
Read more

Link dll from subfolders

I have written a C++/CLI wrapper for some unamanaged dll’s (OpenCV). Everything works fine until this point. Now I would like to store the dll’s in a subfolder, so the final application structure would look like this: bin MainApp.exe wrapper.dll Wrapperlibrary1.dll Wrapperlibrary2.dll Also, I would like to configure this in the Wrapper project, so I don’t need to care about…
Read more

ImportError while importing a python module in a pyd

Alright, so, what I’m trying to do is import a module in folders packed inside of a .pyd file. Here is something that would work for me: from apple import __init__ With apple being the .pyd in the same directory as the Python script, and __init__ of course being packed inside of the .pyd. This would work, however here is…
Read more