PDA

View Full Version : Currency Server API properties - problem with value assignment



b.martemianov
06-26-2013, 08:51 AM
Hello,

I develop the price server using Currency Server API , when i try to assign the values for Username, password and port, i get the error from server: Parameter 1 of the method used is invalid or not appropriate.

Here is my code:



var username = "1";
var password = "1";
var port = 99100;
_server.set_Username(ref username);
_server.set_Password(ref password);
_server.set_Port(ref port);

var s = _server.StartServer();

if (!string.IsNullOrEmpty(s)) MessageBox.Show(s);

What i do wrong.

Thanks in advance,
Boris

Hassan-HS
06-26-2013, 07:08 PM
Dear Sir

Please show me the body for each



_server.set_Username(ref username);
_server.set_Password(ref password);
_server.set_Port(ref port);

b_morar
09-12-2013, 08:44 AM
Dear Sir,

Please update us if every thing is clear now or not, and let me know if you need any further assistance. :D