BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi.NET fails to use a visual C++ assembly

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
Gilles Orazi dot orazi at
Guest





PostPosted: Thu Jun 03, 2004 2:15 pm    Post subject: Delphi.NET fails to use a visual C++ assembly Reply with quote



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: http://www.opera.com/m2/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.