how to use a method inside a com dll into C# ?
how to use a method inside a com dll into C# ? ...
how to use a method inside a com dll into C# ? ...
We have a core library in the form of a DLL that is used by more than one client application. It has gotten somewhat bloated and some applications need only a tiny fraction of the functionality that this DLL provides. So now we're looking at dividing this behemoth into smaller components. My question is this: Can anyone recommend a ...
I have a project that relies on several dlls and once I compile it, it requires that I run the .exe in the same folder with the dlls. Can I package them together so I don't have to do that? For reference, I'm using C# ...
Hi, I'm trying to get a simple mixture between Managed C++ and plain C++ working. I'm using Visual Studio 2005 but keep hitting a problem. Here's my setup. First, I have a simple DLL built from the code #using "mscorlib.dll" #include "windows.h" __declspec(dllexport) void sayHello() { OutputDebugStringA( "Hello from managed code!...
I have a Winform application (C#) which imports some functions from dll. Sometimes when running the application i get the following exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I catch it in AppDomain.CurrentDomain.UnhandledExc...
The default base address for an .exe built in Visual Studio is 0x00400000. The default base address for d3dx9_30.dll and odbcint.dll (which both live in %windir%\system32) is also 0x00400000. So by default, exes that link to either of these dlls will have a runtime address collision. The OS automatically relocates the dll to a differe...
I am trying to build a ReTrust system which requires that DLL files be transferred from one system to another. Thus to just add a bit of complexity, I would like to Randomize the code - i.e change the code in a way that every time I have to send a DLL, it will be different then the one sent previously. Please suggest some measures. (Note...
I have a C++ DLL (no code) that I want to expose to .NET applications. After pondering all the options I have/know of/could find (COM, P/Invoke, SWIG, etc.), I'm writing a .NET Class Library (in C++/CLI). Now the resulting DLL (class library) requires the original DLL and its dependencies, too. My problem lies in automagically keeping t...
I'm trying to export classes from a DLL that contain objects such as std::vectors and std::stings - the whole class is declared as dll export through: class DLL_EXPORT FontManager { The problem is that for members of the complex types I get this warning: warning C4251: 'FontManager::m__fonts' : class 'std::map<_Kty,_Ty>' needs...
I have written a DLL which exports a function that creates a window using RegisterClassExW and CreateWindowExW. Every message is retrieved via GetMessageW(&msg, wnd_handle, 0, 0); TranslateMessage(&msg); DispatchMessageW(&msg); Also there is a program which loads the DLL and calls the function. Despite the Unicode window creation m...
I have my script on server, so I have not UI interaction available and have to use DLL instead of console application. How to call a function in C# DLL from VBScript? Have I make my DLL to be COMVisible? Have I to register it? ...
I'm in the process of porting a large C++ application from Linux (gcc) to Windows (Visual C++ 2008) and am having linker issues with plugins. On Linux this wasn't an issue, as .so supports runtime symbol lookup, but dll does not seem to support this. Some background information: The application (the host), which hosts a scripting enviro...
Is it possible to have a project reference one DLL when compiling in DEBUG mode, and another DLL when compiling in RELEASE mode? See, we've got a number of legacy projects we want to go ahead and remove from the solution, and just keep the DLLs around as references until we can eliminate all of the references altogether. ...
What is the safest way to make sure IIS picks up changes to a recompiled DLL? 1. Just copy the DLL in the /bin folder? 2. Clear the application cache? 3. Restart IIS? 4. Reboot the server? Note: I'm pretty sure options 3 & 4 would work, but they might be a tad drastic in a production environment ;-) ...
We have our own glue-layer-code-thingamajig that allows us to host the .NET runtime in our Win32 Delphi program. This has allowed us to do a gradual transition to .NET over time. But, we have some problems with it from time to time, and yesterday I saw an answer here on SO that referred to Jcl's .NET host implementation, so I thought I'...
I have a C++ console application to which I want to a Windows Form. I don’t want to use MFC because I don’t know how. Instead, I am using a C# to create the COM dll (Class Library). When I distribute the application and the dll to the target computer, I need to register the dll such that the application can see the COM interface and use ...
hi guys, i'm a totally newbie when it comes to the world of .net. but what i'm trying to do here is to create a dll with some public functions which can be called by another program to access some data inside an password protected access database. for now i'm keeping the password in the connection string and using the code below to en...
I have a .NET 1.1 Web Application running on a local development machine and the live version is running on a hosted web server running .NET 2.0 (everything runs fine). My live server has a mirror of the project thats on my local development machine. When i re-build the project/solution and upload the new DLL to the live server, the cha...
We created a plugin; it is a DLL (Run-Time Dynamic Linking) which uses a 3rd party library (wxWidgets) and also links dynamically to that. The host software seems to scan our plugin, but exported functions are not called. We checked all dependencies with DependencyWalker. We see in the debugger that the plugin is loaded, but the DllMain...
Hello, I wrote a dll in VS2008 that I use in my C# application,but my users don't like the fact they need both .NET framework and VC++ Runtime. Is there a way I could avoid the 'must-have' VC++ Runtime in my C++ dll? ...