I have successfully implimented an C# dll where I call functions from. This is working.
But the issue is that no matter what I try, Clarion insists that the external dll must be in the root of C. How can I get Clarion to look for the dll in the directory of the app?
Global embed - Inside Global Map
MODULE( ‘C:\SBS\Opto22Clarion.dll’)
R1Controller_ConnectToPLC( bstring), LONG , NAME( ‘R1Controller_ConnectToPLC’), pascal,raw,dll( true)
R1Controller_DisconnectFromPLC (), LONG , NAME( ‘R1Controller_DisconnectFromPLC’), pascal,raw,dll( true)
R1Controller_GetIntValue( bstring), LONG , NAME( ‘R1Controller_GetIntValue’), pascal,raw,dll(true)
R1Controller_GetFloatValue( bstring), REAL , NAME( ‘R1Controller_GetFloatValue’), pascal,raw,dll(true )
R1Controller_GetFloatTableElement(bstring , Short), REA ,NAME(‘R1Controller_GetFloatTableElement’) , pascal,raw,dll( true)
R1Controller_GetIntTableElement( bstring , Short ), LONG , NAME( ‘R1Controller_GetIntTableElement’), pascal,raw,dll(true)
END