About Store Forum Documentation Contact



Post Reply 
container of memory
Author Message
Babulesnik Offline
Member

Post: #1
container of memory
I want to add a container of memory a new element. In this case, nothing happens


Attached File(s) Image(s)
       
02-27-2011 01:12 AM
Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #2
RE: container of memory
try Chat.Data_chat.New().insert(0,"a string");
02-27-2011 08:19 AM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #3
RE: container of memory
(02-27-2011 08:19 AM)Dandruff Wrote:  try Chat.Data_chat.New().insert(0,"a string");

Thanks, but does not work (
02-27-2011 11:47 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: container of memory
what do you want to achieve? display it in a List? you need to call List::setData
02-27-2011 11:50 AM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #5
RE: container of memory
(02-27-2011 11:50 AM)Esenthel Wrote:  what do you want to achieve? display it in a List? you need to call List::setData

Yes, I want to add data to list an event. Chat.List_Chat::setData(Chat.Data_Chat);-defining a class member, I will not work

If implemented as:
Chat.Data_Chat.New().insert(0,"g");
Chat.List_Chat.setData(Chat.Data_Chat);

Error 1 error C2440: 'static_cast' : cannot convert from 'EE::Str *' to 'S_Chat *' d:\vs2010ultimatum\vc\include\esenthelengine\misc\misc.h 154
(02-27-2011 12:28 PM)Babulesnik Wrote:  
(02-27-2011 11:50 AM)Esenthel Wrote:  what do you want to achieve? display it in a List? you need to call List::setData

Yes, I want to add data to list an event. Chat.List_Chat::setData(Chat.Data_Chat);-defining a class member, I will not work

If implemented as:
Chat.Data_Chat.New().insert(0,"g");
Chat.List_Chat.setData(Chat.Data_Chat);

Error 1 error C2440: 'static_cast' : cannot convert from 'EE::Str *' to 'S_Chat *' d:\vs2010ultimatum\vc\include\esenthelengine\misc\misc.h 154

Thank you all. Fixed List <Str>List_Chat; Everything works))
(This post was last modified: 02-27-2011 01:13 PM by Babulesnik.)
02-27-2011 12:28 PM
Find all posts by this user Quote this message in a reply
Post Reply