473,406 Members | 2,707 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,406 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 1210
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...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.