 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Roberto Meneghini Guest
|
Posted: Fri Mar 09, 2007 12:07 am Post subject: Consuming VCL.NET Components |
|
|
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
|
Posted: Sat Mar 10, 2007 3:04 am Post subject: Re: Consuming VCL.NET Components |
|
|
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 |
|
 |
|
|
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
|
|