About Store Forum Documentation Contact
Donations:
392$/mo



Post Reply 
problem with load in "memb"
Author Message
Babulesnik Offline
Member

Post: #1
problem with load in "memb"
When I load the file that causes an error.
Quote:1>------ Build started: Project: client, Configuration: Debug Win32 ------
1> Lobbi.cpp
1>d:\vs2010ultimatum\vc\include\esenthelengine\misc\templates.h(268): error C2039: 'load' : is not a member of 'Struct_Rooms_N'
1> c:\documents and settings\дима\рабочий стол\esenthelenginesdk\tutorials\client\lobbi.cpp(33) : see declaration of 'Struct_Rooms_N'
1> d:\vs2010ultimatum\vc\include\esenthelengine\misc\templates.h(268) : while compiling class template member function 'Bool EE::Memb<TYPE>::load(EE::File &)'
1> with
1> [
1> TYPE=Struct_Rooms_N
1> ]
1> c:\documents and settings\дима\рабочий стол\esenthelenginesdk\tutorials\client\lobbi.cpp(51) : see reference to class template instantiation 'EE::Memb<TYPE>' being compiled
1> with
1> [
1> TYPE=Struct_Rooms_N
1> ]

My code:
Code:
struct Struct_Rooms_A{Str Number;Str NameRoom; Str PP;Str Stavka;};
struct Struct_Rooms_N{Str Number;Str NameRoom; Str PP;           };

ListGroup AzartR_Group[]={
ListGroup(MEMBER(Struct_Rooms_A,Number   ),0.06,L" #"             ),
ListGroup(MEMBER(Struct_Rooms_A,NameRoom ),0.31,L"    Название"   ),
ListGroup(MEMBER(Struct_Rooms_A,PP       ),0.07,L""               ),
ListGroup(MEMBER(Struct_Rooms_A,Stavka   ),0.08,L"  $"            ),};

ListGroup NormalR_Group[]={
ListGroup(MEMBER(Struct_Rooms_N,Number   ),0.06,L" #"             ),
ListGroup(MEMBER(Struct_Rooms_N,NameRoom ),0.31,L"    Название"   ),
ListGroup(MEMBER(Struct_Rooms_N,PP       ),0.15,L""               ),};

Struct_Rooms_A StructRoomsA;
Struct_Rooms_N StructRoomsN;
List<Struct_Rooms_A>List_A;
List<Struct_Rooms_N>List_N;
Memb<Struct_Rooms_A>DataRoomAzart;
Memb<Struct_Rooms_N>DataRoomNormal;

...

                      DataRoomNormal.load(Server.data);

                      List_N.setData(DataRoomNormal);
06-22-2011 08:52 PM
Find all posts by this user Quote this message in a reply
Post Reply