Hi everybody,
I am trying to write an *.efs script that posts realtime trades to hotcomm chat room. Everytime I run the script, eSignal crashes.
Example of hotcomm HCUTIL.DLL INTERFACE:
-------------------------------------------------------------------------------
HCU_Connect
Description Connect into session to start sending messages and receiving transcripts
Parameters: int Snum – (IN) session number to connect
Returns: BOOL – whether the session has been connected
HCU_Disconnect
Description: Disconnect from session and stop receiving transcripts
Parameters: None
Returns: BOOL - whether the session has been connected
HCU_SendMessage
Description: Send a message to the connected session and send to all users in the session
as the current user
Parameters: char* Text – (IN) pointer to the message to be sent
Returns: BOOL – whether the message was sent
HCU_RecvMessage
Description: Receive any transcripts since the last retrieval or since connected
Parameters: char* Text – (OUT) pointer to store the transcript
int len – (IN) maximum length of transcript to store
Returns: int – number of bytes stored
---------------------------------------------------------------------------
EFS CODE AS FOLLOWS:
// OPTIONAL DLL LINK TO HOTCOMM
var hotcomm = new DLL("C:/Program Files/1stWORKS/hotCommLite/BIN/HCUtil");
function preMain() {
//AddFunction("refname", ReturnType, FunctionDefType, FunctionName, [Parameters…]);
hotcomm.addFunction("Connect",DLL.INT,DLL.STDCALL, "HCU_Connect", DLL.INT);
hotcomm.addFunction("Disconnect",DLL.INT,DLL.STDCA LL,"HCU_Connect");
hotcomm.addFunction("SendMessage",DLL.INT,DLL.STDC ALL,"HCU_SendMessage", DLL.STRING);
var room_number = 1;
var hotcomm_ret1;
hotcomm_ret1 = hotcomm.call("Connect",room_number);
hotcomm_ret1 = hotcomm.call("SendMessage","THIS IS A TEST!");
hotcomm_ret1 = hotcomm.call("Disconnect");
-------------------------------------------------------------------------------
Yet everytime I run this, crash,
any suggestions ?????
(thx in advance )
I am trying to write an *.efs script that posts realtime trades to hotcomm chat room. Everytime I run the script, eSignal crashes.
Example of hotcomm HCUTIL.DLL INTERFACE:
-------------------------------------------------------------------------------
HCU_Connect
Description Connect into session to start sending messages and receiving transcripts
Parameters: int Snum – (IN) session number to connect
Returns: BOOL – whether the session has been connected
HCU_Disconnect
Description: Disconnect from session and stop receiving transcripts
Parameters: None
Returns: BOOL - whether the session has been connected
HCU_SendMessage
Description: Send a message to the connected session and send to all users in the session
as the current user
Parameters: char* Text – (IN) pointer to the message to be sent
Returns: BOOL – whether the message was sent
HCU_RecvMessage
Description: Receive any transcripts since the last retrieval or since connected
Parameters: char* Text – (OUT) pointer to store the transcript
int len – (IN) maximum length of transcript to store
Returns: int – number of bytes stored
---------------------------------------------------------------------------
EFS CODE AS FOLLOWS:
// OPTIONAL DLL LINK TO HOTCOMM
var hotcomm = new DLL("C:/Program Files/1stWORKS/hotCommLite/BIN/HCUtil");
function preMain() {
//AddFunction("refname", ReturnType, FunctionDefType, FunctionName, [Parameters…]);
hotcomm.addFunction("Connect",DLL.INT,DLL.STDCALL, "HCU_Connect", DLL.INT);
hotcomm.addFunction("Disconnect",DLL.INT,DLL.STDCA LL,"HCU_Connect");
hotcomm.addFunction("SendMessage",DLL.INT,DLL.STDC ALL,"HCU_SendMessage", DLL.STRING);
var room_number = 1;
var hotcomm_ret1;
hotcomm_ret1 = hotcomm.call("Connect",room_number);
hotcomm_ret1 = hotcomm.call("SendMessage","THIS IS A TEST!");
hotcomm_ret1 = hotcomm.call("Disconnect");
-------------------------------------------------------------------------------
Yet everytime I run this, crash,
any suggestions ?????
(thx in advance )
Comment