How to call a C# dll in ruby?
How to call a C# dll in ruby? ...
How to call a C# dll in ruby? ...
I'm attempting to consume a dll written in C++ from a C# application. I have 3rd party source code for the C++ dll (the Cyclone physics engine) and do not want to manually port it over to C#. In the C++ project I changed it to output a dll. I changed it to use the /clr flag. I changed it to use Multi-threaded Debug DLL (/MDd) because...
First_Layer I have a win32 dll written in VC++6 service pack 6. Let's call this dll as FirstLayer. I do not have access to FirstLayer's source code but I need to call it from managed code. The problem is that FirstLayer makes heavy use of std::vector and std::string and there is no way of marshaling these types into a C# application dir...
Hello every body: I have a DLL made in Delphi 7/Windows XP that I want to statically load in a host application on Windows (made in Delphi, too). I am using this line of code: procedure Prepare_HTML_Email(var MailMessage : TIdMessage; const FileAddress, aDetail, aAlarmType : String); stdcall; external DLL_ADDRESS; where DLL_ADDRESS mu...
Hi, I'm using FastMM together with JCL Debug info to trace memory leaks in my application. However I have plugins which are dlls compiled in Delphi, both dlls and main application use common runtime packages. Now, when I'm shutting down the application, it generates memory leaks report in text file which is fine, but it contains stack tr...
I've written a C++ DLL that connects to a Sybase database using the native C library for Sybase. I can build and run the program on my C drive, and others can run it from their C drives, and everything works. But in some situations both my DLL and the Sybase DLL are located on the F drive instead of the C drive. In those cases my DLL app...
Sorry if this was asked already, but I had a hard time searching for destructor and access violation =) Here's C++ pseudo-code the scenario: In DLL1 (compiled with /MT) class A { public: virtual ~A() <== if "virtual" is removed, everthing works OK { } } class B : public A { public: __declspec( dllexport ) ~B() ...
I am facing the the problem to link to a third party dll. It is windows mobile application, where I am try to link to this third party dll. Here first I had the dll and lib file. I was not able to link to it explicitly, but implicit linking is working. In the explicit linking the getprocaddress was failing. The dumpbin showed only the ...
I discovered yesterday that one of our projects is linking in a few libraries that aren't specified in the project. I've double-checked (by manually reading the .VCPROJ file) that the .LIBs in question aren't specified. They aren't mentioned anywhere in the file, let alone in its 'libraries' section. And yet, when I look at the 'Comma...
I have a really vague problem, but I hope someone can help with it. I was modifying a C++ project and yesterday it was still working, but today it's not. I'm pretty sure I didn't change anything, but to be completely sure I checked the project out from SVN again and I even reverted to a previous system restore point (because this is a wo...
I have a VC++ dll library which is built (with Visual Studio 2003) on Windows XP machines ( a US-English PC and a German PC). The source code is the same and does not have any language specific code. The Release version of the dll built on the German PC is approx 30 MB whereas the dll built on the US-English PC is approx 7 MB. What coul...
Hi, When I compile my Visual c++ 2008 express program from inside the IDE and redistribute it on another computer, It starts up fine without any dll dependencies that I haven't accounted for. When I compile the same program from the visual c++ 2008 command line under the start menu and redistribute it to the other computer, it looks fo...
hi folks! i tryed to create an asp.net listbox that has a click evet. to do that i created a project that creates a dll file which i added to my toolbox in visual studio 2008. it does not work!!!! here is the code that creates the dll file: namespace list_box { public class list_box : ListBox, IButtonControl { private b...
First_Layer I have a win32 dll written in VC++6 service pack 6. Let's call this dll as FirstLayer. I do not have access to FirstLayer's source code but I need to call it from managed code. The problem is that FirstLayer makes heavy use of std::vector and std::string as function arguments and there is no way of marshaling these types int...
I am currently programming in C++ and C#. Using native C++ for the numerical computing part. Originally I intended to use C++/CLI to make a wrapper to the native C++ classes, but I found it would result in a 2 to 4 times slowdown. So I decided to compile my native C++ to a DLL and call in .NET/C# via P/Invoke. I will do data preproces...
Hi, I am using Win32::API to call an arbitary function exported in a DLL which accepts a C++ structure pointer. struct PluginInfo { int nStructSize; int nType; int nVersion; int nIDCode; char szName[ 64 ]; char szVendor[ 64 ]; int nCertifi...
I have a C++ project and a DLL library made using C#. Is it possible to add it to the C++ project and use its methods? I am using Visual Studio 2008 ...
I've recently been tinkering with a little gameproject using VC++ 2008. I'm using SDL, OpenGL, Boost and Box2D as included libraries. It works fine on my windows 7 machine, aswell as a friend's w7 machine. How ever it wont work on my second friend's XP sp3 machine, with the vc++ 2008 SP1 redist pack installed. When he starts the .exe he ...
I have added a C# DLL into a C++ project as mentioned at MS support, however I was not able to access its variables and methods inside the class. It also says that it's a struct and not a class, I don't know if it is important but I thought I should mention it is as well. Whenever I write . or -> or :: after the object, nothing appear. B...
I am trying to call a function in a unmanaged C++ dll. It has this prototype: [DllImport("C:\\Program Files\\MySDK\\VSeries.dll", EntryPoint = "BII_Send_Index_Template_MT" )] internal unsafe static extern Int32 BII_Send_Index_Template_MT(IntPtr pUnitHandle, ref BII_Template template, Int32 option, Boolean async); BII_Template tem...