borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how can i list all the email address from hotmal contact list?)Next Topic (how to make my web page persistent in asp.net?) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : Using an old DLL
Poster Message
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488

icon Using an old DLL

I have an old dll (written in VB) that I want to use with my ASP.NET pages. It basically takes an SQL SELECT command and executes it against a database, and returns a recordset. Being new to .NET I am wondering how I can use this in my ASP.NET project? Do I just need to add the reference to it? Then how do I handle the returned recordset?

____________________________
Eggheads unite! You have nothing to lose but your yolks.

20-04-2005 at 05:40 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488
icon Re: Using an old DLL

I think I have this figured for the most. I believe I can "Fill
" a DataSet with the Recordset in .NET. This should work though I havent gotten that far yet.

Also, I believe I can use my older techniques in handling the recordset in .NET...so I should be OK...

Please correct me if I'm wrong and if anyone has any data handling suggestions I am all ears...

____________________________
Eggheads unite! You have nothing to lose but your yolks.

21-04-2005 at 05:20 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Using an old DLL

Maybe you should rewrite your code from scratch, since I believe it is not a good tehnique to mix ADO and ADO.NET. In ADO.NET dataset is filled using data adapter. So, in my opinion, if you first load data in recordset, and then fill dataset using recordset, it will double the ammount of time to get data, and should be avoided.

____________________________
If you find the answer helpful, please mark this topic as solved.

22-04-2005 at 02:20 PM
View Profile Send Email to User Show All Posts | Quote Reply
zimcoder
Level: VB Lord


Registered: 27-10-2003
Posts: 225
icon Re: Using an old DLL

I agree with Goran here. I think a rewrite of your dll as a component and then putting up perhaps as an assembly
. Microsoft have stopped support for any VB.OLD stuff.
This will get you upto speed with ADO.NET and perhaps you could make it a reusable component and perhaps post it here for others to use  

____________________________
BrainBench ADO.NET and ASP.NET Certified Developer

04-05-2005 at 09:40 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ASP.Net : Using an old DLL
Previous Topic (how can i list all the email address from hotmal contact list?)Next Topic (how to make my web page persistent in asp.net?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder