dll

notify an object when a thread starts

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...

Encapsulate Windows message loop into a DLL

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(); } ...

Crash when using C# Assembly from Managed C++ DLL

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...

Web Application Project, and App_GlobalResources

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 ...

Check signature of OSX bundle before load

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...

Check signature of Linux shared-object before load

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...

Using Precompiled .NET Assembly DLL in Mono?

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 ...

win32api.dll Will Not Install

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...

How do I prevent my .Net dll from being added as a reference?

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? ...

CreateRemoteThread, LoadLibrary, and PostThreadMessage. What's the proper IPC method?

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. ...

Load an Assembly from Bin in ASP.NET

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()? ...

Connect to ASP.Net Membership DB via a .dll

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 ...

DLL runtime error crashes my c# app - how to avoid it?

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...

.NET 1.1 DLL Website Access Problems (Access is denied for NON-ADMINS)

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...

ASP.net, dlls and webconfigs

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...

Enable to call C dll in VB.net Code

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...

Place created DLL and import library in separate directories

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? ...

Porting (unmanaged) C++ to C# vs. using the C++ as a DLL in a C# application

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...

Is it possible to switch Class versions at runtime with Java??

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,...

Vb6 to VB.Net- How to replace registered dll concept

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...