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 

Consuming VCL.NET Components

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
Roberto Meneghini
Guest





PostPosted: Fri Mar 09, 2007 12:07 am    Post subject: Consuming VCL.NET Components Reply with quote



Hello,

I'm trying to use a component written in Delphi.NET. I'm using CBuilder 5.
Everything works fine as long as the .NET component does not requires VCL
objects such as a VCL Form. This is what I've done:
1- Write a small camponent in Delphi 2006.NET. It only has one interface
with a single procedure.
2- Register the library using regasm.
3- Import library in BCB5
4- Create a Form and insert the importe component. THIS WORK
5- Modify the Delphi .NET component to show a VCL form when the exposed
method is executed.
6- Now the BCB5 program does not run. Well, if I run it from the IDE the it
generates an exception. If it is ran from the desktop, then it only appears
as a process in the task manager, but it never opens.

Any suggestions?

Thanks,

Roberto
Back to top
Roberto Meneghini
Guest





PostPosted: Sat Mar 10, 2007 3:04 am    Post subject: Re: Consuming VCL.NET Components Reply with quote



Solved the problem. The program was loading the latest framework. I had to
create ".config" file with the following XML code

<?xml version="1.0" ?>
<configuration>
<startup>
<requiredRuntime version="V1.1.4322" />
</startup>
</configuration>



"Roberto Meneghini" <rmeneghini (AT) separationsystems (DOT) com> wrote in message
news:45f050d7$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hello,

I'm trying to use a component written in Delphi.NET. I'm using CBuilder 5.
Everything works fine as long as the .NET component does not requires VCL
objects such as a VCL Form. This is what I've done:
1- Write a small camponent in Delphi 2006.NET. It only has one interface
with a single procedure.
2- Register the library using regasm.
3- Import library in BCB5
4- Create a Form and insert the importe component. THIS WORK
5- Modify the Delphi .NET component to show a VCL form when the exposed
method is executed.
6- Now the BCB5 program does not run. Well, if I run it from the IDE the
it generates an exception. If it is ran from the desktop, then it only
appears as a process in the task manager, but it never opens.

Any suggestions?

Thanks,

Roberto

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) 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.