Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
QuestionHow make a dll in Visual C++ to use in C#? Pin
Rui A Sousa29-Aug-07 5:19
Rui A Sousa29-Aug-07 5:19 
AnswerRe: How make a dll in Visual C++ to use in C#? Pin
led mike29-Aug-07 6:16
led mike29-Aug-07 6:16 
GeneralRe: How make a dll in Visual C++ to use in C#? Pin
Dio2229-Aug-07 8:30
Dio2229-Aug-07 8:30 
AnswerRe: How make a dll in Visual C++ to use in C#? Pin
I Believe In GOD29-Aug-07 10:51
I Believe In GOD29-Aug-07 10:51 
QuestionHow to sort a big volume of data? Pin
michal.kreslik29-Aug-07 5:08
michal.kreslik29-Aug-07 5:08 
AnswerRe: How to sort a big volume of data? Pin
snorkie29-Aug-07 8:38
professionalsnorkie29-Aug-07 8:38 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik29-Aug-07 8:53
michal.kreslik29-Aug-07 8:53 
GeneralRe: How to sort a big volume of data? Pin
snorkie29-Aug-07 9:06
professionalsnorkie29-Aug-07 9:06 
michal,

I'm no whiz like the other maniacs here on the forum, but here are some ideas. While they will take a few steps, they would work.

Option 1.
Download SQL Server Express and load your data into a SQL server table. Once there, you can do a select statement and order by anything you want.

Option 2.
Take the two pieces of data and combine them into a single string with a delimiter. Insert them into an ArrayList and then do an ArrayList.Sort(). I tried this on my computer, it took 2mins45 seconds and 1.5gb of ram to run... So if you have a powerful machine, this could work.

ArrayList al = new ArrayList();
for (int x = 0; x < 15000000; x++)
{
    al.Add(System.Guid.NewGuid().ToString());
}
MessageBox.Show("Finished loading.");
al.Sort();
MessageBox.Show("Finished Sort.");


Anyway, I hope this helps give you a direction. Personally, i would go with the SQL server option as it is a bit more robust and will handle large amounts of data much better!

Hogan
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik29-Aug-07 9:36
michal.kreslik29-Aug-07 9:36 
GeneralRe: How to sort a big volume of data? Pin
Spacix One29-Aug-07 10:30
Spacix One29-Aug-07 10:30 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik29-Aug-07 19:32
michal.kreslik29-Aug-07 19:32 
GeneralRe: How to sort a big volume of data? Pin
Spacix One30-Aug-07 4:28
Spacix One30-Aug-07 4:28 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik30-Aug-07 4:43
michal.kreslik30-Aug-07 4:43 
GeneralRe: How to sort a big volume of data? Pin
Thomas Krojer2-Sep-07 22:46
Thomas Krojer2-Sep-07 22:46 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik3-Sep-07 6:06
michal.kreslik3-Sep-07 6:06 
GeneralRe: How to sort a big volume of data? Pin
Thomas Krojer3-Sep-07 23:49
Thomas Krojer3-Sep-07 23:49 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik4-Sep-07 0:10
michal.kreslik4-Sep-07 0:10 
GeneralRe: How to sort a big volume of data? Pin
Thomas Krojer18-Sep-07 23:00
Thomas Krojer18-Sep-07 23:00 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik18-Sep-07 23:17
michal.kreslik18-Sep-07 23:17 
GeneralRe: How to sort a big volume of data? Pin
Thomas Krojer19-Sep-07 0:31
Thomas Krojer19-Sep-07 0:31 
Questiondynamically creating forms from db Pin
algoaddict29-Aug-07 4:53
algoaddict29-Aug-07 4:53 
Questionword document to xml document Pin
sk840529-Aug-07 4:43
sk840529-Aug-07 4:43 
AnswerRe: word document to xml document Pin
led mike29-Aug-07 5:10
led mike29-Aug-07 5:10 
JokeRe: word document to xml document Pin
Spacix One29-Aug-07 8:28
Spacix One29-Aug-07 8:28 
AnswerRe: word document to xml document Pin
ekynox29-Aug-07 21:43
ekynox29-Aug-07 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.