dll

Showing DialogBox and MessageBox from DLL

I'm buisy on a DirectX10 game engine and i'm having a problem which has nothing to do with DirectX :P The problem is that in the DLL which contains the engine sometimes a DialogBox is called, just like you would do in normal win32. With the only difference that instead of the HINSTANCE i use the HMODULE which i get when loading the DLL. ...

OpenCV highgui110.dll Link Error

Hello to all, i encounter an error like Error 1 fatal error LNK1107: invalid or corrupt file: cannot read at 0x2C8 C:\Program Files\OpenCV\bin\highgui110.dll Additional Include Directories C:\Program Files\OpenCV\cxcore\include C:\Program Files\OpenCV\otherlibs\highgui C:\Program Files\OpenCV\cv\include Additional Library Directories C...

What is the cleanest way to include and access binary data in VC++ Express?

I have some binary files that I'd like to embed in a dll I'm compiling with VC++ Express Edition. I have a couple ways to do it (like converting the data to arrays that I compile along with the code), but I'm not satisfied and I feel like I'm probably missing an easy, straightforward solution. What's the cleanest, easiest way to do thi...

C++ with Python embedding: crash if Python not installed

I'm developing on Windows, and I've searched everywhere without finding anyone talking about this kind of thing. I made a C++ app on my desktop that embedded Python 3.1 using MSVC. I linked python31.lib and included python31.dll in the app's run folder alongside the executable. It works great. My extension and embedding code definitely ...

Delay Loading DLLs

Hi I am in desperate need of help, I need to manage an application dependency in Visual Studio. The application links to a DLL only on a specific version of windows, lets say Windows 7. and on other environments, the DLL should not be loaded. How will I be able to achieve that using DLL Delay Loading as this topic is completely new to m...

Programatically registering .dll's on Windows Vista (using DllRegisterServer)

Instead of calling regsvr32.exe, one can register a .DLL using the following steps: HINSTANCE hLib = ::LoadLibraryEx(dllPath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); HRESULT (STDAPICALLTYPE* lpDllEntryPoint)(void); (FARPROC&)lpDllEntryPoint = ::GetProcAddress(hLib, "DllRegisterServer"); const HRESULT hRes = (*lpDllEntryPoint)(); This wo...

Pointers in and out of DLLs

Is it possible to pass a pointer to an object into a DLL, initialize it, and then use the initialized pointer in the main application? If so how? Are there any good articles on the subject, perhaps a tutorial? I have read this article http://msdn.microsoft.com/en-us/library/ms235460.aspx But that did not seem to get me any where. Maybe ...

How to compile dll loadable in tcl

Hi, After trying many and searching web option to compile and load dll I could not able to create dll for tcl. Can you explain me how to do this. ...

Why doesn't .NET find the OpenSSL.NET dll?

EDIT (the whole question, it was too unclear) I want to use OpenSSL.NET The OpenSSL.NET install instructions page: INSTALL Make sure you have libeay32.dll and ssleay32.dll in the current working directory of your application or in your PATH. DONE In your .NET project, add a reference to the ManagedOpenSsl.dll assembly. DONE I...

C# AIM Bot Not Loading Libraries from AOL SDK

I am trying to get an AIM Bot set up in C# and I am having issues with the Assemblies. I have tried placing the DLL files in the BIN folder of the project and in the windows/system32 folders. I have registered the DLL files so that I could add them to the project in VS2008. I also attempted the install them into the GAC but I keed get...

Delphi PChar to C++ const char*

I am trying to use a C++ dll from a native program. I am following the virtual method scenario as explained here Lets say my C++ function signature is of the form int Setup(const char* szIp, const char* szPort); And the corresponding delphi signature is function Setup(ip, port: PChar):Integer: virtual; cdecl; abstract; And somewh...

Callback from a C++ dll to a delphi application

Application is written in delphi 2010 and the underlying dll is a C++ dll. In ideal case, when your application is in C++; The dll makes a callback to an application when an event occurs. The callback is implemented through an interface. Application developers implements the abstract c++ class and pass the object to the dll. The dll wi...

What is the best way to initialize an application?

What is the best way of initializing and terminating an application? The library needs to be initialized/terminated only once and can be used by any number of dlls. Is there any standard design to accomplish this? This initialization has to be the very first step. Is singleton is what I need here. Any number of dlls which are loaded...

java.lang.UnsatisfiedLinkError no *****.dll in java.library.path

How can I load a custom dll file in my web application? I tried following ways but its failing. copied all required dlls in system32 folder and tried to load one of them in Servlet constructor System.loadLibrary Copied required dlls in tomcat_home/shared/lib and tomcat_home/common/lib all these dlls are in WEB-INF/lib of the web-applic...

Internal Mechanism of Dynamic Loading DLL's in C++ in OS perpective ?

I am not able to get much information about dynamic loading of DLL files from C++ . I know it does use some functions like LoadLibrary and FreeLibrary with GetProcAddress . But how it works actually internally in the OS perspective like where it actually looks for the DLL file and where it loads like Memory ? can someone help me on that...

Non-administrator account in Vista cannot register ActiveX plug-in (won't let me install .dll)

So I wrote an ActiveX control but I can't install it anywhere when you are not administrator. Does anyone know a work-around for this (that doesn't involve an administrator)? ...

How to include a dynamic library in a makefile build

I am writing a program in Mac OSX 10.6 environment. In my make file, I would like to include a dynamic library /usr/lib/libsqlite3.dylib as part of my build I am not familiar with make file syntax from what I have read over the internet, I believe I have to add -lx /usr/lib/libsqlite3.dylib please advise me on whether or not this is c...

How to access filesystem from within a .NET dll called by classic ASP?

I made a .NET dll and put it in system32 folder and RegAsm it in a win2003 server. One of the API of this dll is to create a file in c:/ folder. And when I call this API from a classic ASP script, always get this error System.IO.__Error.WinIOError So the dll or asp process does not have the sufficient access privilege? How to give it...

log4net - logging for a dll called via COM interop

I've written a .NET DLL which is called from another application using COM interop. I'd like to use log4net, but I need to specify the location of the log file at runtime from the other application. I've always used log4net in the simplest possible way for WinForms project, but since a DLL project doesn't have an app.config, and my cal...

C# for Java/*nix programmers.

I am mainly a java programmer, using linux/os x for as long as i remember. I am extremely comfortable in emacs and usually prefer doing things through command line. I need to create a internet explorer addon for our next project. I need to intercept url ie is about to download and if they meet certain criteria pass it to our application...