dll

Dynamicly load dll in fitnesse fixture...

I'm trying to write a FitNesse fixture against an interface (in c#). I want to be able to have the fixture dynamically load the implementation from a dll (so that I can use the same tests against different implementations of the same interface...i.e. mock data, live data, etc.). I have a init method in my fixture that takes 2 strings, ...

Can you call a C# DLL from a C DLL?

I've built a DLL in C#. Now I want to use the R Environment to call functions in that DLL. The R environment supports calling unmanaged C/C++ DLL's but not into .NET DLL's. So my question is, can I call functions in a C# DLL from a C/C++ DLL? If so, do you have a link to info about how to do this? ...

WebResource.axd blank or not found

I'm trying to export a control library in a .dll for other developers in the office to consume. The solution I original created looks like this: Solution 1: - Mri.Controls (Class Library) - Mri.FmTool (Web Application) Mri.FmTool references Mri.Controls. Inside Mri.Controls, I have some javascript WebResources. Mri.FmTool seems t...

Stack overflow from native DLL called from managed application

I'm getting the infamous 0xC00000FD (stack overflow) exception from my application when I call into a native DLL. This is being done from a managed C# application on Windows CE 5 (SH4 processor). Compiling the same DLL for Windows XP using the same managed application and everything works fine (no overflow). The routine in the DLL is ...

C# crash when loading C++ dll

Hello, My program is written in C# NET 2.0,it's using external functions from a dll written in C++ using Microsoft Visual Studio 2008 SP1. If I remove the dll from the directory the program is placed,the program crashes at the moment it should use the dll.That's normal. But the users that are using my program get the same error at the ...

Cannot Load C++ DLL in C#

Hello, >My previous thread< I created this one,because I installed WinXP on VMBox and I cannot get it working again. This time I created an OnLoad Event on my form if (LoadLibrary("blowfish.dll") == 0) { Misc.LogToFile("Could not load dll", true); Application.Exit(); } Runs fine on my...

vshost32.exe crash when calling unmanaged DLL

Hi all, I'm using a VS 2005 app to interface against an unmanaged (Fortran) DLL. When I run the compiled executable straight from the command line, everything is fine - the DLL can be accessed, and I can work with the functions in the DLL. Unfortunately, when I launch the app from VS 2005, I get a popup stating "vshost32.exe has stoppe...

IIS 6.0 app pool sharing DLLs

I have 10+ apps that are on a single app pool. All these apps have some common dlls that they all load. The issue right now is that these dlls are put in the '\bin' folder for each app. So each app; even though it uses dll_a, will end up loading its own 'copy' of dll_a. I have a few questions 1) Is this ok? 2) Should i put dll_a in so...

call F# dll in C#

How can I create F# dll and call it in C#? Thank you ...

Easiest way to create a drawing canvas from within a C++ dll?

The scenario is such: there's a program which loads my .dll/.so and calls a function from within it, possibly multiple times, each time expecting a different pointer to state. It uses the different states later in other calls into the dll. (It's a game AI, if you need context; each state is a AI player.) What I want is a cross-platform ...

Call function from DLL with non-static path

I have a DLL that I need to access methods from. In most cases like this I just use [DllImport] to access methods from unmanaged assemblies, but the problem with that in this situation is that it requires the path to the DLL at instantiation time, so a constant string. This particular DLL is one that gets installed with my application ...

Is it safe to call a dll function from multiple threads in a single application?

I am writing a server application in Delphi 2009 that implements several types of authentication. Each authentication method is stored in a separate dll. The first time an authentication method is used the appropriate dll is loaded. The dll is only released when the application closes. Is it safe to access the dlls without any form of s...

C++ dll in C program

I'd like to create a dll library from C++ code and use it in C program. I'd like to export only one function: GLboolean load_obj (const char *filename, GLuint &object_list); Header file from library: #ifndef __OBJ__H__ #define __OBJ__H__ #include <windows.h> #include <GL/gl.h> #include <GL/glext.h> #include <GL/glu.h> #include <GL...

Using two .NET libraries with the same namespace

I'm currently maintaining some old code for a company. As it would happen, the current app I'm modifying uses an older version of the in-house library (we'll call this Lib1.dll). They also have a new version of the library called Lib2.dll that improves upon the previous library in many ways. Unfortunately, Lib2 is not backward compati...

Using arrays and pointers in C# with C DLL

I am very new to C# (just started learning in the past week). I have a custom DLL written in C with the following function: DLLIMPORT void test_function (double **test) What I am looking to do is have a pointer from C# for the array 'test'. So, if in the DLL function I have test[0] = 450.60, test[1] = 512.99 etc. I want to be able t...

Problems with starting a program + DLL multiple times in Windows XP?

We develop a network library that uses TCP and UDP sockets. This DLL is used by a testclient, which is started multiple times at the same PC for a load test. In Windows Vista, it is no problem to start the testclient many times. In Windows XP, starting it up to 5 times is no problem, but if we start it 6 times or more, and then closing ...

dll files created in Visual C++ be used in C#?

I am creating a dll file in visual C++ through Dynamic Link Library project. I know i can import this dll thorugh object browser in C#. I want to know whether i can use those functions without any issues, since i am programming in 2 different languages. ...

ILMerge and Custom Attributes on classes

I merged some dll files together and now my code that would find classes in one of the merged dll files cannot see the custom attributes I had on them. It can find all the classes fine but the attributes are missing. Any ideas how I can remedy this? Edit: Further investigating show that the attributes are on the class but the Guid for t...

Converting a C++ .exe project to a dll

Microsoft provides the source code of vshadow to manipulate VSS (Volume Shadow Service [shadow copy]), and I've modified it a bit but I want to make it into a dll so I can use it in my C# projects. I don't know exactly how to go about doing that, the source code is fairly simple, and it shouldn't be too hard, but I don't really know wher...

wrapping an MFC Gui app into a DLL(or something else) for .NET interop

sound like a terrible idea? Yeah I thought so too. Needless to say im told I have to do it. Situation: Old MFC-based C++ gui application that reads and processes a whole lot of data sources into an internal datastructure, before displaying it to the user. Problem: I need that datastructure in .NET, in XML will do. Solution: Make a f...