dll

MATLAB "C" DLL Errors

I'm compiling some MATLAB functions into a C DLL. The exported mlf functions return a boolean value representing whether the function succeeded or not. When the return value is false, I want to find out the error information. I couldn't find a way to do that! (other than compiling and exporting the lasterror() function). Is there a C in...

how to convert .cs to .dll

Plz let me know how to convert a .cs file to .dll file. I'm very new to this area. help me out. best regards, Arun. ...

Using C++ DLLs with different compiler versions

This question is related to "How to make consistent dll binaries across VS versions ?" We have applications and DLLs built with VC6 and a new application built with VC9. The VC9-app has to use DLLs compiled with VC6, most of which are written in C and one in C++. The C++ lib is problematic due to name decoration/mangling issues. Compil...

How does one install .net dlls without .NET SDK or Visual Studio?

I need to deploy a few .net dlls. They need to be put in the GAC and the required entries need to be in the registry. On my machine I have both the SDK and Visual Studio running, so currently I am utilizing .net sdk tools like gacutil and regasm. However, when I need to install these dlls on a customer machine, how should I go about it. ...

msvcr90.dll dependency in VS 2005 C++ project

I've created a DLL project in VS 2005 for native Win32/unmanaged C++, call it myProj.dll. It depends on a 3rd-party commercial DLL that in turn depends on msvcr90.dll (I assume it was built from a VS 2008 project). I'll call it thirdParty.dll. My DLL project builds just fine in VS2005. I've built a test app (again, VS 2005 Win32 C++)...

understanding dll dependencies

I'm building a c++ DLL in visual studio 2008. For some reason, even when I build in release mode, my dll still depends on msvcr90d.dll. I can see that using depends.exe Is there any way to figure out what is causing this dependency? My run-time library setting is /MD Thanks, Dan ...

Calling NT function on pre-NT system

So I don't do a lot of Win32 calls, but recently I have had to use the GetFileTime and SetFileTime functions. Now although Win98 and below are not officially supported in my program people do use it there anyway, and I try to keep it as usable as possible. I was just wondering what will happen as those functions do not exist in pre-NT sy...

where do I initialize a managed C++\CLI dll

What is, or should I ask, is there, an equivalent to DllMain when creating a dll using C++\CLI? Are there any restrictions on what cannot be called from this initialization code? ...

How loader Maps DLL in to Process Address Space

I am curious to know How the Loader Maps DLL in to Process Address Space. How loader does that magic. Example is highly appreciated. Thanks in advance. ...

Packing an exe + dll into one executable (not .NET)

Hi, Is anybody aware of a program that can pack several DLL and a .EXE into one executable. I am not talking about .NET case here, I am talking about general DLLs, some of which I generate in C++, some of others are external DLL I have no control over. My specific case is a python program packaged with py2exe, where I would like to "hi...

Unable to load C++ DLL in C# application in Vista x64

I have a DLL written in C++ that needs to be used by an application in C#. It works great under Vista x86, but under x64 it fails to load. So I build an x64 version of the DLL and I detect whether the OS is x86 or x64 and use the appropriate interop call to the appropriate DLL. This works fine under Vista x86, but under Vista x64 I get a...

Can I remove a digital signature from a DLL?

My installer build "signs" a DLL using a Code Signing certificate during the build process. I've noticed that if I try to build twice in succession, the second build fails because the DLL is already signed so signcode chokes. Obviously I can fix this by signing a copy of the DLL in the build, but the problem intrigued me: Is it possi...

Is it possible to build a DLL in C++ that has no dependencies?

I would like to deploy a very simple DLL with my C# application, but any DLL that I build in Visual Studio 2008 seems to have a dependency on "Microsoft.VC90.CRT". Is it possible to build a DLL using VS2008 without this dependency? How can I tell what is causing the dependency? ...

How do I write a DLL for Excel in Delphi?

I'm using Turbo Delphi 2006. The DLL will be called from within Excel as part of a VBA/DLL combination. The first part of the problem is trying to find out how to pass to the DLL a reference to the current Excel session. Most other code I've seen has you launching a separate instance of Excel apart from the one you're in. I've seen s...

getting an embedded resource in a single dll made up of multiple class libraries

my solution has multiple projects and in one of them I have the code to get the embedded resource (an xml file) from another project. All this works fine when all the projects are seperate. However when all the class libraries are embedded into a single dll, the code to get the resource file does not work i.e. it cannot get the emebedded...

Unmanaged DLLs fail to load on ASP.NET server

This question relates to an ASP.NET website, originally developed in VS 2005 and now in VS 2008. This website uses two unmanaged external DLLs which are not .NET and I do not have the source code to compile them and have to use them as is. This website runs fine from within Visual Studio, locating and accessing these external DLLs corr...

accessing bitmap resources in a C++ DLL from VB6

I have a C++ DLL including bitmap resources created by Visual Studio. Though I can load the DLL in VB6 using LoadLibrary, I cannot load the image resources either by using LoadImage or by using LoadBitmap. When I try to get the error using GetLastError(), it doesnot return any errors. I have tried using LoadImage and LoadBitmap in anot...

Debugging a third-party DLL in Visual Studio.NET?

Hi, I am using a third party dll. For some particular cases the a function in dll is throwing an exception. I want to know whether it is possible to debug the dll in the visual studio ? Update After the answer from Andrew Rollings , I am able to view the code, but I is there any easy way to debug through the code in visual studio....

Read a non .NET DLL version from C#?

I have a folder with some DLLs in it (not .NET assemblies) and I would like to read the file information in them. Things like the version, name... etc. What is the best way to approach this? ...

Plugin API design

So I have an application that is based heavily on the QT API which using the QPlugin system. It's fairly simple to use, you define a class which inherit from an Interface and when the plugin is loaded you get an instance of that class. In the end it'll boil down to a dlopen/dlsym or LoadLibrary/GetProcAddress, whatever is appropriate for...