dll

Command line tool to find Dll dependencies

Does anybody know a command line tool to recursively find a DLL dependencies? I tried dumpbin and depends that come with Visual Studio 2005, but dumpbin only finds the first level of dependencies, and depends output is not really computer friendly. ...

ActiveX component can't create object (comReport)

Hi, I am trying to print a pdf report and it is not printing and giving this error. Error Type: ComReport (0x800A01AD) ActiveX component can't create object I have registered the ComReport.dll with my OS. This works fine on our developemtn and production server but is not working locally on my machine. And I need for it to work on ...

How do I pass pointers to a DLL using Win32:API?

Hi, I am trying to passing in 3 pointers to a DLL function. I have: { $code=1; $len=100; $str=" " x $len; $function = new Win32::API(DLLNAME,'dllfunction','PPP','V'); $function->Call($code,$str,$len); } The DLL is defined as void dllfunction(int* a, char* str, int* len); The DLL will modify all the variables pointed by the three ...

C# - Getting references of reference

I have built a class library project, that references a couple dll's. In the constructor of my class library project I use some enums from one of the referenced dll's. When using my class library in another project is it possible to not have to add references to my dll and the ones my class library project references internally? ...

How do I call a Pb generated native Win32 dll from .Net? Or from anywhere else?!

I have been trying to link to Pb (11.5) generated native Win32 dlls: both from a different Pb app and from a .net (2.0) app. I am aware that registered COM objects are visible to Pb. What I want to do is have Pb (running 11.5 Enterprise) call functions in a native Win32 dll--not COM. I also want to go the other way: I want a Win32 exe...

How to reload a 3rd party DLL that crashes often

I'm using a 3rd party DLL written in unmanaged C++ that controls some hardware we have. Unfortunately this DLL crashes now and then and I've been tasked to make it "reload" automagically. I'm not too sure about how to proceed to get best results. My project uses C++.Net 2.0 (2005). I'm wrapping the 3rd party stuff in a separate DLL. I'...

Output the name of the current DLL being acted on using MSBuild

This is probably a really stupid MSBuild question but if I have <ItemGroup> <Dll Include="<Path_to_DLLs>\*.dll" /> </ItemGroup> And then <SomeTarget useFiles=@(Dll)> ....do stuff </someTarget> What I want to do is to output the current item that @(Dll) is looping through. Basically I wanting to output the name of the current DLL b...

How can I unload a DLL using ctypes in Python?

I'm using ctypes to load a DLL in Python. This works great. Now we'd like to be able to reload that DLL at runtime. The straightforward approach would seem to be: 1. Unload DLL 2. Load DLL Unfortunately I'm not sure what the correct way to unload the DLL is. _ctypes.FreeLibrary is available, but private. Is there some other way t...

Problem deploying DLLs to the GAC in a Visual Studio Setup Project

"Assembly [AssemblyName] must have a shared name to be installed globally" I am getting this error message when I try to deploy some component DLLs for my application to the Global Assembly Cache. What is a shared name and how do i make sure my DLLs have one? ...

debug a dll from java java->jni.dll ->app.dll -> app.dll

how can I debug a dll that is not loaded by the java application. The scenario is this: my java app is loading the jni.dll that is using another dll and that dll is using another dll. java<->jni.dll<->dll<->dll I have the source code for all modules I am using visual studio express when debugging the jni.dll but what should I do to ...

Alternative to DLL's as objects (dynamically replaceable objects)

I have an application that uses many different .NET managed DLL's as objects (each DLL implements a common interface). Each DLL also has a version number in the file name. Suppose I create the object "Shape~01.dll." The application will use that DLL but it can't be replaced while the application is running. So, if I want to "upgrade"...

How do I detect the DLLs required by an application?

In a nutshell: I want to do the same thing "Dependency Walker" does. Is there any Win32 API function which can enumerate the dependencies of a EXE and/or DLL file? And is there any safe way to detect dependencies on ActiveX classes? (I doubt it is possible, but who knows ...) EDIT: I'm aware of available tools which provide the same c...

How do I export templated classes from a dll without explicit specification?

I have a dll that contains a templated class. Is there a way to export it without explicit specification? ...

circular dependencies between dlls with visual studio

I have a circular dependency between two functions. I would like each of these functions to reside in its own dll. Is it possible to build this with visual studio? foo(int i) { if (i > 0) bar(i -i); } -> should compile into foo.dll bar(int i) { if (i > 0) foo(i - i); } -> should compile into bar.dll I have created tw...

How do you register a win32 com dll in WiX3?

So I found this example on registering DLLs: http://blogs.msdn.com/robmen/archive/2004/04/28/122491.aspx and WiX complains about the "AssemblyRegisterComInterop" attribute. I removed that and changed the "Assembly" attribute to win32 and it says I need to specify the AssemblyManifest attribute, but I don't know what to put there. ...

.def files C/C++ DLLs

I am not understanding the point of using .def files with DLLs. It seems that it replaces the need to use explicit exports within your DLL code (ie. explicit __declspec(dllexport)) however I am unable to generate a lib file when not using these which then creates linker issues later when using the DLL. So how do you use .defs when lin...

How can I prevent loading a native dll from a .NET app?

Background: My C# application includes a plugin framework and generic plugin loader. The plugin loader enumerates the application directory in order to identify plugin dlls (essentially it searches for *.dll at this time). Within the same application directory is a native (Windows, non-.net) dll, which, indirectly, one of the plugin ...

Use a dll from a c++ program. (borland c++ builder and in general)

Hi! I'm trying to use a dll, namely libcurl, with my program, but, it's not linking. Libcurl comes with .h files that I can include (takes care of dllimport), but then I quess I must specify wich dll to actually use when linking somehow... How do I do that? I'm compiling with borland c++ builder, but I really whant to know how theese th...

Using Windows DLL from Linux

We need to interface to 3rd party app, but company behind the app doesn't disclose message protocol and provides only Windows DLL to interface to. Our application is Linux-based so I cannot directly communicate with DLL. I couldn't find any existing solution so I'm considering writing socket-based bridge between Linux and Windows, howev...

Is char* supported on Chinese / Japanese machines?

Hi, I am trying to create a DLL for authentication using Java and JNI. To create the DLL, I have created a Win32 application whose Character Set and Runtime Library information are Multi-Byte String and Multi-threaded (/MT) respectively. I have tested the DLL on WinXP with valid and invalid user credentials. Both work fine. I need t...