Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lookup system in DLL
Message
Information générale
Forum:
Visual C++
Catégorie:
Autre
Divers
Thread ID:
00212931
Message ID:
00213336
Vues:
26
What I have tried is: char lookuplist[1000][5]={"abcd","bcde","cdef"...}

This works ok. What I now have to do is find a fast way of searching this array OR an alternative to this. My current project will have two arrays; one of 5 bytes, the other 7 bytes. I'm not sure yet how many rows in each array. If it were 1000 then that will be no problem on size.

My next project however, will have larger arrays. If the data is embedded in one DLL, it may get a bit too big. If there were another way of doing this, I would probably adopt that approach. That is what I was asking.

The data is currently in DBFs so I can write a program to generate the declaration (I'm not typing that lot!!). Any ideas would be appreciated.


>>What are the options? Would it be best to put the data within another DLL and call this if needed?
>
>Do you mean you want to hardcode data into the dll? I don't understand what you mean by "put the data within another DLL".
>
>>What are the speed issues? What?What?What?
>
>Is this a WWW project? :))
>
>>The initial data will be fairly small (c150k straight data) but another project I will be working on will involve over 1Mb. Main function is to lookup a short text item and return a corresponding equivalent sized item (if found).
>
>Well, 1M is not so much. Is this in VC++? It should be fast whatever you do. But fast enough? It depends on what you need this lookup for.
>
>Vlad
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform