I am having a problem while attempting to interface to the 1SCDLL API from Delphi. Specifically, I am attempting to write a very simple test app for verifying the DLL function call interfaces, and ultimately, that I can successfully launch the server from a Delphi app.
My simple test app appears to load the library and register the function addresses fine. However, when I call the Start_server function, a view window pops up, but nothing ever appears in the window. The view window appears to be dead. The Viewer shows the following status entries:
Start Encryption, waiting server
Encryption Setup Complete.
If I call Stop_server, the view window goes away as I imagine that it should. Then, the Viewer shows the following entry:
An existing connection was forci
** [that is all that is viewable in the status window. I assume it probably says something like, "forcibly closed" or something to that nature, but I don't know since I can see the whole message ...

I am not sure what the problem is here. It seems to be trying to work, but doesn't get past some part of the initial handshaking?
I noticed a few differing definitions for the Start_server call in the forums. My code is using this definition for the Start_server call:
TSCDLL_StartServer = procedure(
aID : PChar;
aRepeater : PChar;
aHostName : PChar;
aPort : integer;
aPassword : PChar;
aProxy : boolean;
aClassname : PChar;
aShouldWait : boolean); cdecl;
When I call Start_server, I call it with the following values:
MyStartServer(
'test',
'',
PChar(edtHostName.Text),
StrToInt(edtPort.Text),
PChar(edtPassword.Text),
False,
'PcHelpWare Connection',
False);
** [edtXXXX are TEdits that I am using to try values for connecting with. They are initially filled with values that work when running from a custom server.]
Any ideas on what I may be missing here? Do I have the DLL function definitions correct? Also, is there a header file or something of that nature for the 1SCDLL calls (Start_server and Stop_server)? Or maybe more documentation that is available on the forum / website?
Thanks much...
Hoby Smith
Missouri, USA