I need help with binding error
Posted: Thu Mar 14, 2019 4:31 am
I have created a LiveCode builder that calls a function from a DLL file. I was able to successfully create the extension but then when I tried using the extension it produces an error "Unable to bind foreign handler test_new_lcb.Multiply_numbers" . My DLL file only returns a multiplied number or does only multiplication.
Can someone help me with this? What did I do wrong on my code? Thank you
This is my LCB file.
Can someone help me with this? What did I do wrong on my code? Thank you
This is my LCB file.
Code: Select all
library test_new_lcb
use com.livecode.engine
use com.livecode.foreign
foreign handler Multiply_numbers(in pNum1 as CInt, in pNum2 as CInt) returns CInt binds to "new_dll>multiply_numbers"
public handler testing_num(in p1,in p2) returns CInt
unsafe
return Multiply_numbers(p1,p2)
end unsafe
end handler
end library