473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Questions

Hi,

i) I've compiled a set of VB6 code into dll and add it (as a reference) into
my C# program. When I clicked "Run", the program windows run pretty well.
When I clicked the "Close" button of the windows, the program didn't stop
fully, which made me have to click the "Stop" from the compiler. Can anyone
help?

ii) Is there anyway to sort a dataTable by ascending or descending?

Please advice and thanks in advance.
pcPirate
Nov 15 '05 #1
2 1209
pcPirate,

Without knowing what your code in VB is doing (or your .NET code), it is
a little difficult. I would think that maybe there is a circular reference
somewhere which isn't being cleaned up.

To sort a datatable, you should create a new DataView class instance,
attaching it to the DataTable. Once you do this, you can set the Sort
property on the DataView, and access the rows through the DataView in the
order as they would appear in the sort.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"pcPirate" <ph****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

i) I've compiled a set of VB6 code into dll and add it (as a reference) into my C# program. When I clicked "Run", the program windows run pretty well.
When I clicked the "Close" button of the windows, the program didn't stop
fully, which made me have to click the "Stop" from the compiler. Can anyone help?

ii) Is there anyway to sort a dataTable by ascending or descending?

Please advice and thanks in advance.
pcPirate

Nov 15 '05 #2

"pcPirate" <ph****@hotmail.com> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
Ok, my VB6 code contains a routine to access a tailored database via RDO.
I've compiled the VB6 code into *.dll and set it as a reference in my C#.
When I run my C# code, I would first have to access the tailored database
(in which, access the VB6's dll). And then, when I close the run program
from the C# compiler (MS VS.net), it doesn't stop fully.

Pls advice and thanks in advance.
pcPirate

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:eU**************@TK2MSFTNGP09.phx.gbl...
pcPirate,

Without knowing what your code in VB is doing (or your .NET code), it
is
a little difficult. I would think that maybe there is a circular

reference
somewhere which isn't being cleaned up.

To sort a datatable, you should create a new DataView class instance, attaching it to the DataTable. Once you do this, you can set the Sort
property on the DataView, and access the rows through the DataView in the order as they would appear in the sort.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"pcPirate" <ph****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

i) I've compiled a set of VB6 code into dll and add it (as a
reference) into
my C# program. When I clicked "Run", the program windows run pretty

well. When I clicked the "Close" button of the windows, the program didn't stop fully, which made me have to click the "Stop" from the compiler. Can

anyone
help?

ii) Is there anyway to sort a dataTable by ascending or descending?

Please advice and thanks in advance.
pcPirate



Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
4
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
8
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
1
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.