i have an object A which should be notified (A::Notify() method) when some thread starts or dies.
Lets say this thread dynamically loads some DLL file of mine (i can write it).
I believe i should write the dllMain function of this DLL, however i'm not sure how to get a reference to the A object from this function so i can run it's Notify...
I would like to have a DLL with window creation and management code in a way that the developer could just add a named main.h header and load the DLL to be able to instance a window.
#include "dllheader.h"
void user_main();
main = user_main; // attach user main to the dll callback
int user_main() {
Window *w = new Window();
}
...
Hi,
On a Windows XP system, I'm writing a Mangaged C++ library which calls code in a C# Assembly. Unfortunately, as soon as I start referencing a symbol in the C# Assembly, running the Managed C++ library fails with this error (I copied this from the XP crash dialog):
EventType : clr20r3
P1 : treeviewdemo.exe
P2 : 0.0.0.0
P3 : 4a5d6d62...
Hi All,
I currently have a C# Web Application Project with a multitude of pages as well as their corresponding codebehind files (aspx, cs, designer.cs). When I open the dll created during the build process and open it in the visual studio object explorer, I can clearly see all of the codebehind.
Within the same project I have a number ...
Goal: Load .so/.bundle that has been verified to be signed (or verified against an arbitrary algorithm).
I want to be able to verify a .so/.bundle either using OSX's builtin binary signature tools or some custom algorithm and then load that .so/.bundle with dlopen...
The wrench in this is that there seems to be no programmatic way to c...
Goal: Load .so or executable that has been verified to be signed (or verified against an arbitrary algorithm).
I want to be able to verify a .so/executable and then load/execute that .so/executable with dlopen/...
The wrench in this is that there seems to be no programmatic way to check-then-load. One could check the file manually and...
We're currently testing Mono to see if our .NET DLLs will work for customers on Linux. Our DLLs provide components for Windows Forms. I placed the DLLs in the Debug directory, added the references, and created a class deriving from a Windows Form. The class had run fine standalone, but after I added the DLL references and created one ...
I am trying to start a Buildbot Buildslave on a Windows XP virtual machine:
python buildbot start .
ImportError: No module named win32api.
Google tells me that win32api is win32api.dll. I downloaded the file from www.dll-files.com and followed the guide found on that site (http://www.dll-files.com/unzip.php). When I try to run regv...
Say I've written a .Net dll and want to distribute it with my application. How can I prevent any user with the savvy to install a copy of VS from adding a reference to this dll to their own applications?
...
Alright, I'm injecting some code into another process using the CreateRemoteThread/LoadLibrary "trick".
I end up with a thread id, and a process with a DLL of my choice spinning up. At least in theory, the DLL does nothing at the moment so verifying this is a little tricky. For the time being I'm willing to accept it on faith alone. ...
I have a file name, like "Foo.dll," for a library that I know is in the bin directory. I want to create an Assembly object for it. I'm trying to instantiate this object from a class that's not a page, so I don't have the Request object to get the path. How do I get the path I need to use Assembly.Load()?
...
Hello,
I'm playing around a bit with Flex, WebORB and C#, and what I wanted to do was Get User + Pass from Flex forms, go through WebORB to the C#-.dll that connects and checks the membership validation, sends the result back via WebORB into Flex and logs the user in depending on the result.
The trouble I'm hitting is that the C#-.dll ...
Hi,
Within my windows app, i'm using a c++ DLL wrapped with a .NET DLLs (specifically - the quickfix engine).
While running, once every day (not at any specific time), in one of the a constructor of one of the built-in classes throws a runtime error.
Even though the error is caught and reported (to a log file, and the database), I still...
We are using the ASP.NET 1.1 version of dtSearch and are having an issue that is affecting our users authenticating with Active Directory (AD). This issue also is affecting another custom, in-house .NET 1.1 DLL in the same websites.
When a standard user hits the search after a period of inactivity the site will give the error below. A...
We have an ASP.Net solution that is split up in to several projects (some are class libraries and some are actual Asp.Net sites).
One thing that has always bothered me is if the ASP.Net sites and class library dlls are built in debug mode, and are then published, web config changed so that "debug=false" will the class library dlls be bu...
Hi,
I am running into a problem which I am using C Dll into my VB.net code. I have .H file which shows implementation of this DLL in C language.
This .H file contains many structures and unions that contain variable of some structures type. There is a main structure which contains the pointers to these structures and unions and finally a...
Is there a way in a Visual C++ Win32 DLL project to have the linker output the DLL to one directory and the import library (*.lib) to another?
...
I have a code library written in plain old C++ (no .NET/managed code) and I'm porting the application that uses this code to C#. I'm faced with two options:
Rewrite the C++ code in C# to achieve the same functionality;
Compile the C++ as a DLL and use it as a library in the C# application.
I'm relatively new to C# and am pretty unfam...
I have a java project I want to create which will be built on top of some vendor APIs. The APIs connect to servers running said vendor's software and perform various actions.
I have 2 different versions of the servers supported by 2 different API versions. Any changes to the API's are in internal implementation only. I.E. The classes,...
I am replacing a VB6 application with a rewritten counterpart in VB.Net.
In the VB6 app there was a 'control' application which presented a form to the user and allowed them to select a 'client' from a drop down list. Selecting a client caused the reading of an ini file which set client-specific parameters, including the program names of...