I'm trying to get my head around the basics of SIMPl# at the moment. If I have the same SIMPl+ module on multiple programs will the function callbacks from the same SIMPl# library cause conflicts? If so would I need to adjust the library classes or namespalces, the callback names in SIMPl+, or just change the SIMPl+ module to a different .usp filename? I'm not exactly certain on the SIMPl# nomenclature, but hopefully you get the idea.
For instance Program 2 & Program 3 both have the module:
SimplSharp Test Module.usp
#USER_SIMPLSHARP_LIBRARY "Example"
DIGITAL_INPUT Connect;
DIGITAL_OUTPUT Server_Offline;?
STRING_OUTPUT MyString;
MySSharpClass ClientConnection; ? ? ? ??
?
PUSH Connect
{
StaticClass1.Initialize();
ClientConnection.Initialize();?
}
callback function MessageFromServerCallback(string ServerMessage)
{
MyString = ServerMessage;
}
callback function ServerConnectionStatusCallback(integer ConnectionStatus)
{
if(ConnectionStatus = 1)
{
Server_Offline = 0;
}
else if(ConnectionStatus = 0)
{
Server_Offline = 1;
}
}
Function Main()
{
RegisterDelegate(ClientConnection, ClientTx, MessageFromServerCallback); ??
RegisterDelegate(ClientConnection, TriggerServerConnected, ServerConnectionStatusCallback);
}