dll

Making a Windows .exe with gui2exe does not work because of missing MSVCP90.dll

I'm trying to compile my python script into a single .exe using gui2exe (which uses py2exe to create a .exe). My program is using wxWidgets and everytime I try to compile it I get the following error message: error MSVCP90.dll: No such file or directory. I have already downloaded and installed the VC++ redistributable package, so ...

Using shared_ptr in dll-interfaces.

I have an abstract class in my dll. class IBase { protected: virtual ~IBase() = 0; public: virtual void f() = 0; }; I want to get IBase in my exe-file which loads dll. First way is to create following function IBase * CreateInterface(); and to add the virtual function Release() in IBase. Second way is to create a...

obj\Debug\XPExplorerBar.dll' doesn't contain any UserControl types.

I downloaded some code from codeproject ... this allow me to have an "Themed Windows XP style Explorer Bar" incorporated in my project -- when i build it -- everything is fine - but when i run the program a get a message like obj\Debug\XPExplorerBar.dll' doesn't contain any UserControl types. Can anyone help.. ...

Decompiling code (language independent)

Hi, I am curious about how to view the source code present in a DLL, irrespective of the language used. Is there any software available for this? Thanks ...

Why can't .NET dlls be included with the app using "copy local" - so that installed .NET is not needed

Quite simple question, and I really wanna know the reason (the real reason) behind this. Say you want to distibute a .NET app to computers without .NET installed (not even 1.1). Why can't we just include mscorelib.dll & others with out app? Is it because CLR must be installed in some way, to gain JIT capabilities for intepreting IL? I ...

How to test if a DLL can be loaded without an error

Hi..! I have a native C++ application (no fancy .Net stuff just C++). However it uses some optional .Net assemblies through mixed mode wrapper dll files. These dlls are loaded using delay load. Thing with mixed mode wrappers is they need to be fully trusted in order to load. So when the application try to use the dll if it is not there ...

How to use a C++ module from a Mono app

I'm trying to run my C#/C++ app on Linux after developing it on Windows. A small part of it, FooLib, is written in C++ which is pinvoked from C# for performance. FooLib uses no system calls, only standard C++ functionality. It exports a single function, declared as: extern "C" __declspec(dllexport) void Foo(float*, int, float*); It's...

Find Windows DLLs not compiled with SafeSEH

Hello, I'd like to find out which of the DLLs located in various of my installed softwares have been compiled with SafeSEH and which ones haven't. Is there a tool that could give me that information, otherwise what would be the best solution to code something that does that verification? Thanks in advance. ...

how to make a jar file that include dll files

hi all, i bought a third-party java library which include a jar file and two dll files. i wrote my own java program which invoke the third-party jar file. now my question is how can i package all my code into a single jar file which include all my code and the third-party jar and dlls? great thanks. ps: i know swt is such a case. the s...

Calling a DLL from C# (VS2008)

I have a DLL (Test.dll) which contains some Excel Addin, i don't know which version this is build with (might be with VB6, but i am not sure). When i tried referencing this DLL in the VS2008 i get the message A reference to the <DLL Name> could not be added. Please make sure that the file is accrssible, and that it is a valid assembly ...

System.AccessViolationException when calling DLL from WCF on IIS.

Hi guys. I've created just a test WCF service in which I need to call an external DLL. Everything works fine under Visutal Studio development server. However, when I try to use my service on IIS I am getting this error: Exception: System.AccessViolationException Message: Attempted to read or write protected memory. This is ...

I Don't get the WM_GETMINMAXINFO message from other applications

Hello! In my C-Dll there is a Windows hook: hook = SetWindowsHookEx(WH_CALLWNDPROC, CallWndProc, hinstance, 0); With this Callback method: LRESULT CALLBACK CallWndProc(int nCode, WPARAM wParam, LPARAM lParam) { ... CWPSTRUCT* cw = reinterpret_cast<CWPSTRUCT*>(lParam); myfile << "CallWndProc allg. " << cw->message << "\n"; if (cw->...

Windows: Changing the DLL search order for an Exe

Hi, I have a C++ Exe in an application directory which contains the DLLs used by it. Now, for some testing purpose I need to modify an existing DLL and use that instead of the original one. But in order to not modify the existing installation I cannot backup the existing DLL and replace it with the modified one or move the existing one ...

Catching WM_GETMINMAXINFO from notepad.exe doesn't work

Hello! I want to catch all WM_GETMINMAXINFO messages which are sent to the "nodepad.exe" application. My base app is written in C#, the DLL with the windows hook is written in C. Let me show you the hook inside the C DLL: file: dll.h #ifndef _DLL_H_ #define _DLL_H_ #include <windows.h> #if BUILDING_DLL # define DLLIMPORT __declspec...

Trying to create a Math Input Panel in C#

How do I create a Math Input Panel in C#? I have tried to put it into a dll and call it but it just closes right away. #include <stdafx.h> #include <atlbase.h> #include "micaut.h" #include "micaut_i.c" extern "C" __declspec(dllexport) int run() { CComPtr<IMathInputControl> g_spMIC; // Math Input Control HRESULT hr = CoInitializ...

C-DLL from C++ source

I have a C-Wrapper for my C++ Framework. Since this should run on mac and windows I am using scons: env = Environment() env.Append(CPPPATH = ['./']) env.Append(LIBS = 'kernel32.lib') env.Append(LIBPATH = 'C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib') env.SharedLibrary(target='warpLib', source='warplib.cpp') Simple Versions of w...

Scons on Windows: kernel32.lib

I have an SConstruct file for scons: env = Environment() env.Append(CPPPATH = ['./']) env.Append(LIBS = 'kernel32.lib') env.Append(LIBPATH = 'C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib') env.SharedLibrary(target='warpLib', source='warplib.cpp') If I don't inlcude 'kernel32.lib' and specifiy the LIBPATH I get a link error. My s...

Is there a regular expression dll or library that I can use for a language that does not have one?

Hi, I program in Visual DataFlex. Are there any libraries that I can use to give my programs regular expression matching? It could be ActiveX, or COM, or maybe even just a DLL. ...

How to detect programmatically whether code is running in shared DLL or exe?

A have a C# class which simplifies the handling of global hot keys. This class uses the Win32-API function RegisterHotKey() to register the hot keys. According to MSDN this function needs an ID value in the range 0x0000 through 0xBFFF when calling from an application and an ID value in the range of 0xC000 through 0xFFFF when calling fro...

Analyzing application fault in msvcr80.dll, fault address 0x00008aa0

I'm debugging an intermittent problem in which an application (created using C++ in Visual Studio 2005) is faulting. The event log provides the following information: faulting module msvcr80.dll version 8.0.50727.1433 fault address 0x00008aa0 I did a Google search and found many other examples of applications crashing with this parti...