[Spread-users] Small Help Needed

Abhishek Sipani abhisheks at bsil.com
Wed Nov 24 08:53:23 EST 2004


Hi,
I have been using spread for some research purpose. Would like to know if
there is an upper limit on the UserName character length i provide..
i.e.
I do
	sprintf(Spread_name,"4803 at 192.168.11.40");
	int ret_val_connect;
	m_User.GetWindowText(User,80);
	ret_val_connect=sp.Connect(Spread_name,User);
	if(ret_val_connect<0)
		AfxMessageBox("Unable to Connect");
	else
		AfxMessageBox("Connected");

this works fine..but if i provide a length more than 10 characters say
"ABCDEFGHIJKLM" as user name the call
	ret_val_connect= SP_connect(in_SpreadName, in_ConnectionName, 0, 1,
&m_Mbox, m_PrivateGroup );
returns m_PrivateGroup as "#ABCDEFGHIJ#SpreadMachineName"

How do i prevent this from getting truncated?Have tried going through the
enormous archives of discussions but of no avail. Please advice as i am
dealing with data that have names far greater than 10 characters. Am
relatively new to spread so some help here will be of immense help.


Abhishek Sipani,
Blue Star Infotech.
Phone:(o)-91-22-569 56969
      (direct)-91-22-569 56966
      (m)    98204 51504
--------------------------------------------
"When Life offers you Lemons, Learn to make Lemonade"





More information about the Spread-users mailing list