dll

C++ function calling from C# application. Attempted to read or write protected memory

The problem below is ralated to my previous question http://stackoverflow.com/questions/2384932/converting-static-link-library-to-dynamic-dll My first step was to develop a dll, that was done. (Thanks John Knoeller prakash. Your input was very helpful) Now when i call the function in the dll from my c# application i get the error "A...

Launch a .NET DLL from an ASP.NET page

I'm working with a intranet website written in ASP.NET and need to be able to access a DLL that is installed on the user's computer. I can get it working if I'm hosting the site locally but when I try to access it from another machine it does not work. I realize this could be a dangerous tool to use but if you have a valid business purpo...

Late Loading a .net plugin dll

I have a C# .Net 2.0CF application where I would like to load a .NET 'plug-in' DLL at runtime. As I understand it, I should be able to use the System.Reflection.Assembly.LoadFrom() to load the DLL to an Assembly. Then use Assembly.GetTypes() to get the list of types within the plugin to match them to my expected interfaces. The problem...

Can we Use Ajax DLL 3.5 in 2.0 Framework

I want to use the ajax dll 3.5 in the website of framework 2.0 so is this possible by adding assembly or any other ways... ...

Creating an MSVC import library from a DLL that uses stdcall

I have a dll that exports extern "C" __declspec(dllexport) int __stdcall Foo( void ); A dump of the dll shows ****************************************************************************** Section: Exports File Offset: 00001400 (5120) Flags: 00000000 Time Stamp: 00000000 Major Version: ...

Get HModule from inside a DLL.

I need to load some resource from my DLL (i need to load them from the DLL code), for doing that I'm using FindResource. To do that i need the HModule of the DLL. How to find that? (I do not know the name (filename) of the DLL (the user can change it)) ...

DLL include in exe.file?

I build a project in C#. From another project I have 5 DLLs. Is It possible to include the DLL in the exe, that I only give 1 File to people and not x files? I tried ILMerge, but the output file ever opened a Command prompt with the application - useless. ...

C++ Access violation when calling dll function

I have a function definition in my VC++ Win32 DLL DEMO2_API void ProcessData(char* i_buff, unsigned short i_len, char* o_buf, unsigned *o_len, unsigned short *errorCode) { __describe (i_buff,&i_len,o_buf,o_len,errorCode); } This dll function is called by a c# application. When called, it generate access violation exception. Afte...

Why do I get LNK2005 errors when compiling a PHP extension DLL

Hello! I'm trying to compile a PHP extension in VS2008. It is dependent on 3 other projects which I link statically. It used to work fine when I had all my code in one .cpp file. I separated the code into several files to make it more manageable and now it won't compile. I'm getting several (~100 per file) linker errors, LNK2005 (alrea...

Adding DLLs to VS2008 IDE

How do I add Prolog DLLs to VS2008 in order to embed Prolog within C++? Are these three dlls sufficient: libpl.lib plterm.lib pthreadVC.lib Thanks, ...

Switch/case without break inside DllMain

I have a Dllmain that allocates Thread local storage when a thread attaches to this DLL. Code as below: BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { LPVOID lpvData; BOOL fIgnore; switch (ul_reason_for_call) { case DLL_PROCESS_A...

Using ACE_Service_Object

I'm trying to use the ACE_Service_Object or the ACE_Shared_Object. I'm not sure which one is applicable. I'm trying to encapsulate some functionality in a DLL so a consumer of the DLL would open the library, create an instance of the exported class, call some functions on the class, and then destroy the class. A basic plug-in architec...

Issue while loading a dll library file... java.lang.UnsatisfiedLinkError: Can't load library

Hi, While loading a dll file, I am getting the following exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\Transliteration\rlpnc-3.1.0-sdk-ia32-w32-msvc80\rlp\bin\ia32-w32-msvc80\btrntjni.dll: The system cannot find message text for message number 0x%1 in the message file for %2 at java.lang.ClassLoader$Na...

DllRegisterServer error 0xc0000005, (C++ COM Dll). how do I debug my DllRegisterServer function in Visual Studio 2008?

Hi All. I have written a COM dll, and wish to register it using regsvr32 myComdll.dll I get an error : DllRegisterServer failed, Return code was: 0xc0000005 I want to debug my DllRegsiterServer function, but I do not know how to set up Visual Studio 2008 to run regsvr32 in debug mode... Thanks Roey ...

Get window handle of calling window

Hello, there is a software which calls a method in my C# dll. In this dll method i need to have the window handle of the program/window which called my dll. how to get this "calling window handle"? Thanks! ...

How to configure build numbers in Visual Studio to enable dll comparison

Hi Everyone- I am building a C# solution in Visual Studio 2008 that has several projects and project dependencies. I am looking for a way to change dll version numbers ONLY when the code that builds the project changes. I currently use Beyond Compare to compare my locally built version to the production file system. The goal is to ON...

Build error For Web Application in VS2008 when Intellisense Works

When building the solution, the code behind is not picking up changes made to the applicaitons dlls. Intellisense works, and the page builds when using the "Build Page" command, however when trying to build the entire solution the build fails. Does anyone know why this might be? ...

How applications can be protected from errors in DLL module.

I have DLL and application that will call some function in this dll. For example... DLL function: char const* func1() { return reinterpret_cast<char const*>(0x11223344); } Application code: func1 = reinterpret_cast<Func1Callback>(::GetProcAddress(hDll, "func1")); blablabla char const* ptr = func1(); cout << ptr; That DLL i...

Tool for Importing C++ DLL

My company uses a third-party C++ DLL which is updated periodically. I've been manually creating C# DLLImport statements, but in this last update the number of functions nearly doubled. Is there any tool (preferably free) that will create C# DLLImport's from an unmanaged C++ .dll or .lib file? (The DLL exports decorated C++ functions,...

Is there anyway to export a function (not a class) in VB6?

I want to create an ActiveX DLL from Visual Basic 6 from which I would like to call some public functions. I will call this DLL only from VB6. However, it seems that only classes get exported. Is there any workaround? I know there is a way to create DLLs from VB6 with standard WINAPI functions. This is not what I want, because I would ...