Board index » delphi » Delphi.NET fails to use a visual C++ assembly
Gilles Orazi dot orazi at varianinc dot com
![]() Delphi Developer |
Delphi.NET fails to use a visual C++ assembly2004-06-03 10:15:57 PM delphi247 Hi, I am evaluating the multilanguage support in the .NET framework. I am trying to produce a dll assembly in visual C++.net and use it in a delphi project. My problem is that if I include some C++ STL headers in my C++ project (e.g. string), the managed code generated by delphi cannot execute. It fails at loading the C++ assembly. Moreover, a visual C++ project that is similar to my Delphi application can execute properly. This is the delphi and visual C++ code: VISUAL C++ ASSEMBLY: //uncomment the following line makes the delphi exe crash //#include <string> #using <mscorlib.dll> using namespace System; namespace DHPLNET { public __gc class MyClass { public: int a ; }; } DELPHI : uses DHPLNET; procedure TForm1.Button1Click(Sender: TObject); var A : DHPLNET.MyClass ; begin Memo1.Lines.Add('Running...'); A := DHPLNET.MyClass.Create ; end; Thanks by advance for your help. Gilles -- Using M2, Opera's revolutionary e-mail client: www.opera.com/m2/ |