dll

Use a function from dll

I've a dll and a library file to use the Dll. In a file TOnPortStatusChanged = procedure (cardNo:integer; portNo:integer; newPortStatus:byte); stdcall; TOnPortDataReady = procedure (cardNo:integer; portNo:integer; dataBuff:PByteArray; buffLen:integer); stdcall; T_API_INIT_PARAMS = record OnPortStatusChanged :TOnPortStatu...

Where inside injected DLL to loop?

Hey guys, So I've got an application that starts another application with my DLL injected (with Detours). The entry point is DllMain. I can't do much from DllMain, and certainly cannot loop. So how do I call my DLL monitor functions every x seconds? I read you cannot create a thread from DllMain (at least until it returns) and its true ...

How do I call Windows DLL functions from Ruby?

I want to access functions within a DLL using Ruby. I want to use the low-level access of C while still retaining the simplicity of writing Ruby code. How do I accomplish this? ...

Accomodating Multiple DLL Versions

I have an application that uses a Microsoft DLL (Microsoft.ComponentStudio.ComponentPlatformImplementation.dll) which is used for OS deployment and accessing the catalog files. Version 6.0.0.0 is specific to the Windows Server 2008 catalog files. The newer version 6.1.0.0 is specific to Windows Server 2008 R2 catalog files. Attempting to...

Merging dlls into a single .exe with wpf

Hi, I'm currently working on a project where we have a lot of dependencies. I would like to compile all the referenced dll's into the .exe much like you would do with embedded resources. I have tried ILMerge but it can't handle .xaml resources. So my question is: Is there a way to merge a WPF project with multiple dependencies into a si...

WinDbg using known module

I am debugging some Windows APIs and stack trace shows Unloaded_hext.dll. I am not able to find this DLL. Even if there are no symbols, WinDbg outputs this DLL name. Process monitor is unable to find this dll. Why is 'unloaded' prefixed? Is this done by WinDbg or are there any tricks? On running the lm command, I could see hext.dll in ...

Should DLLs have their own configuration files?

Apologies if this is a duplicate, but I've not managed to find this question being asked directly. The general opinion here (that's me and him across from me) is that they shouldn't, the reason being that DLLs can be shared; therefore the idea of having application-specific information in a DLL is nonsense. If the information is not app...

Haskell foreign import stdcall on DLL function

This is probably a really easy question to answer, but for some reason I'm really struggling with it. I have a DLL written in C to access hardware at a protocol level, and I want to write a Haskell program that calls some of those C functions. Here's a snippet of the relevant C header (with names just slightly obfuscated due to possibl...

Adding a dll file to a C# project

It's a beginners question, but... If you look at the image above, there is the "Bass.Net" dll added as reference and also directly as file in the project. Can someone tell me what's the point of doing that? ...

java, System.loadlibrary("someDLLFile") gets unstatisfied link error

Hello, I have written some JNI hooks into a C++ library and created some DLL files for my java server project. Lets say the DLL and jar files are in the same folder under "C:/server" I am accessing these DLL files using: System.loadLibrary("someDLLFile"); in the class that needs the C++ code. The problem I am running into is when I...

I want to convert MFC .exe to DLL which should work on IE.

I have created application which is opening .txt files in an window. I want to make it as Active X which should work on IE. What should i do to convert to DLL. Please suggests. Sow ...

using Interop.SHDocVw.dll Where can i find this namespace/dll at?

I've done this before, I don't remember if i downloaded the DLL from off the net or something but i don't want to get a virus. I need access to this namespace so that I can have extra features that the Webbrowswer control doesn't offer. How do I add a Com reference exactly. Or do I need the dll from someplace Thanks ...

C++ - linking to 3rd party DLL - intermittent access violation

I have been provided with a C++ DLL and associated header file in order to integrate it with my application. To begin with, I am simply trying to call the DLL from a simple Win32 console application (I'm using Visual Studio 2008 Express). I've linked the DLL by specifying it as an additional dependency in the project settings. The inte...

child process imports from debug runtime library cannot be resolved

I'm using Visual Studio 2005 Pro with SP1 under Windows XP 32 SP3 to build two native EXEs, A and B. A launches B. The following scenario occurs on my development system, which for now is also my test system. When I link A and B against the debug version of the runtime library, A launches happily but then fails to launch B because the s...

DLL as `src` of `<script>`

I was browsing the source code of some website, and noticed a dll file being used as the src of a <script>. (view-source:http://www.yellowbridge.com/onlinelit/baijiaxing.php) It was something like: ` Several questions: I didn't know a <script> could be anything besides js. What else can it be used for? Can you point me in the direc...

Can a Singleton Class inside a DLL be shared across processes?

I am creating a custom .net hardware framework that will be used by other programmers to control some hardware. They will add a reference to our DLL to get to our hardware framework. I am in need of a shared class that will be accessed from multiple applications (processes). The singleton pattern seems to be what I need but it only wor...

AnsiString return values from a Delphi 2007 DLL in a Delphi 2009 application

I have a DLL compiled with D2007 that has functions that return AnsiStrings. My application is compiled in D2009. When it calls the AnsiString functions, it gets back garbage. I created a little test app/dll to experiment and discovered that if both app and dll are compiled with the same version of Delphi (either 2007 or 2009), there i...

Delphi Dynamic Dll - global variable

Hi, I am busy coding a dll that supplies several functions to a host application. This application calls the dll dynamically, loading and freeing it after every function call. I have no control over the host app. I can only work with within the dll. Is there a way I can keep certain variables in memory so that I can reuse them within e...

Copying a DLL's dependencies in Visual Studio

How can I set up a project in Visual Studio to copy the third-party DLLs that one of the project's references depends on? I have a main application project and a class library DLL. The main application references the class library DLL, and the DLL itself references some third-party DLLs. When I compile the main application, it automatic...

Getting image names from DLL as a List ?

Hi, I created a DLL for encapsulating my Images and after that I want to get image names from DLL as a list. Before posting this post I googled about it and I saw an example that is below. public static List<string> GetImageList() { List<string> imageList; System.Reflection.Assembly BOAUIResources = System.Reflectio...