Table in DLL
Posted on 1997-05-04
have a C module containing several functions. In each of the function
I have a Table of 256 entries based on a struct...
unsigned char text;
unsigned char outtext;
//unsigned int y;
//static unsigned char chr;
//unsigned int chr;
// 255 enheter av strukten hvor hver innholder karakterstrengen
struct MYTABLE Table;
I use the Table for converting strings, checking against the Table.text
writing out the contents of the Table.outtext.
This Table is initalized every time a string is passed to it. Is it
possible to locate the Table outside the function, making it possible so
that the table is only initialized once, when the DLL is loaded??
Is it a better/faster way to initialize the elements in the Table than