As the lookup table will be used frequently in a computationally intensive process, speed is of great importance. Ideally we would want to stay away from a database approach as we are not using database/tables anywhere else in the product.
Meh, I was just about to recommend the TimesTen database.
Our method came down to looping through every single element in the table and comparing it (calculating distance) to what we were trying to lookup.
Does your lookup have a key that you're comparing to? If yes, try a Dictionary. You might also enjoy benefits from reading up on database-theory; if your data contains several fields that you do for the lookup, it might be a cute idea to have something similar to an index.
Can anyone recommend either an exisiting component or should we should try to optimize our algorithm and move to a native C++ implementation to gain speed?
You need to find the correct approach; changing language isn't going to help much.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
I would like to convert a decimal number (base10) into hexadecimal and then save it into an unsigned char array.
I have an integer whose value increments from 1024 to a max of 2047 in steps of 1 whenever the user clicks a button. At each step I need to convert it to a hexadecimal number and save it into an unsigned char array or 2 elements so that I can send it to a device via USB.
If I want to send 1955 decimal number I would like to have my unsigned char array as below
Out = 0x07;
out = 0xA3
then I can use my transferdata(out) function.
In order to provide the ability to use many different languages in .net, and for components written in one language operate with components written in another, we need to use the same primitive types. These are supplied by the CTS.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
As we develop application in different language so they have different way of defining variable so How CLR will understand this.So for this .net define CTS like in c# we have int in VB we have Integer when they complied they are converted to Sysyem.int32 which is common for both language.
In Microsoft's .NET Framework, the Common Type System (CTS) is a standard that specifies how Type definitions and specific values of Types are represented in computer memory. It is intended to allow programs written in different programming languages to easily share information.
recently i read one of the artical(Singleton orchestraion in biztalk server) written by you.It is a very good artical.
in that artical you explain with one sample example.i need that sample code.please send to my mail id it is usefull to me.plz plz plz plz send me.
What have you tried upto now? Where are the concrete problems?
Have you analysed the parts of a "common" combobox and their interactions yet?
After that, you'll have to replace that item which shows a simple list in the "common" combobox by an element which can show some kind of a table. It means, you have to construct that multi-column combobox from other elements.