jeffersyuan
21st September 2018, 04:43
Hi, All,
Does somebody have experience on call a generic dll function via command, and get the result?
Something like call otcdll001.helloword, via ba, and get the result "Hello world"?
Thanks.
Jeffers
giggty
21st September 2018, 10:33
Err, something like exec_dll_function() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_dll_exec_dll_function)?
Ajesh
24th September 2018, 13:33
Not sure i understand this, but what do you mean by generic dll function? You can call a Dll extern function and get returned a string..But dont think you want that.
mark_h
24th September 2018, 14:51
What I did once was write a session to call a dll - that was all it did. It basically ran the DLL function and wrote to a file. This way I you could run ba6.1 executable and get the data. Then I could read the file if needed - never did really use it and doubt I even have the code anymore.
jeffersyuan
25th September 2018, 04:43
mark_h,
Smart idea!
Basically, I think it caused that ba6.1 executable method is asynchronous, not synchronization method.
Of course, in a general session or dll to store the result to 'TMP' place, then access the 'TMP' place using the GUID key, could be a smart idea. Something like MQ etc.
What's your idea?
Thanks.
Jeffers
What I did once was write a session to call a dll - that was all it did. It basically ran the DLL function and wrote to a file. This way I you could run ba6.1 executable and get the data. Then I could read the file if needed - never did really use it and doubt I even have the code anymore.