dll

Why so many individual System.Web.* DLLs?

I've been thinking about ways to refactor a fairly expansive class/utility library I have, and one thing I think I want to do is split off any higher-level helper utilities that introduce new dependencies. I read some previous questions here, and one that I particularly noticed was a comment about how Microsoft freely uses namespaces acr...

Using an embedded DLL?

Is there any detailed guide on how to use a resource embedded dll within a c# source? All the guides I find on Google don't seem to help much. It's all "make a new class" or "ILMerge" this and ".NETZ" that. But I'm not sure on how to use the ILMerge and .NETZ stuff, and the guides on classes leave out what to do after making the class fi...

C++: Loading an EXE as a DLL, local vftable problem

Ok, so this one is abit long to explain so bare with me.. I have an exe named test.exe which is usually used as a stand alone application. I want to use this exe as a module (a dll) inside another application, app.exe. The code in test.exe does something really simple like: void doTest() { MyClass *inst = new MyClass(); inst->...

Captcha not working with IIS

i m using a dll file MSCaptcha.dll for my web application its works fine on localhost but not with iis server..what should i do to make it work ...

How to determine which DLL an Excel UDF is coming from ?

Hello, is there any way to determine from an Excel session, which DLL an UDF is coming from ? I have a bunch of DLLs loaded by default, I wanted to determine for every UDF where it was defined. If the UDF was not defined in a DLL but via VBA, is there a way to determine in which XLA or XLS it was defined ? Thanks very much for taking...

Nunit not releasing a DLL used in a test / can't delete in teardown

I have an application which has to interface with an unmanaged, and frankly buggy, DLL. I've compensated for this by making my application check for all sorts of error conditions on running the DLL, things like timing out in case the DLL has gone into an infinite loop. I'm trying to test that handling in my application, and so I've del...

Validation of .NET assemblies in C#?

How do you check if a assembly loaded is a valid .NET assembly? I currently have this code but unmanaged DLL's throw a BadImageFormatException. string[] filepaths = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.dll", SearchOption.AllDirectories); List<Type> potentialEffects = new List<Type>(); foreach (string f...

Creating portable (non-installing) windows applications in C#

I have a .net 3.5 application and i'd like to make it portable. It's simple and runs perfectly, i've sent the .EXE + .DLL's to some friends and it works as intended when running the exe with the .DLL's and the .ICO (that i have used in it) along in the same folder. What i want is simple: creating a single EXE file that cares the dll's, ...

LoadLibrary Static/Globals and Threads

Say I have a DLL that has the following static/global: ClassA Object; Along with the implementation of ClassA, it also contains a 'regular' ClassB, which will not work properly if ClassA has not been constructed yet (which is why I've made ClassA is a static/global). In Windows, I believe that the DLL loader will load this DLL on the...

Unmanaged C++: How to dynamically load code?

Our industry is in high-performance distributed parallel computing. We have an unmanaged C++ application being developed using Visual Studio 2008. Our application (more like a framework) is supposed to be able to dynamically load code (algorithms) developed by 3rd parties (there can be many dlls) that conforms to our interface specific...

NUnit "missing" GPSVC.DLL on Windows 7/64

I recently upgraded from Vista/32 to Win7/64. On my old machine, everything was working fine. Unfortunately, on my new machine NUnit won't load my unit tests, with the error message "System.IO.FileNotFoundException: Could not load file or assembly 'UnitTest' or one of its dependencies. The system cannot find the file specified". (Act...

Visual Studio 2008: Creating Single DLL from Solution with Many Projects

I have an ASP.NET web application developed in Visual Studio 2008, composed of 3 different projects (one for UI, one of BO and the third for DAL). How can I generate a single assembly file which holds all 3? Now it's generating 3 DLLS each for each project in the solution. ...

C++: duplicated static member?

I have a class which needs to be a singleton. It implemented using a static member pointer: class MySinglton { public: static MySinglton& instance() { ... } private: static MySinglton* m_inst; }; This class is compiled into a .lib which is used in multiple dlls in the same application. The problem is that each dll sees a diffe...

Class Library Project File not compiling into .dll or debugging

in my solution: i have a class library project that compiles into a dll. i have a web project. (i have multiple solutions with different web projects but the same class library) one of the files in the class project (utilities.cs) - all of a sudden won't compile into the .dll i had made a change to this file, but the change wouldn'...

Requested Execution Level for a dll

I've got a WinForms application that I am working on. There is one small piece of functionality that needs to be run as an administrator in Vista/Win7. I understand how I can set the requestedExecutionLevel for the application in the manifest. The trick is, I don't want to require the user to run the entire application as an administrato...

Compiled C dll can't set pointer when called from ASP.NET App

I've got a 3rd party C application that's compiled to a non-.NET non-COM DLL. It has one simple function declared like so: Declare Function CapiTaxRoutine Lib "taxcommono.dll" (ByVal sInData As String, ByVal OutputData As String, ByVal intINPutLength As Long) As Integer If I place the taxcommono.dll in my path (C:\Windows\System32 is...

Delphi: Why can I link this function statically but not dynamically?

I am currently writing a module which interfaces with a black box 3rd party DLL for a check scanner. I need to have the DLL functions loaded dynamically, and this is working for all but one function. The SetScanParameters function has a record structure as a parameter, which I believe is somehow interfering with the methodology I am usin...

CUDA : error C2491: 'log1p' : definition of dllimport function not allowed

I am tryint to integrate CUDA in an existing project, in which several libs (DLLs) are created. I started with a very simple kernel that computes a dot product : // dotProd_kernel.cu __global__ void dotProd( double* result, double* vec1, double* vec2) { int i = threadIdx.x; result[i] = vec1[i] * vec2[i]; } This kernel is called ...

Linking 32-bit libraries to a 64-bit .NET application and memory consumption

I was compiling a .NET application targeting x86-64; however, the application references a 32-bit dll. The executable compiles fine, but Visual Studio throws a warning: Referenced assemply 'path/to/dll' targets a different processor than the application. Now, my understanding has been that you can't simply link a 64-bit executable...

How can I get the target platform info of a dll with Python 3.1.1?

I have many dll files and I would like to select them into two different folders (PC and PPC). For this I need to know the target platform of the dll file or any other details about its platform. I use Python 3.1.1. I have tried the win32api which does not compatible with this Python version. So, I tried to use the ctypes.windll with tr...