Click here to Skip to main content
14,634,677 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Change caption of an application Pin
Avi Berger2-Feb-10 18:26
MemberAvi Berger2-Feb-10 18:26 
AnswerRe: Change caption of an application Pin
john56322-Feb-10 19:05
Memberjohn56322-Feb-10 19:05 
Question64 bit ActiveX Chart control Pin
Don M2-Feb-10 12:12
MemberDon M2-Feb-10 12:12 
QuestionConvert CFile IO to istream IO Pin
transoft2-Feb-10 3:48
Membertransoft2-Feb-10 3:48 
AnswerRe: Convert CFile IO to istream IO Pin
«_Superman_»2-Feb-10 4:00
professional«_Superman_»2-Feb-10 4:00 
GeneralRe: Convert CFile IO to istream IO Pin
transoft2-Feb-10 4:26
Membertransoft2-Feb-10 4:26 
GeneralRe: Convert CFile IO to istream IO Pin
KingsGambit2-Feb-10 5:08
MemberKingsGambit2-Feb-10 5:08 
QuestionMultiple open database links using CDatabase Pin
bob169722-Feb-10 3:46
Memberbob169722-Feb-10 3:46 
I'm curious to know if having a small number of .mdb databases connections open at the same time will tax systems or if it's ok to do assuming they are only open for a brief instant in time.

Details:
For applications that briefly open an .mdb file while initializing, I normally try to pass a reference to an instance of CDatabase that has been opened on a database while loading data from tables. I'll usually close the database connection once I know I'm done. The database remains open for less than a second.

I'm now faced with the need to read from multiple .mdb files while initializing, with no guaranteed order, and the potential to need to alternate reads between the databases. I've noticed that there is a big time difference if I close the old database connection and open a new one when I need to switch which database I'm reading from.

My intention is to keep a small array of those open database connections to keep the duration of the loading time to a minimum and close them promptly once I'm done.

Are there any hidden "gotchas" to doing this? Is it unwise to keep more than one instance of a database open at a time?
AnswerRe: Multiple open database links using CDatabase Pin
bob169723-Feb-10 8:55
Memberbob169723-Feb-10 8:55 
Questionneed some suggestion on a method to use Pin
benjamin yap2-Feb-10 3:42
Memberbenjamin yap2-Feb-10 3:42 
AnswerRe: need some suggestion on a method to use Pin
«_Superman_»2-Feb-10 4:08
professional«_Superman_»2-Feb-10 4:08 
AnswerRe: need some suggestion on a method to use Pin
Maximilien2-Feb-10 4:17
MemberMaximilien2-Feb-10 4:17 
AnswerRe: need some suggestion on a method to use Pin
David Crow2-Feb-10 5:18
MemberDavid Crow2-Feb-10 5:18 
GeneralRe: need some suggestion on a method to use Pin
benjamin yap2-Feb-10 22:39
Memberbenjamin yap2-Feb-10 22:39 
GeneralRe: need some suggestion on a method to use Pin
David Crow3-Feb-10 3:14
MemberDavid Crow3-Feb-10 3:14 
GeneralRe: need some suggestion on a method to use Pin
benjamin yap3-Feb-10 4:28
Memberbenjamin yap3-Feb-10 4:28 
AnswerRe: need some suggestion on a method to use Pin
David Crow3-Feb-10 4:35
MemberDavid Crow3-Feb-10 4:35 
Questionios::in | ios::out error Pin
Sujan Dhakal2-Feb-10 1:09
MemberSujan Dhakal2-Feb-10 1:09 
AnswerRe: ios::in | ios::out error Pin
CPallini2-Feb-10 1:32
mveCPallini2-Feb-10 1:32 
QuestionRe: ios::in | ios::out error Pin
David Crow2-Feb-10 3:20
MemberDavid Crow2-Feb-10 3:20 
AnswerRe: ios::in | ios::out error Pin
Sujan Dhakal2-Feb-10 9:46
MemberSujan Dhakal2-Feb-10 9:46 
AnswerRe: ios::in | ios::out error Pin
David Crow2-Feb-10 9:51
MemberDavid Crow2-Feb-10 9:51 
GeneralRe: ios::in | ios::out error Pin
Sujan Dhakal2-Feb-10 16:27
MemberSujan Dhakal2-Feb-10 16:27 
GeneralRe: ios::in | ios::out error Pin
CPallini2-Feb-10 21:16
mveCPallini2-Feb-10 21:16 
GeneralRe: ios::in | ios::out error Pin
Sujan Dhakal3-Feb-10 0:55
MemberSujan Dhakal3-Feb-10 0:55 

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.