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...
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...
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 ) ;
} ;
...
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...
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*...
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?
...
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...
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...
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.
...
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 ...
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...
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 ...
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!
...
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...
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...
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...
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...
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.
...
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...
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...