dll

Load 32bit DLL library in 64bit application

Is there a way to load a 32bit DLL library (something with the same usage as LoadLibrary) I would like to use that function along with GetProcAddress. I looked at WOW, but it does not seem to offer the functionality. The functionality should exist, since tools like DependencyWalker are able to read the symbols of a 32bit dll even though...

Memory / heap management across DLLs

Hello altogether, Although it seems to be a very common issue, I did not harvest much information: How can I create a safe interface between DLL boundaries regarding memory alloction? It is quite well-known that // in DLL a DLLEXPORT MyObject* getObject() { return new MyObject(); } // in DLL b MyObject *o = getObject(); delete o; ...

Delphi: Calling a function from a vc++ dll that exports a interface / class

Hello, i have some trouble accessing a dll written in vc++ that exports an interface. First i tried to use classes, but after some google-search i came to the solution, that this i not possible. I just want to make sure, that the plugin interface can accessed, by using other languages like c++. Delphi Interface IPlugIn = interface fu...

Reference images stored in external dll using wpf

Hi all, I have a wpf application and a class library(dll) project. In my dll I have an images folder with some .png files set as Resource. I want to reference and display the image using the wpf main application. Any ideas? I want to do this in the xaml not the code behind if at all possible. Ta, Matt. ...

Getting ordinal from function name programatically

Hey, Does anyone What's the easiest way in C++ to get an ordinal of an exported dll function, given its name? (Looking for a way which doesn't invlove parsing the IATs myself...) Thanks, Dan ...

Fully specialised templates and dllexport

Hello, Microsoft says: “Templates cannot be used with functions declared with __declspec (dllimport) or __declspec (dllexport).” (link). What does this mean? Can I export a function which has a fully specialized template class reference as an argument? ...

Can I programatically deduce the calling convention used by a C++ dll?

Imagine you'd like to write a program that tests functions in a c++ dll file. You should enable the user to select a dll (we assume we are talking about c++ dlls). He should be able to obtain a list of all functions exported by the dll. Then, the user should be able to select a function name from the list, manually input a list of argume...

Delphi - Form in DLL - Hints not showing

I have a Delphi form inside a DLL (I know that this restricts the use of the DLL to Delphi but this is not a problem in this case). The DLL exports a function ShowForm that looks roughly like this: procedure ShowForm (App : TApplication); begin OldApp := Application; try Application := App; MyForm := TMyForm.Create (nil); ...

Windows, getting CLSID for DLL?

I want to have a small app to add and remove user defined context menu entries from the registry. To make this somehow I need to get the CLSID of an arbitrary DLL so I can back up previous entries if they exist and then write new ones. Although regsrv32 somehow manages to create this magical number, I didn't find any answer with google. ...

using dll in matlab

Hello everyone. i have a problem to using a dll fortran in matlab. i couldn't use a dll ,that is built by fortran, in matlab. i use "loadlibrary" instruction in matlab but the error is related to header files. what is header files?? please give me more information to load a dll fortran in matlab and call it. ...

mapping user defined data type (VBA) to C++

Hi, Can somebody please tell me how to pass a VBA user defined type to a c++ (dll). I specially need to know how to handle string type of VBA in the dll. Thank You ...

Any working example of compiling a DLL in wxWidgets

I have found some examples of how to compile a DLL in wxWidgets but none of them compile in wxWidgets 2.8.9 Examples, such as, http://wiki.wxwidgets.org/Creating_A_DLL_Of_An_Application (here some of the download links don't even work, such as, http://www.frogmorecs.com/dl/fromdll.zip). Even the code at this forum http://wxforum.shadone...

Redistributable compiler - DLLs for MS Visual Studio

I'm making a programming learning game for my senior project and I'm looking for a compiler that can compile a DLL that can then be dynamically loaded into a Visual Studio 2008 C++ application. The important idea here is that the compiler is redistributable. If VS was redistributable I'd be using that. So far I'm had some success using...

Is it possible to mix static, multi-threaded, DLL libraries in one project?

Is it possible to use distinct libraries A, B, C in the same project in Visual Studio, where A is a static library, B is multi-threaded and C is a multi-threaded DLL? Or do they all have to be the same type for a single .exe output? Edit: Sorry, A is a single-threaded static library. B is a multi-threaded static library, C is a multi-th...

Windows & C++: extern & __declspec(dllimport)

Hello, What is the difference/relationship between "extern" and "__declspec(dllimport")? I found that sometimes it is necessary to use both of them, sometimes one is enough. Am I right that: "extern" is for statically linked libraries, "__declspec(dllimport)" is for DLL (dynamically linked libraries), both do actually the same job fo...

CallBack function from c# to c++

Hi All, I have a C# exe and some vc++ dll's . I am creating a callBackFunction in C# whichh takes structure as its Parameters. My c++ dll will fill this structure and return it back.But 95% of the time My Exe crashes. My dll is multi threaded and my C# has backgroundWorker in it. I have put try catch block to check if any exceptions are...

How to select the version of the VC 2008 DLLs the application should be linked to?

I'm using Visual Studio 2008 SP1 for C++. When compiling, Visual Studio needs to choose against which version of the CRT and MFC DLLs the application should be linked, version 9.0.21022.8 (= RTM), 9.0.30729.17 (= SP1) or 9.0.30729.4148 (= SP1 with security update). I'd like to know how you can choose which of both versions will be linked...

C# project reference's question

I have a c# solution and its composed of numerous projects. I have a project that is my baseassemblies that holds all common information that other projects use. All of the other projects have references to baseassemblies. I added a dll reference in my baseassemblies however all of the other projects cant see it. How can I make it so ...

Assigning a version number to a DLL created using CSharpCodeProvider

I have a method that creates a DLL from a .cs file that is based on the code found here on MSDN. Using that code, is there any way to specify the version number of the DLL that gets generated? Right now it's always 0.0.0.0. I can't find a property or constructor that I can call to specify the version number. ...

Can anyone describe in detail how to set up javasci (SCILAB) in eclipse right, please?

hi, I am trying to set up SCILAB's javasci ineclipse for the whole day, but it's not working and I don't know, what they want to tell me with http://www.scilab.org/product/man/compile_and_run_javasci.html in included the javasci.jar in the properties/libraray so that eclipse knows the special comands but afterwards it desn't work. I co...