dll

How to determine the name of the DLL (string) that loaded my DLL?

I'm writing a device driver that is loaded by a 3rd-party driver. I need a way to determine the name of the 3rd-party driver that is loading my device driver (for debug purposes). For example, GetModuleFileName will provide me the name of the executable. I'd like instead to be able to get the DLL names. The stack trace may be one o...

How to use .dll in java

hi, i how can i want to make use of dll in java. is there any way to do this ...

sharepoint change newform within webpart dll

I want to change textbox in NewForm within custom dll that imported to the page. I have NewForm and paste there asp textbox and SP formfield (want to change anyone): <asp:TextBox id="test" runat="server" >Tex</asp:TextBox> <SharePoint:FormField runat="server" id="ff3_test" ControlMode="New" FieldName="Customer" OnLoad="alert(this)"/> ...

Display WinForm Image in WPF application

I have a dll with quite a bit of System.Drawing.Image resources that I have wrapped into static properties so I can update them dynamically. I would like to use the images through xaml in a WPF application, but the only way I can figure is to do it through the code behind manually. Is there a way to do the winform to wpf image converti...

How to load a library that depends on another library, all from a jar file

I would like to ship my application as a self-contained jar file. The jar file should contain all the class files, as well as two shared libraries. One of these shared libraries is written for the JNI and is essentially an indirection to the other one (which is 100% C). I have first tried running my jar file without the libraries, but h...

Installation of .NET dll libraries questions.

For downloading and installing .NET/dll, all I need is copying the dll to a specific directory, and let the .NET know about it. Is this correct? I use mono, so with mono, I set the MONO_PATH to include the directory. And, it looks OK. Here are my questions. With some libraries, not only dll file, but also xml file is provided. For e...

C++/CLI: Public ref struct generates C2011: 'class' type redefinition

Greetings! I have a header file in a managed DLL project like so: Enums.h: #pragma once ... public ref struct ManagedStruct { Bitmap^ image; } ... This header is referenced both from another class in the DLL and from a separate executable. The managed struct alone is generating error C2011: 'ManagedStruct' : 'class' type redefi...

Strange "unresolved external symbols" in VC 2005 import library

I have two projects, the dependency library "DEP", and the caller "test.exe". DEP is compiled to DLL with an import library, while "test.exe" links to the "DEP.lib". In DEP, I have classes like: class __declspec(dllexport) C; class A : public C; class B : public C; Later, I make A and B public in the "DEP.dll" using __declspec(dllexpo...

Centralised/shared COM DLL, possible?

Hi, We have a system that makes a use of 3rd party COM DLL written in vba We have a centralised web application and 1-50 client machines that must reference that COM DLL in order to use our centralised web application. The COM DLL is going to be updated rapidly in the future, which means that it has to be re-installed on every machine...

C++, Qt - How do I get rid of dll dependencies?

Hello! I have compiled my Qt application and now have the following question - now my built project requires QtCore4.dll and QtGui4.dll to be located at the same folder where the .exe file is. (I built my project using MSVS2008 with Qt addon) Q: Is there any way to combine my final application with these .dll files so that they make o...

Reuse C++ Header files

Guys, I have a Visual C++ solution with 2 projects AlgorithmA & AlgorithmB and both share a common header file RunAlgo.h with the class declaration. Each project in the solution has its own unique implementation for the header file. I am trying to compile a DLL out of the common header file RunAlgo.h and add reference to this DLL i...

DLL export of a static function

Hi all - I have the following static function: static inline HandVal StdDeck_StdRules_EVAL_N( StdDeck_CardMask cards, int n_cards ) Can I export this function in a DLL? If so, how? Thanks, Mike Background information: I'm doing this because the original source code came with a VS project designed to compile as a sta...

runtime error when calling a C++ dll from C# .NET windows application

I had a C# .NET windows application having C# user interface and all the code behind processing is done by calling C++ dll (C++ class library project) which is added as a reference to the C# project. However recently when I formatted my computer and again tried to run my project which was backed up, in visual studio 2005 it gave the fol...

FastMM and Dynamically loaded DLLs

I have a host application, that loads a dozen of libraries at start up. I want to switch from Delphi 7s default memory manager to the full version of FastMM4 for better mem leak reporting. Should I include FastMM4 in the uses section of both the host application and the libraries? What about shared runtime packages? -Vegar Thanks fo...

error adding reference in .net 3.5

Hi Im trying to add a reference to a dll i downloaded which I want to use for some sftp work. as soon as i add it i get "could not load file or asse3mble....failed to grant minimum permission requests" Is this to do with my own account permissions? thanks DD ...

How the NPP_NewStream of NPAPI wall called? Automatically or by a plugin-request ?

I have read a lots document on NPAPI but I still do not understand: How the NPP_NewStream of NPAPI wall called? Automatically by Browser, whenever it load a page, an image, an video,.... or manually by our plugin-request ? ...

TFS 2005 version control DLLs in the bin folder?

I noticed that the DLLs in the bin folder for asp.net websites do not seem to be getting saved. When I goto a new computer and get latest I am missing the DLLs. What is the correct way to fix this ? Should I create a seperate folder to contains all DLLs ? And then can I somehow tell my bin references to goto that folder to get the DLLs...

Using C++ DLL in C# project

Hello, I got a C++ dll which has to be integrated in a C# project. I think I found the correct way to do it, but calling the dll gives me this error: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) This is the function in the dll: extern long FAR PAS...

Delphi - COM/OLE starting example needed

Hi! 10 years have ellapsed since I used COM/OLE, and I forget 90% of them. Now we need to make a COM object to access some data from PHP/Python (this is specific thing, the php ODBC don't access the output params of a DataBase - like stored proc output), and my idea the I realize a minimal object with one method, and PHP/Python can call...

DLL configuration file in asp.net site

Hi, I've made a .net 2.0 librabry project, that results in a dll. I've made an app.config file in my project, with settings used in the dll, with the intention that they can be changed later. I'm attempting to use the dll in an asp.net web application now, so I made the reference to my other project's output, and I see that the dll is ...