dll

How to get around "Binary was not built with debug information"?

I'm trying to debug a C DLL that I'm using with a Delphi program. I built the DLL with Visual C++, with debug information enabled. I built the Delphi program with Delphi 2009, with debug information enabled. But apparently they use different formats, because when I try to attach the VC++ debugger to my program, it says "binary was not...

How to get the function name from the ordinal number in a COM dll

Hi, I am trying to get actual function names from their ordinal numbers from a COM dll. I tried using dumpbin.exe but it only returns [NONAME] for each ordinal (except the first few). ordinal hint RVA name 21 0 00002439 DllCanUnloadNow 25 1 00007F41 DllGetClassObject 116 2 0000539C DllMain ...

How to install msvcr71.dll correctly

Hi, how do i install msvcr71.dll on windows server 2003, which is needed by my software. I really don't want to copy this dll to system32 folder, because it may break this target system. ...

Exposing the methods of a DLL in C#

After someone creates a DLL in C# using the Microsoft Visual development environment, how would another programmer take that code, make a new project that includes the DLL's source and make a GUI that uses the DLL'S API? I have already done the following four steps: 1) In the Solution Explorer right-click "References" and select "Add R...

"Unable to find an entry point named [function] in dll" (c++ to c# type conversion)

I have a dll which comes from a third party, which was written in C++. Here is some information that comes from the dll documentation: //start documentation RECO_DATA{ wchar_t Surname[200]; wchar_t Firstname[200]; } Description: Data structure for receiving the function result. All function result will be stored as Unicode (UTF-8). ...

Is it safe to pass function pointers as arguments to dll functions and invoke them from inside of the dll?

I would like to pass some (dll or not) function pointers as arguments to some dll functions and call them from inside of the dll. I wonder if it is safe because I have found an information on http://publib.boulder.ibm.com/infocenter/zos/v1r10/index.jsp?topic=/com.ibm.zos.r10.cbcpx01/fpref.htm that: In DLL code, it is assumed that a func...

Strange dll error message.

For about 2 weeks now, I have been unable to run any UnitTests (built in VS unit tests) for a project. Previously everything worked fine. The error message is: Could not load file or assembly 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\MyProjectName.XmlSerializers.dll" or one of its dependencies. The p...

Is it possible to view source code of assembly? If yes then How?

Hi, I m using a assembly EventCalender. The ddl is EventCalender.dll. I copied this assembly from existing application. It provides customized functionality to calender. I want to see the code of that dll and want to change some functionality of it. How it will be possible..? Thanks in advance. ...

pack xml files inside dll,c#

I have a .NET C# 2.0 Project and it refers to many .xml files, i'd need these files when i port my project to another location or distribute it. I'm currently not interested in making it as a setup.exe file. I want to to be standalone. currently i've got all of them in a folder "FILES" within my project. So what i want to know is Can i...

ASP.Net app calling DLL with fOpen...

Hello, I have ASP.Net web app and my c# code calls into a custom COM DLL. The DLL was written awhile back and uses fOpen. he fOpen calls return a NULL pointer. I am suspecting it is permissions, but I am having no luck in recolving the issue. Can anyone give me any ideas of what to do? Can fOpen be used? Are there special permissi...

Importing explicitly instantiated template class from dll.

Being a dll newbie I have to ask the allmighty SO about something. Say I explicitly instantiate a template class like this: template class __declspec(dllexport) B<int>; How do I use import this templated class again? I've tried the adding the code below in my .cpp file where I want to use B template class __declspec(dllimport) B<i...

My team member added a reference to a third party DLL and did a check-in...now I can't build.

My team member made a reference to a DLL on his local drive (e.g., C:\mystuff\thirdparty.dll) and checked in the project with the reference. I refreshed my local copy of the project and now I have a broken reference: <The system cannot find the reference specified>. I have the thirdparty.dll on my local machine, but it is not in the sa...

How do I use an unmanaged class from a managed DLL in .net?

I have an unmanaged class that I'm trying to dllexport from a managed DLL. I'm trying to use the unmanaged class in another managed DLL. However, when I try to do this I get link errors. I've done this lots of times with unmanaged DLLs so I know how that works. I know how to use "public ref" etc in managed classes. Is there some flag s...

Trouble compiling dll that accesses another dll.

So, I have an interesting issue. I am working with a proprietary set of dlls that I ,obviously, don't have the source for. The goal is to write an intermediate dll that groups together a large series of funnction calls from the proprietary dlls. The problem I am having, when compiling with g++, is that I get errors for the original dl...

VC90 Debug CRT error

I have created a Dll in VC++ 2008. But it is working with some other software (VB). Unable to load that dll function in Labview. VC90 Debug CRT error is coming. Why is this software not supporting my dll? ...

DLL versus Assembly

what is the difference between DLL and Assembly Exact duplicate: Difference Between Assembly and DLL ...

How do I use WTL in a DLL?

I'm trying to use WTL within an in-process COM server DLL (an IE BHO), but am struggling with _Module. My DLL needs CMyModule derived from CAtlDllModuleT<>: class CMyModule : public CAtlDllModuleT< CMyModule > { public: DECLARE_LIBID(LIBID_MyLib) DECLARE_REGISTRY_APPID_RESOURCEID(IDR_MYPROJ, "{...}") }; CMyModule _Module; ext...

MFC canned DllMain does not call ExitInstance for DLL_PROCESSS_DETACH?

The canned DllMain for MFC 8.0 does not seem to call ExitInstance when it gets a DLL_PROCESS_DETACH. One possible solution is to define my own DllMain, but how do I tell the linker to use mine and not MFC's? Or, is there another override which gets called on DLL_PROCESS_DETACH I'm not aware of? ...

Can multiple versions of a same (Boost) DLL co-exist in same process?

My (C++, cross-platform) app is heavily using Boost libraries (say version 1.x), and I want to also link against a 3rd-party (vendor)'s SDK (no source), itself using Boost (but version 1.y). So, we both link dynamically against our own version of Boost DLLs, CRT being identical. Consequently, at run-time my app would have to load both D...

Seeking suggestions for Unit Testing C++ app spread over several dlls

New to unit testing and have an app that is spread out over several dlls. What are some suggestions for unit testing the app? If I put the unit tests in their own project, i can only test the published interface for each dll. Is that what most people do? Or should I put the unit tests in with the code in the dlls and test there? Wha...