dll

dll question (Load-time dynamic linking and Run-time dynamic linking)

What is the difference between Load-time dynamic linking and Run-time dynamic linking? Thanks! ...

IDL, ODL, MIDL, DLLs but not COM if I can help it.

Using Matt Curland's Type Library Editor, I wrote a Typelib for Nick Yakowlew's Charset Detector Library. This is a standard DLL (written in Delphi as it happens) and not a COM DLL at all. Up until this point I had been building ODL and thus TLB files "by hand". The benefit of this was that I could get Intellisense working in Visual Stu...

callback function from unmanaged dll in VB .NET

I'm trying to use an unmanaged dll in VB.NET. The example source code provided with the dll is in VB6 and below is my attempt to convert it to .NET. When the dll tries to do a callback I get a "Attempted to read or write protected memory" exception. I really don't care about the callback function getting actually called. My code: <DllI...

License restrictions on including a DLL in another repo?

Answered: They don't allow any kind of redistribution with 2.6, supposedly, unless you have licenses for it. But they don't sell licenses for it. But they give it away free. But, who knows, i think they just want us to buy an overpriced thing we don't need to write a free utility. I guess I'll look at NVelocity or TaHoGen... I ...

Throwing/catching exceptions from C'tor of a static object in C++

Hi all, I have a case in which I have to read an input file in the C'tor, but sometimes this file doesn't exist. This object is usually held statically, so its C'tor is called while loading the dll. I can't catch the exception I throw if the file doesn't exist because it's too early, and my executable crashes in an ugly way. I know it's...

Is __declspec(dllexport) needed in cpp files

Probably a simple question but I only have Linux to test this code on where __declspec(dllexport) is not needed. In the current code __declspec(dllexport) is in front of all files in the .h file but just in front of like 50% of the functions in the cpp file so I am wondering if they are really needed in the cpp file at all ? ...

RunDll32 Problem on Win2k with Visual C++ 2008 Express Compiled DLL

First off, I'm not a C++ programmer (but I am learning). I have finally managed to modify and compile some C++ source code using Visual C++ 2008 Express Edition. I've tried to get the same code compiled in the full version of Visual C++ 2003 without success (I get a wide variety of errors, but no luck). The problem is that everything is...

How is shared dll (GAC ) loaded to memory and used in comparison to private dll.

Hi I'd like to point out that I know how to add/remove assembles to/from GAC. What I am asking for is if someone could explain me how does it work from the technical point of view. What's the point in putting dll's there - from the point of view of saving the resources. Kind Regards pk ...

GAC behaviour

I put signed dll into GAC. I delete this dll from folder where other applications could reach it. I try to run client app, which used that dll. Dll is immidiately put back to the original folder. How does it happen? I am guessing that GAC is monitoring folder and when it detects that dll is missing it puts the latest version back to the...

Work out the type of c# application a class contained in a DLL is being used by

Is there any way to know in C# the type of application that is running. Windows Service ASP.NET Windows Form Console I would like to react to the application type but cannot find a way to determine it. ...

Correct name for non-COM, non-.NET DLL?

In the Windows world, what is the correct name for a good. old-fashioned C++ DLL with exported functions? Not a COM DLL, not a .NET DLL. The kind of DLL that we used to invoke by calling LoadLibrary() and GetProcAddress()? I've always called them "flat DLLs" because the caller cannot instantiate objects from the DLL, but what is the co...

How to load a c++ dll file into Matlab

I have a C++ dll file that uses a lot of other c++ librarys (IPP, Opencv +++) that I need to load into matlab. How can I do this? I have tried loadlibrary and mex. The load library does not work. The mex finds the linux things (platform independent library) and tries to include them. And that does not work. Does anyone have any good i...

Conditional registration of certain dll(s) during installation process. (vague)

I have an application that will use a device in some cases (i.e. printer). Basically, in one office this printer will be used, and in another office this printer will never be used. The functionality to use the printer is sitting in the application code, and the dll's that communicate with the printer are referenced in the code. So the ...

Using C++ Class DLL in C# Application

Hello, I have an unmanaged C++ DLL which merely exports a single class (not COM...it's just a simple C++ class) as its interface. I want to use this class in C# but am told that it cannot merely be imported into C#. What is the right way to use this class in my C# application? ...

Exporting functions from C++ dll to C# P/Invoke

I have built a C++ dll that I would like to call from C# code. I'm able to call one function, but the other throws an exception when the C# code tries to load the dll. The header looks like this: extern "C" __declspec(dllexport) BOOL Install(); extern "C" __declspec(dllexport) BOOL PPPConnect(); This produces a dll with slightly conf...

Embedded a *.exe into a dll

Hello does somebody know how can I embedd an exe file into a dll ? I have a tool which is an exe file that I call from c# code. The thing is that I want to have 1 dll containing this tool (exe file) and the dll containg my c# code. Is it possible to embedd this exe file within the resources? Thx in advance ...

How to debug a Bad DLL calling convention error in MSAccess VBA code

Hi, The title says it all I made some changes to a function in a module and then got the error. How do a debug it to find the cause? The error occurs on the Exit function statement of the function...great hey! Malcolm ...

calling c dll from fortran

yes, I need to do the following on visual fortran... any good resources ? ...

how to create a com dll using visual studio 2008.

how to create a com dll using visual studio 2008.what are the custome settings needed for creating dll. that dll should be used in microsoft navision(ERP PACKAGE). ...

Methods of sharing class instances between processes

I have written a C++ class that I need to share an instance of between at least two windows processes. What are the various ways to do this? Initially I looked into #pragma data_seg only to be disappointed when I realised that it will not work on classes or with anything that allocates on the heap. The instance of the class must be acc...