Thread View: borland.public.delphi.vcl.components.using.dotnet
7 messages
7 total messages
Started by tao lin
Tue, 16 May 2006 01:59
Can I use vcl.net with Asp.net
Author: tao lin
Date: Tue, 16 May 2006 01:59
Date: Tue, 16 May 2006 01:59
11 lines
1236 bytes
1236 bytes
Hi, I just convert my win32 vcl code to vcl.net. It's quite impressive that how easy it is. But now I want to use my old code in a asp.net project. My vcl.net libary include IBX component, DataModule, ClientDataSet and JCL but don't have any visual component such as treeview etc. Is it possible use it within Asp.net? Cheers, Tao
Re: Can I use vcl.net with Asp.net
Author: Nick Hodges [TeamB]
Date: Tue, 16 May 2006 05:21
Date: Tue, 16 May 2006 05:21
15 lines
1306 bytes
1306 bytes
tao lin wrote: > Is it possible use it > within Asp.net? Sadly, while it was easy to move your VCL/Win32 app to VCL/.Net, reusing that code in the ASP.NET world won't be easy at all. In fact, I wouldn't really recommend trying it. All the ASP.NET controls are expecting ADO.NET datasets, so all the code utilizing TDataset descendants won't be of much use. -- Nick Hodges -- TeamB Dunn Solutions Group -- http://www.dunnsolutions.com Read my Blog -- http://www.lemanix.com/nickblog
Re: Can I use vcl.net with Asp.net
Author: tao lin
Date: Tue, 16 May 2006 09:24
Date: Tue, 16 May 2006 09:24
29 lines
1982 bytes
1982 bytes
Thank you for your reply, Nick. I have already replace my DAL from IBX to nhibernate. So I am not so worry about the TDataSet issue (of course, need take some time to rewrite it). So if I want to use my business logic (vcl.net) code from my asp.net web app (C#), what dll I should create by using D2006? A package or a library? Cheers, Tao "Nick Hodges [TeamB]" <nickhodges@gmail.com> wrote in message news:44696172$1@newsgroups.borland.com... > tao lin wrote: > >> Is it possible use it >> within Asp.net? > > Sadly, while it was easy to move your VCL/Win32 app to VCL/.Net, > reusing that code in the ASP.NET world won't be easy at all. In fact, > I wouldn't really recommend trying it. All the ASP.NET controls are > expecting ADO.NET datasets, so all the code utilizing TDataset > descendants won't be of much use. > > -- > Nick Hodges -- TeamB > Dunn Solutions Group -- http://www.dunnsolutions.com > Read my Blog -- http://www.lemanix.com/nickblog
Re: Can I use vcl.net with Asp.net
Author: Nick Hodges [TeamB]
Date: Tue, 16 May 2006 11:45
Date: Tue, 16 May 2006 11:45
11 lines
1164 bytes
1164 bytes
tao lin wrote: > A package or a library? Always use packages in .Net, unless you want to do the Win32 interop trick that Delphi can do. -- Nick Hodges -- TeamB Dunn Solutions Group -- http://www.dunnsolutions.com Read my Blog -- http://www.lemanix.com/nickblog
Re: Can I use vcl.net with Asp.net
Author: Marc Rohloff TeamB
Date: Tue, 16 May 2006 11:53
Date: Tue, 16 May 2006 11:53
24 lines
2280 bytes
2280 bytes
On Tue, 16 May 2006 21:24:52 +1200, tao lin wrote: > Thank you for your reply, Nick. > > I have already replace my DAL from IBX to nhibernate. So I am not so worry > about the TDataSet issue (of course, need take some time to rewrite it). So > if I want to use my business logic (vcl.net) code from my asp.net web app > (C#), what dll I should create by using D2006? A package or a library? As long as your code contains pure Delphi code you should be fine. If you have references to VCL.NET components then you may or may not have problems. Although in theory a VCL.NET control could run under ASP.NET there are issues other than what Nick mentioned (ASP.NET controls expect .NET Datasets). Most VCL controls are tied to the GUI even if they are not visible (for example TTimer requires a message loop) and are often not designed for multi-threaded use. To answer your other questions you can either create a package for your common code or just use the units directly. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Re: Can I use vcl.net with Asp.net
Author: tao lin
Date: Wed, 17 May 2006 10:16
Date: Wed, 17 May 2006 10:16
36 lines
2466 bytes
2466 bytes
Very good point, Marc. I have nearly forgot VCL is not design for mult-threaded use. So I will remove the VCL.Net components as many as possible from my existing code. Thank you, Marc! Tao "Marc Rohloff [TeamB]" <"on request"> wrote in message news:c84sop7yuvvr$.dlg@dlg.marcrohloff.com... > On Tue, 16 May 2006 21:24:52 +1200, tao lin wrote: > >> Thank you for your reply, Nick. >> >> I have already replace my DAL from IBX to nhibernate. So I am not so >> worry >> about the TDataSet issue (of course, need take some time to rewrite it). >> So >> if I want to use my business logic (vcl.net) code from my asp.net web app >> (C#), what dll I should create by using D2006? A package or a library? > > As long as your code contains pure Delphi code you should be fine. If > you have references to VCL.NET components then you may or may not have > problems. > Although in theory a VCL.NET control could run under ASP.NET there are > issues other than what Nick mentioned (ASP.NET controls expect .NET > Datasets). Most VCL controls are tied to the GUI even if they are not > visible (for example TTimer requires a message loop) and are often not > designed for multi-threaded use. > > To answer your other questions you can either create a package for > your common code or just use the units directly. > > -- > Marc Rohloff [TeamB] > marc rohloff -at- myrealbox -dot- com
Re: Can I use vcl.net with Asp.net
Author: tao lin
Date: Thu, 18 May 2006 04:17
Date: Thu, 18 May 2006 04:17
32 lines
2335 bytes
2335 bytes
Hi, Marc Do you have any brief list which classes are/aren't support threaded-safe in VCL/VCL.net? I do remember I read some article talking about this but I cannot find the link by google any more. Cheers, Tao Marc Rohloff [TeamB] wrote: > On Tue, 16 May 2006 21:24:52 +1200, tao lin wrote: > >> Thank you for your reply, Nick. >> >> I have already replace my DAL from IBX to nhibernate. So I am not so worry >> about the TDataSet issue (of course, need take some time to rewrite it). So >> if I want to use my business logic (vcl.net) code from my asp.net web app >> (C#), what dll I should create by using D2006? A package or a library? > > As long as your code contains pure Delphi code you should be fine. If > you have references to VCL.NET components then you may or may not have > problems. > Although in theory a VCL.NET control could run under ASP.NET there are > issues other than what Nick mentioned (ASP.NET controls expect .NET > Datasets). Most VCL controls are tied to the GUI even if they are not > visible (for example TTimer requires a message loop) and are often not > designed for multi-threaded use. > > To answer your other questions you can either create a package for > your common code or just use the units directly. >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads