Hi,

Can any one give me a hint on how to use
QueryModel in order to set items for WComboBox. I tried the following but something is wrong with it:

class Country;
typedef dbo::ptr<Country> CountryPtr;

WComboBox* combo;
...
dbo::QueryModel<CountryPtr> *model = new dbo::QueryModel<CountryPtr>();

model->setQuery(session->find<Country>());
combo->setModel(model);

Best regards,
Nasser Al-Noimi
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to