RE: [litwindow-users] Re: Using aggregate/accessors
Status: Alpha
Brought to you by:
hajokirchhoff
|
From: yrs90 <yr...@ya...> - 2005-04-19 07:16:16
|
> > This code returns 'valid but not a container'. Before I put the
> > is_container() check in, it generated a runtime error.
> What do you pass to "Items"?
I am passing a vector<class MyListData> to Items.
Specifically,
RULE("xrcMainList.Items", make_expr<accessor>("m_ListData"))
Where
vector<MyListData> m_ListData;
BEGIN_ADAPTER(DataClass)
PROP(m_ListData)
END_ADAPTER()
IMPLEMENT_ADAPTER_CONTAINER(vector<MyListData>)
At least, m_items.is_container() == true, because the FillList() function is
populating the wxListCtrl and it only populates the list if
m_items.is_container() is true.
> No requirements for adding a constructor/destructor. Must be a problem
> on your side. Have you tried rebuilding?
Yes I made sure to do a clean rebuild. I'll look at it more closely after I
get further along.
> Not having a debugger is not really an option IMHO for something so new
> as the lit window library.
Yes, I agree. I only have this problem building debug versions if I use
LitWindow and consequently STL. Using a debugger is possible as it is, but
it is quite tedious to use without symbol tables. Unfortunately I have to
factor in the cost of buying new tools for a couple of C-runtime libraries
into the decision about whether to commit to using LitWindow. I'll take a
look at the VC 2005 Express Beta to see if that will resolve the immediate
need.
Thanks,
Joel
---
[This E-mail scanned for viruses by Declude Virus]
|