dll

Execute CMD command from code

In C# WPF: I want to execute a CMD command, how exactly can I execute a cmd command programmatically? ...

EOleSysError with message 'Class not registered'

I have created a Type Library out of a .NET DLL i created. I then imported it into Delphi and called a method within the interface of the COM Object. When it is trying to create the COomObject i get the Error that the class is not registered. The dll is registered with the GAC so it shouldn't be that. Anybody know what else could caus...

Where do I put ATL dlls so they will work

A colleague developed a IE Plugin which I require to run for a piece of work using ATL. I have all of the source code and the compiled dll as well as a regedit. I have run the reg edit and moved the dll to the C:\Windows\System32 directory where I thought it was supposed to reside but that doesn't appear to have worked. Where should I ...

Interrupt Python program deadlocked in a DLL

How can I ensure a python program can be interrupted via Ctrl-C, or a similar mechanism, when it is deadlocked in code within a DLL? ...

What is the best way to communicate between programs in .NET and why?

Our company keeps debating on whether we should be using custom API DLLs or creating a web service farm to have our programs to communicate data between themselves. To me web services make the most sense in regards to compatibility and flexibility of upgrading, but I have heard some good reasons to use DLLs as well. Is there an emerging...

How to call a JNI DLL from C++

I have a task to interface with a dll from a third party company using C++. The dll package comes with: the dll itself a sample Java implementation - consists of a java wrapper(library) generated using the SWIG tool and the the java source file documentation that states all the public datatypes, enumeration and member functions. My ...

What are the issues with native code in an ASP.NET app?

Is there a summary somewhere of the issues around calling an unmanaged DLL from ASP.NET? I know how to do p-invoke, but does IIS need extra configuration? Is it likely to be a performance or scalability problem? Is it necessary to use COM interop or a mixed-mode assembly? Context: early planning stages of migrating a Windows app to an AS...

Visual Studio 2005 security updates and CRT DLL versions in manifest

Recent Visual Studio 2005 security updates may be causing problems for us. We build and internally distribute SDKs written in C++. These SDKs are a collection of header files and static libraries only. After installing the security updates our SDKs now depend on the newer versions of the MSVC CRT DLLs. These SDKs are used downstream ...

Integrate Delphi ISAPI DLL into an ASP.NET web application

Hi guys, We have all the code in Delphi and it is hard to create a new ASMX / SVC File directly in .NET because it uses encryption and weird stuff :) as it would take around 2 weeks to convert and to test... Because of that we agreed that will keep the Delphi code and find a way to communicate between the ASP.NET application and this D...

Is it safe to rewrite an EXE or DLL manifest to force a particular version of the MSVC CRT DLLs?

Is it supported by Microsoft to simply rewrite the manifest of an EXE or DLL to force the use of a specific version of the MSVC CRT? I am interested in doing this because of recent problems with Visual Studio 2005/2008 security updates (KB971090 and KB971092). I would like to simply rewrite the manifest as a post build step in order to...

How/where do I ship third-party libraries with a .NET DLL?

Hi, I'm building a .NET DLL Class Library which depends on other libraries such as log4net.dll - where should I put these DLLs when packaging up my DLL? Is there a way to automatically include them inside one super-DLL? Should I just ship all the DLLs in a single bin folder? ...

finding why a DLL is being loaded

I have a winxp process which has all sorts of dlls and static libs. One of our libs is calling ms debug dlls, I have a suspicion which one it is but want to prove it in a tool like Process Explorer. How can I get a tree of my process, to see exactly who is loading what modules? ...

LabVIEW blocking Qt signals?

I have a LabVIEW 8.6 program that is using a DLL written in Qt; the DLL listens to a TCP port for incoming messages and updates some internal data. My LabVIEW program calls into the DLL occasionally to read the internal data. The DLL works perfectly (i.e., receives data from the TCP port) with another Qt program. However, it does not ...

__declspec(dllimport/dllexport) and inheritance

Given a DLL with the following classes : #define DLLAPI __declspec(...) class DLLAPI Base { public: virtual void B(); }; class Derived : public Base { public: virtual void B(); virtual void D(); }; Will my "Derived" class be visible outside of the dll even if the "DLLAPI" keyword is not applied to the class defin...

What is Windows Vista's equivalent for the Version tab in Properties?

In Windows XP, whenever you right-click to select Properties to a particular DLL, you will be able to access the Version tab. In windows Vista, there is the Details table, which had some, but not all, the usual displayable items in the Version tab. In particular, the Assembly Version is missing. This is a head-banging problem for me ri...

How can I view the differences between two DLLs?

Is there a way to view the difference between two binary DLL files? I have PDBs for both. Ideally I'd like to see: What functions have been added What functions have been removed What functions have been modified (with a diff of the disassembly) What other entries (static variables, resources, etc) have been added/removed/modified ...

c# application does not start on another computer

hello, when i try to launch my c# application on another computer than it was developed i get the following error message: System.IO.FileLoadException: Could not load file or assembly 'Widgets3D, Version=1.0.3511.25568, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application has failed to start because the...

Visual Studio Installer not overwriting files in target application directory

I have a Visual Studio 2008 solution that contains several projects. Most projects in this solution write a .dll when built. My installer project in this solution copies these .dlls to a target application directory. My uninstaller for this solution does not remove these .dlls, even though it should. My installer doesn't overwrite old ...

How do I create a Win32 DLL without a dependency on the C runtime

Using Visual Studio 2008 and its C/C++ compiler, how do I create a Win32 DLL that is dependent only on other Windows DLLs, and has no dependency on the Microsoft C runtime? I have some C code I want to place in a DLL that is entirely computation, and makes almost no use of C library functions. For those it does use (eg memcpy), I'm hap...

Delphi 5 calling C++ dll causing Access Violation

Here is the Delphi code calling the C++ dll... implementation {$R *.DFM} procedure CallMe(x: Integer); stdcall; external 'CppWrapper.dll'; procedure TForm1.Button1Click(Sender: TObject); begin CallMe(1); end; end. Here is the error message...(Access Violation at 00000001. Read of Address 00000001.) The CallMe procedure exec...