G
Guest
Is there a way to call a function in VB by knowing the adress of the
function? I know this can be done in C. Here is a simplified description of
what I want to do.
Through a Comm port or TCP input, I get a command word. Based on the
command, I want to execute a function. Since I expect to have a large number
of command words, I plan on using a hash table to convert the command word to
an index. Now, with the index I can execute a function. I can use a select
case block but I wonder if that is efficient. I was thinking about having an
array of function addresses and then using the index from the hash table as
an array index to point to the address of the function.
Any suggestions here?
Hamil.
function? I know this can be done in C. Here is a simplified description of
what I want to do.
Through a Comm port or TCP input, I get a command word. Based on the
command, I want to execute a function. Since I expect to have a large number
of command words, I plan on using a hash table to convert the command word to
an index. Now, with the index I can execute a function. I can use a select
case block but I wonder if that is efficient. I was thinking about having an
array of function addresses and then using the index from the hash table as
an array index to point to the address of the function.
Any suggestions here?
Hamil.