dll

how to compare dll files

I have a post-build script after building my c# project that will place one of the dll files in a specific directory. This dll is saved in SVN. My question is, is there a way that when building my project, it knows that this dll has not changed and would know not to be copied over to the directory so the there will not be a modified co...

Returning C++ objects from Windows DLL

Due to how Microsoft implements the heap in their non-DLL versions of the runtime, returning a C++ object from a DLL can cause problems: // dll.h DLL_EXPORT std::string somefunc(); and: // app.c - not part of DLL but in the main executable void doit() { std::string str(somefunc()); } The above code runs fine provided both the D...

My exe run only dll's in exe file together. i need run exe from file how can i?

i created imported DLL in references. My plugin need these DLL but they are in common or plugin file if i click reference add dll they import form plugins file . they must be only in only plugins or common not two place. Look picture below: if i click add refrence ClearCanvas's DLL and PluginTest Dll must be only plugins file !!! ...

How to use SAPI's SetNotifyCallbackFunction() in a CLR project with Windows Form as the interface window?

Hi, I'm trying to write a dll plugin for Winamp. I'm using Microsoft Visual Studio 2008 and Microsoft SAPI 5.1. I created the interface window using Windows Form (System::Windows::Forms::Form). I tried to use SetNotifyWIndowMessage(), but the method is never called when I speak to the microphone. So I tried using SetNotifyCallbackFunct...

Compiling DLL with Version Information

What steps are needed to compile Version Information inside a windows DLL from the command line. I have been looking at VersionInfo files, but could not figure out how to link them to the DLL. Thank you ...

Calling unmanaged dll from C#. Take 2

I have written a c# program that calls a c++ dll that echoes the commandline args to a file When the c++ is called using the rundll32 command it displays the commandline args no problem, however when it is called from within the c# it doesnt. I asked this question to try and solve my problem, but I have modified it my test environment ...

creating shared library from c++

when i tried to create shared library file using a "cl" command in vc++, it shows a error saying that "fatal error c1083: can't open compiler generated file 'file.obj':permission denied" can any1 help me...??? ...

Pre-allocate memory between HostApp and DLL

I have a DLL which provided a decoding function, as follows: function MyDecode (Source: PChar; SourceLen: Integer; var Dest: PChar; DestLen: Integer): Boolean; stdcall; The HostApp call "MyDecode", and transfer into the Source, SourceLen and Dest parameters, the DLL returns decoded Dest and DestLen. The problem is: The HostApp impo...

.NET - How to debug a dll ?

Hi, I need to debug a class library project that is provided to the main project (an ASP .NET website) as a DLL. For example, I need to put some breakpoints in order to check what's happening during the execution. I tried this : http://msdn.microsoft.com/en-us/library/605a12zt.aspx, unfortunately it didn't work... Any idea? Thanks [...

Does Speech Recognition using .NET Framework require a message pump?

I'm writing a plugin (dll file), and I'm creating a WinForm as its interface/dialog. If it does require a message pump, how and where should I create one? ...

ERROR_MORE_DATA ---- Reading from Registry

I am trying to create an offline registry in memory using the offreg.dll provided in the windows ddk 7 package. You can find out more information on the offreg.dll here: MSDN Currently, while attempting to read a value from an open registry hive / key I receive the following error: 234 or ERROR_MORE_DATA Here is the .h code that conta...

ERROR_MORE_DATA --- PVOID and C# --- Unmanaged types.

How can I get the value from the following DLL? offreg.dll. In my below code, I have successfully opened the hive, the key and now I am trying to get the value of the key and I keep running into the ERROR_MORE_DATA (234) error. Here is the C++ .dll: DWORD ORAPI ORGetValue ( __in ORHKEY Handle, __in_opt PCWSTR lpSubKey, ...

load/unload C dll with C# problems

I'm having problems with external native DLL. I'm working on ASP.NET 1.1 web application and have this DLL which I load through DLLImport directives. This is how I map DLL functions: [DllImport("somedllname", CallingConvention=CallingConvention.StdCall)] public static extern int function1(string lpFileName,string lpOwnerPw,s...

What is the best practice to wrap up functions into dll for windows desktop application?

Is there any resources that how to create windows application, especially for how to design the dll to wrap up the api calls or the similar? It seems that people don't compile the entire project into a single exe for release and what is the best practice to architect the windows application component based on MVC pattern? Is the dll us...

Why doesn't SAPI's ISpNotifySource::SetNotifyWindowMessage() send the notification to my WndProc()?

I'm using WinForms, and I'm trying to get SetNotifyWindowMessage() to send a message to the WndProc, but it does not do so. The function call: HRESULT initSAPI(HWND hWnd) { ... if(FAILED( g_cpRecoCtxt->SetNotifyWindowMessage( hWnd, WM_RECOEVENT, 0, 0 ))) MessageBoxW(hWnd, L"Error sending window message", L"SAPI Initialization E...

how to call a dll file in c. I want to transmit a xml file to it.

I found many ways, but they are too easy, they always get a return-value from the dll file. dll file: a file with the sufix ".dll" ...

Can I use dll in Turbo C++ program and do we have any dll for lzw compression and decompression

I was trying to create a lzw compression program. But i need to finish it by today itself so i want to use some dll for taking my input as txt file and output to as a text file. I want to do this in TURBO C++ code which are doing my remaining functionalities. Can anyone suggest me some method. ...

Are Multiple singleton instances possible in a shared DLL?

I am going to develop a DLL for an MFC Application, and suppose I have a singleton class in this DLL with some synchronization mechanism. And this DLL is used by other processes, namely EXEs. The question is: is this singleton created only once for all sharing processes or every process has its own singleton? And How can I solve this mu...

Add DLL to NetBeans Project

I want to add dll file into my project. But i don't know where and how to add my dll in NetBeans anyone please help me.. ...

Dynamic linking in Visual Studio

I have to link dynamically with OpenSSL libeay32.dll. I'm writing native c++ console application using Visual C++ Express 2008. I'm including a header evp.h from OpenSSL distribution. Building and...: error LNK2001: unresolved external symbol _EVP_aes_256_cbc error LNK2001: unresolved external symbol _EVP_DecryptInit error LNK2001: un...