another issue
since c++ treat backslash as an escape. i gave up getting the associated icon from the client side , so i moved on and tried to get it from the server side.
i sent the server the itemid then the server responded with associated icon at this format
Code:
item\\\\xx\\\\***.ddj
now c++ will read it as
Code:
std::n_string iconassc;
*msg >> iconassc;
CIFMainMenu::GlobalLinkGUI->m_custom_label10->TB_Func_13(iconassc.c_str(),0,0);
msg->FlushRemaining();
i believe its variables types issue too
edit**: thanks to vero it was a variable type issue
(objectdata -> associtemicon has to be std::string)