I have a Clarion Dll and I need to call a procedure inside of it from C# (I have access to both of the codes).
It works perfectlly if I don`t try to pass any paramters to the procedure.
This is the actual Clarion code, it has nothing inside, I am using it just for testing purposes.
AtualizaEstoqueNovo_Teste PROCEDURE (string pr) ! Declare Procedure CODE
The procedure MAP declaration.
50A5C8 [email protected]
From the C# end, I am declaring an extern void function.
[DllImport("C:\\Tests\\48\\prog\\ss007.dll", EntryPoint = "[email protected]")] public static extern void ATUALIZAESTOQUENOVO_TESTE(string pr);
I am calling it like any other function
It throws me the error “Unable to find an entry point named “[email protected]””
The funny thing is that if I try to do the same thing but without using any paramters, it works.
[DllImport("C:\\Tests\\48\\prog\\ss007.dll", EntryPoint = "[email protected]")] public static extern void ATUALIZAESTOQUENOVO_TESTE();
I really don`t know what I am missing.
Also, the C# code is inside a Windows Service, but I think that shouldn`t matter