dll

DLL memory manager mixup

Hi, I wrote an application which allows people to contribute plugins to extend the functionality. Such plugins are deployed as DLL files, which the framework picks up during runtime. Each plugin features a factory function which is called multiple times during the lifetime of the application to create objects. So far, in order to handle...

C# - load a .DLL file and access methods from class within?

I'm completely new to loading in libraries like this, but here's where I stand: I have a homemade DLL file it's about as simple as it gets, the class itself and a method. In the home program that loads this library, I have: Assembly testDLL = Assembly.LoadFile("C:\\dll\\test.dll"); From here, I'm kind of stuck. As far as I know, it...

Python: accessing DLL function using ctypes -- access by function *name* fails

myPythonClient (below) wants to invoke a ringBell function (loaded from a DLL using ctypes). However, attempting to access ringBell via its name results in an AttributeError. Why? RingBell.h contains namespace MyNamespace { class MyClass { public: static __declspec(dllexport) int ringBell ( void ) ; } ; ...

C# - displaying a form from a dynamically loaded DLL.

This is an extension of a question I previously asked here. Long story short, I dynamically load a DLL and make a type out of it with the following code: Assembly assembly = Assembly.LoadFile("C:\\test.dll"); Type type = assembly.GetType("test.dllTest"); Activator.CreateInstance(type); From there I can use type to reference virtually...

C++ Changing a class in a dll where a pointer to that class is returned to other dlls...

Hello, Horrible title I know, horrible question too. I'm working with a bit of software where a dll returns a ptr to an internal class. Other dlls (calling dlls) then use this pointer to call methods of that class directly: //dll 1 internalclass m_class; internalclass* getInternalObject() { return &m_class; } //dll 2 internalclass*...

Reference Java DLL in C# Assembly?

There are instructions here to create a C# assembly using the SimMetrics library. The link they provided to this library is at SourceForge. It looks like the most recent version of the SimMetrics library was created in Java. Is it possibly to compile a java DLL and then reference it in C# to be used as an assembly in SQL Server 2008? ...

How do I compile an extension for PHP 5.3 for windows as a DLL?

I'm currently rewriting a PHP Extension that was originally written for PHP 4.2.2. My issue is having the build/compile process generate a DLL instead of compiling the extension into the PHP core. The environment is windows server 2003. I'm using Visual Studio 2008. I used the EXT_SKEL script to generate the framework, and I can succ...

Use DLL in PHP?

I'm not going to lie. I'm not all the familiar with Windows and COM objects. That's why i'm here. First of all is it possible to access a DLL from within a PHP script running out of Apache? In my journey around the internets i believe that i have 2 options: compile the dll as an extension for PHP. (i didn't make this dll) access the DL...

Automatically detecting incompatible DLL references

Is there a tool that takes a solution or a set of DLLs, and automatically detects incompatible references (two DLLs that reference that same DLL but with different versions, thus resulting in hard-to-detect runtime errors). Currently we're debugging such problems using Reflector, I'm looking for a magical automatic tool. ...

Deploy my DLLs to GAC for use with ClickOnce App

How do I do it? Is there any reason I shouldn't? I have a winform ClickOnce App that has about 13mbs in DLLs that are not mine so I would have no need/ability to update them at any regular intervals. DevExpress(3), Microsoft ReportViewer, Microsoft SQL Replication. Microsoft SQL SMO. Without them being included in my ClickOnce App ...

Can my 32 bit and 64 bit COM components co-reside on the same machine?

I have a 32 bit COM component that is used mostly by ASP, we also have the 64 bit version. The 64 bit version is functionally identical and it also uses the same ProgID (and as far as I know the same CLSID's etc). Can I install/regsvr the 64 bit version on the same machine as the 32 bit version (obviously in a different folder) and hav...

dll auto image-base

is there an equivalent option line --enable-auto-image-base (gcc/cygwin) in vc++ to automatically set a default image-base address of a DLL? or does someone know the common practise to calculate unique base address and specify it with /BASE? I'm compiling many simple DLLs from c source files inside an batch, and all DLLs have the same ...

How can I import an interop dll into actionscript

Making an adobe flex ui in which data that is calculated must use proprietary functions from a dll. How can I import this dll into actionscript? Is this the only way to achieve my goal? Thanks! ...

Overwriting function in another dll without edits to primary dll

This one game I do scripting for uses a primary dll in which our scripts we write (creatively named "scripts.dll" This scripts.dll, server-side, loads other plugins (.dlls as well). Question: I need to override an existing function in scripts.dll in, for example, pluginA.dll to where the one in scripts.dll doesn't get called. I had th...

creating a DLL in Visual Studio 2005

Hi, I am developing a C++ library that I want to pass on to my team. The library has just one class with a bunch of methods. So, I have developed the class definition file (X.cpp) and a corresponding class declaration file (X.h). Here are my questions -- In Visual Studio 2005, whats is the most straight forward way to build this l...

Where to put external resources referenced by a .net DLL/App_Code?

I've developed a series of classes that are called from an asp.net website to create HTML from templates. A pair of the main methods create a pre-styled HTML box. Like so: <%=ContentBox.DrawTop( title, textColour, backgroundColour )%> <p>This is the content inside the box</p> <%=ContentBox.DrawBottom()%> This code works fine. Howeve...

Problems using wxWidgets (wxMSW) within multiple DLL instances

Preface I'm developing VST-plugins which are DLL-based software modules and loaded by VST-supporting host applications. To open a VST-plugin the host applications loads the VST-DLL and calls an appropriate function of the plugin while providing a native window handle, which the plugin can use to draw it's GUI. I managed to port my origi...

Protect C# DLL from third party

Duplicate of: How to protect dlls? I'd like to protect my C# DLL from being used by third party applications. I'd like only MY applycation to use this DLL. How can I achieved that ? Thank you. ...

Can I catch a missing dll error during application load in C#?

Is it possible to catch the exception when a referenced .dll cannot be found? For example, I have a C# project with a reference to a third-party dll; if that dll cannot be found, an exception is thrown. The exception is a System.IO.FileNotFoundException, but I am unable to determine where to catch it. The following code did not seem t...

Deadlock in 3rd Party dll

I'm using (and referencing) two 3rd party dlls (a.dll, and b.dll) in two of my C# applications. I'm getting a repeatable problem where both applications hang while making a call to a function in the 3rd party library. I tried to make a copy of a.dll and b.dll (a2.dll, and b2.dll) and use that in the second application, but it turns out...