jrebelo
24th July 2017, 17:52
How can i call a DLL from constraints Editor?

I'm using this:

!#pragma used dll oteibddll0001

if (teibddll0001.funcao_teste([compr])) = true then
Mensagem = "TESTOK"
else
Mensagem = "TESTNOK"
endif


but doesn't work.

Someone can help me?

bdittmar
24th July 2017, 20:00
Hello,

#pragma used dll "odhhtmdll0001"

rest of logic here .....

Regards

bhushanchanda
25th July 2017, 06:55
Also, check the function name. Sometimes, the nomenclature is something like teibd.dll0001.funcao_teste() and the parameter passed can be directly passed without any internal parenthesis.

#pragma used dll oteibddll0001

if teibddll0001.funcao_teste(compr) then
Mensagem = "TESTOK"
else
Mensagem = "TESTNOK"
endif

OR

#pragma used dll oteibddll0001

if teibd.dll0001.funcao_teste(compr) then
Mensagem = "TESTOK"
else
Mensagem = "TESTNOK"
endif