I am developing a DLL using C# .NET 2.0 and Visual Studio 2008 Professional. I would like to debug (i.e. set a breakpoint in) it using Attach to Process and attaching it to the application's executable. I think this is working; at least, I'm not getting any error messages. However, any breakpoints that I try to set get disabled with a...
I am porting a program to MS Windows. This program uses dynamically loaded plugins. The plugins reference symbols in the main program. I cannot even get the DLLs past the linker without all symbols being resolved. Is there a way to solve this?
...
I am trying to use several functions from kernal32.dll. However, when my application tries to call the first function it throws an EntryPointNotFoundException Unable to find an entry point named 'SetDllDirectory' in DLL 'kernel32.dll'.
public class MyClass
{
/// <summary>
/// Use to interface to kernel32.dll for dynamic loading...
This is the message I get when trying to run a web application in VS 2008. I tried reinstalling VS but I got the same error.
...
For some reason, whenever my C# .NET 2.0 application makes a call to GetProcAddress it always returns zero.
public class MyClass
{
internal static class UnsafeNativeMethods
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
internal static extern IntPtr LoadLibrary(string lpFileName);
...
Is there a way in .NET C# Console Application to deploy the executable to a different directory than the DLL's it depends on?
In this case I would like to structure my deployment so that on the server where this will run I have the following directory structure.
c:\app\bin\sample.exe
c:\app\dll*.dll
...
Background: Custom workflow activities for Microsoft Dynamics CRM.
Currently we have one project per custom activity, with a single class file in each project.
We would like to have a single project, with multiple class files, each compiling to a separate DLL to allow us to update them individually.
Is this possible?
...
I want to use WPF windows in future applications instead of Windows forms.
The current setup is as Class Library Project with a public static method. I have added a Windows Form item to the Project. In the public static method I create an instance of the Windows Form Class and use the method ShowDialog.
The reason why I use this setup ...
When does Windows Operating System load a DLL into memory?
Does the operation occur when the application starts or when the application first calls one of the procedures in the DLL?
Could a DLL be unloaded once it has been loaded?
...
Hi.
I have a Delphi 2007 Program, which calls a Delphi 2010 DLL. The Program is big and not yet ported to 2010, so there is no way i can change this right now.
I use SimpleShareMem Unit to pass strings but also tried ShareMem with borlndmm.dll.
For one function i now pass a string from the Delphi 2007 programm to the dll (Therefore An...
Do you know a soft which automatically generates C# code (with [DllImport] attributes in .cs) from a native DLL in order to use this DLL in a C# code?
...
I'm writing a dll library in Delphi with multiple threads created by it. Let me describe the problem step by step. I'm sorry for a lengthy description in advance :-(.
Let's forget about the library for a while. I created a windows application that is going to present views from several cameras. I created a window which is meant to show ...
I'm researching how to build some tools in my website and as I'm looking around examples of similar tools in other websites, I've noticed the source code referring to .dll files. I'm relatively new to web development, so I'm only accustomed to seeing references to script files. What are these .dll's that I see referenced in web pages?
...
I'm was trying to write a dll library in Delphi wih a function that creates an instance of a TFrame descendant and returns it. But when I imported this function in an application, every time I called it I would get an exception like "the 'xxx' control has no parent window". I'm not 100% sure, but the exception appeared in the constructor...
How can I call unmanaged C++ Class DLL from C#?
...
I know I read all about surrogate process, and I was able to create a surrogate COM but it either all works in 32bit or all works in 64bit.
What would be the correct structure?
1) 32.dll <- 64.com <- 64.exe
2) 32.dll <- 32.com <- 64.exe
I tried both of the above but I did not succeed to call the 32.dll?
...
I inherited a dll project (Visual C++ 2002) and I'm having a lot of trouble to compile it. Even though the *.def file is in the current dir, VC will only create a lib file, instead of the dll.
Anybody knows what might be going on?
...
I try to load a simple DLL compiled with GCC in cygwin into a C#.NET application. The DLL looks like this
#ifndef __FOO_H
#define __FOO_H
#if _WIN32
#define EXPORT extern "C" __declspec(dllexport)
#else //__GNUC__ >= 4
#define EXPORT extern "C" __attribute__((visibility("default")))
#endif
EXPORT int bar();
#endif // __FOO_H
T...
Hello,
We have a DLL, built with MS Visual Studio 2010, in release mode. We provide this DLL to different customers, along with a .lib file. The functions in the DLL are exported with:
extern "C" __declspec(dllexport) int analyze(int id);
Our customers have two applications that makes use of this DLL. Both of these applications im...
Visual Studio compiles the projects into dlls as I want it to, but when I inspect these dlls with dumpbin, then they do not have an entry for their pdbs, which is probably the reason why I cannot debug any of those dlls if I load them at runtime and their pdbs are never loaded. How can I get VS to write these paths?
Visual Studio, C++.
...