dll

How to call a C# dll in ruby?

How to call a C# dll in ruby? ...

Using a C++ dll in C#

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...

Challenging Runtime Error when calling Native Code from Managed Code

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...

How to put a relative path for a DLL statically loaded?

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...

FastMM, stack trace memory for leaks in dynamicly loaded DLL, compiled with runtime packages.

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...

C++ DLL fails when run from different drive letter

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...

Baseclass Virtual Destructor Access Violation

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() ...

How to use the .def file for explicit linking?

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 ...

In Visual Studio 2008, how/why are extra (non-specified) .LIB files be added to the linking stage?

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...

Why can't a "procedure entry point could not be located in dll" when I definitely put it in?

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...

Dll size differs for build on different PC

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...

Compiling Visual c++ programs from the command line and msvcr90.dll

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...

create asp.net listbox with click\double click event

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...

C++ : When do I need a shared memory allocator for std::vector?

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...

Combine native DLL and assembly into a single DLL

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...

Passing C++ structure pointer from Perl to arbitary dll function call

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...

How to use DLL library file in a C++ project?

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 ...

The procedure entry point _ftol2 could not be located in the dynamic link library msvcrt.dll

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 ...

Problem in accessing members of class in C# DLL from C++ project

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...

howto parse struct to C++ dll from C#

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...