Thread View: comp.sys.ibm.pc.programmer
1 messages
1 total messages
Started by barber
Tue, 26 Feb 1991 00:23
Symbol address in Turbo C
Author: barber
Date: Tue, 26 Feb 1991 00:23
Date: Tue, 26 Feb 1991 00:23
20 lines
1558 bytes
1558 bytes
I'm attempting to write a program which produces a report based on a form definition file. The form definition file will contain two types of information: 1) straight text to be copied to the report verbatium (sp), and 2) macros, which will be a name of a function located inside my program. The problem I'm having is finding a way to call a function given a string representation of it's name. So for example, if my program read the following from the form definition file: @fn_doit it would call the function fn_doit. I thought of building a local symbol table of functions callable from a form definition macro. The symbol table would match names to function addresses. Although this would work, it seens there has to be a way to find a dynamic address of a function (or variable) in Turbo C through a macro. Note that you can't hardcode the call, but instead have a string variable which contains the name of the function you wish to call. (char *str = "fn_doit", now call fn_doit using only str). Thanks, Matt (barber@equinox.unr.edu)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads