Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling mac names dynamically in a *.exe
#1
Hi -

I'm using the TCP socket mechanism for sending commands between two executables; when the string arrives it is parsed and the function name and arguments are called like this:
mac functionName args

This works fine if functionName is referred to in other places in the code. If it isn't - I'm guessing that the QM compiler is eliminating its symbol since it throws an error message for 'QM Item not found".

Is there a way to add the name of the function to the list of functions to be kept in the executable?

Thanks!
#2
Macro Macro2331
Code:
Copy      Help
;/exe
#exe addfunction "Function291"
#opt nowarnings 1
str s="Function291"
mac s
or
Macro Macro2331
Code:
Copy      Help
;/exe
#compile "Function291"
#opt nowarnings 1
str s="Function291"
mac s
#3
Perfect! Thank you.


Forum Jump:


Users browsing this thread: 1 Guest(s)