dll

Is there a way to unload or reload the currently loaded runtime?

Ever since we started upgrading some of our projects to .NET framework 4.0, I've been running into a lot of issues regarding the following error: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. It's now happening with our installer application. The installer goes through a list ...

PInvoke DLL That Uses Other DLLs - ClickOnce Question

I'm creating a .NET DLL that acts as a wrapper using PInvoke on an unmanaged DLL. My question is, if I'm PInvoking an unmanaged DLL that references other DLLs when using click once, which DLLs do I need to include with the deployment of a project that uses that .NET Wrapper DLL? Files involved: Project that uses click once deployment...

Is there any concept in c++ like reflector in .Net?

i like to get code from c++ dll ,i know we easily get from .Net dll by reflector. Is there any method available in c++ for this? Thanks In Advance ...

How to correctly write a C++ DLL that will load in debug mode too without crashing

Hi, my problems deals with native C++ DLLs (Visual Studio 2005, if it matters) and how to write them in order to insure that: when the DLL is compiled in release mode, it will be correctly loaded by an EXE compiled in release or debug mode (first priority) when the DLL is compiled in debug mode, it will be correctly loaded by an EXE co...

dll debug in C language

I want to debug one api call of dll? It is written in C language. I do not know the calling process,so I need to write one process which can call api of above dll? I am using VS 2005. Can I get help for the same? ...

Java: Calling .dll from a LOCAL applet... I'm doing something wrong

There should be no security restriction because the applet is locally installed. Yet I get: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jzmq) when my app tries to call static{ System.loadLibrary("jzmq"); } What gives? What am I missing for it to work smoothly without a security ...

RtlValidateHeap problem when unloading JVM after JNI_CreateJVM loaded

I have trouble with the jvm.dll when after the returning from the function below I get the error message _HEAP[test_heap.exe]: Invalid Address specified to RtlValidateHeap_ At the moment I dynamically load the JNI_CreateJavaVM method only, everything goes well until I go past the final return statement of the function test_heap below: ...

problem in dll call in writing the calling process.

I have following function defined in one dll: __declspec( dllexport ) int __stdcall mjscall(char *cmd, DWORD wtime, char *stdoutfile, char *stderrfile ) I need to write one process to call the above function. I am doing it first time,I do not have much idea. I have written the following code #include <windows.h> #include <windows.h> ...

COM exception on "custom component" - how to identify DLL?

We have a large legacy VB app made up of a number of DLLs (a couple of dozen or so), all installed into a single COM+ Server Application. Every now and then, something happens that causes dllhost.exe to keel over (and automatically restart), leaving this message in the Windows Application Event log... The system has called a custom c...

BadImageFormatException when using native DLLs from ASP.NET

Hi Iam referencing in my ASP.NET application a managed C++ project which makes use of a native dll named "libmmd.dll". If I run the ASP.NET application with visual studio I get an BadImageFormatException which tells me "The module was expected to contain an assembly manifest" (translated from german). What is the preferred way to includ...

how to deploy sqlite with .Net

I got a report from a user that when they installed my .net 2.0 app they got a message that a reference to system.data.sqlite.dll could not be found. I use Inno to install it in the same folder as the executable and no problems from others. Does it make any difference what the copy local property is when I add the reference in VS? my und...

Merge OCX with .NET EXE

Is there any tool, commercial or freeware, that allows merging OCX files with .NET executable? I know it's possible to make an isolated OCX reference, but that's not sufficient in my case, I need to get a single exe without installation requirement. Thanks. ...

Communication web-windows server: Proxy DLL, web-services or windows service + WCF?

I have a decent sized chunk of .NET code that now needs to be accessed by an ASP web page. Transactions need to be sent at regular instances to this "server" for processing. Processing takes less than a second and there are maybe 100-1000 such transactions a day I've really only worked with COM and windows services before, so my normal ...

Disassemble a Dynamic Link Library with OllyDbg

Is there a option I can choose how to launch the DLL(like when debugging a dll project in visual studio)? As it seems to me when I drop the DLL into OD,the only option I have is to launch it by LOADDLL.EXE, is that the whole story? ...

What's the principle of LOADDLL.EXE?

It can be used to run arbitary Dynamic Link Library in windows, how can it possibly know the entry point of an arbitary dll? ...

Cannot add System.Web.dll reference

I'm trying to use the HTTP functions contained in the System.Web.dll assembly. However, whilst the dll seems to exist in the same directory as every other dll Visual Studio 2010 references in my project, it fails to link in and raises a warning - "The referenced component 'System.Web' could not be found". The dll, however, is definitely ...

Splitting classes out into DLLs using VS2008 C++

I've got a VS2008 C++ solution containing one project which is a Win32 console application. I have developed a few classes that I want to re-use in another project. Apart from copying the source files into new projects, what's the correct way to turn my classes into some sort of reusable component? Should I be using a standard DLL, or a...

how to pack few c# dll's into one dll

Hi I have few dll's of c# code and I want to pack it to one dll. I am looking for something like ilmerge in linux. Do anyone know an alternative? Thanks, Ohad. ...

Getting Function for a DLL Address Following a Crash

I know that when an application crashes, the system reports that it crashed at location 0x00004b79 in mydll.dll. I have the source code, and I have the binary, but I don't have a PDB or any listing files from the build of that DLL. The crash is repeatable, but I can't install a debugger on the production machine, and the crash does not...

IronPython -> .exe Executable & distribute with all DLLs HELP

Been trying to compile this IronPython program into a working .exe for the past 3-4 hours with no luck. I'm using the pyc.py that came with "IronPython 2.6 for .NET 4.0" D:\IronTestCompile>ipy pyc.py file1.py file2.py /out:Program /main:program.py /target:exe The program compiles out to Program.dll & Program.exe but the Program.exe ca...