Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: List control ignores FindItem? Pin
Stuart Dootson11-Jan-09 5:11
professionalStuart Dootson11-Jan-09 5:11 
QuestionPNG on button Pin
kiranin10-Jan-09 6:29
kiranin10-Jan-09 6:29 
AnswerRe: PNG on button Pin
Richard Andrew x6410-Jan-09 6:42
professionalRichard Andrew x6410-Jan-09 6:42 
GeneralRe: PNG on button Pin
kiranin10-Jan-09 7:18
kiranin10-Jan-09 7:18 
AnswerRe: PNG on button Pin
Hamid_RT10-Jan-09 7:50
Hamid_RT10-Jan-09 7:50 
AnswerRe: PNG on button Pin
CPallini10-Jan-09 10:48
mveCPallini10-Jan-09 10:48 
AnswerRe: PNG on button Pin
Iain Clarke, Warrior Programmer11-Jan-09 23:12
Iain Clarke, Warrior Programmer11-Jan-09 23:12 
QuestionSimple Question: Where to store global object? Pin
nobaq10-Jan-09 5:47
nobaq10-Jan-09 5:47 
Hi,

Where to best store a global object in an SDI app? In my case it's a "DatabaseManager" class for accessing an SQLite database.

First it was just a member variable of my CDocument but now I need the object in many places in my app.

So where to best store it?

* Global variable?
* Singleton object?
* Member variable of CWinApp?
* ...

One problem: I want to open the database when constructing the object, so the object may throw an "DatabaseException". For this reason a global variable as well as a singleton seem to be suboptimal to me.

Niki
AnswerRe: Simple Question: Where to store global object? Pin
Richard Andrew x6410-Jan-09 6:08
professionalRichard Andrew x6410-Jan-09 6:08 
GeneralRe: Simple Question: Where to store global object? Pin
nobaq10-Jan-09 6:15
nobaq10-Jan-09 6:15 
GeneralRe: Simple Question: Where to store global object? Pin
nobaq10-Jan-09 6:18
nobaq10-Jan-09 6:18 
GeneralRe: Simple Question: Where to store global object? Pin
Richard Andrew x6410-Jan-09 6:27
professionalRichard Andrew x6410-Jan-09 6:27 
AnswerRe: Simple Question: Where to store global object? Pin
David Crow12-Jan-09 3:30
David Crow12-Jan-09 3:30 
Questioncompare c++/MFC to C#/.net Pin
Seraph_summer10-Jan-09 5:09
Seraph_summer10-Jan-09 5:09 
AnswerRe: compare c++/MFC to C#/.net Pin
Hamid_RT10-Jan-09 5:52
Hamid_RT10-Jan-09 5:52 
QuestionRe: compare c++/MFC to C#/.net Pin
bob1697210-Jan-09 6:07
bob1697210-Jan-09 6:07 
AnswerRe: compare c++/MFC to C#/.net Pin
Loreia10-Jan-09 6:09
Loreia10-Jan-09 6:09 
AnswerRe: compare c++/MFC to C#/.net Pin
Stuart Dootson10-Jan-09 13:36
professionalStuart Dootson10-Jan-09 13:36 
AnswerRe: compare c++/MFC to C#/.net Pin
Green Fuze11-Jan-09 6:48
Green Fuze11-Jan-09 6:48 
Question::FindFirstFile problem [modified] Pin
Loreia10-Jan-09 4:48
Loreia10-Jan-09 4:48 
AnswerRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 5:15
sitebuilderLuc Pattyn10-Jan-09 5:15 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 5:52
Loreia10-Jan-09 5:52 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 6:03
sitebuilderLuc Pattyn10-Jan-09 6:03 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 6:20
Loreia10-Jan-09 6:20 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 6:46
sitebuilderLuc Pattyn10-Jan-09 6:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.