Click here to Skip to main content
15,895,192 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Single CreateDevice() for multiple views? Pin
prasad_som11-Dec-06 21:44
prasad_som11-Dec-06 21:44 
GeneralRe: Single CreateDevice() for multiple views? Pin
rp_suman11-Dec-06 22:12
rp_suman11-Dec-06 22:12 
GeneralRe: Single CreateDevice() for multiple views? Pin
rp_suman12-Dec-06 22:06
rp_suman12-Dec-06 22:06 
QuestionRe: Single CreateDevice() for multiple views? Pin
prasad_som12-Dec-06 22:12
prasad_som12-Dec-06 22:12 
AnswerRe: Single CreateDevice() for multiple views? Pin
rp_suman13-Dec-06 12:56
rp_suman13-Dec-06 12:56 
QuestionUpgraded to msjet 4.0 (dao) and now the app crash Pin
Anders Hornemann11-Dec-06 21:07
Anders Hornemann11-Dec-06 21:07 
AnswerRe: Upgraded to msjet 4.0 (dao) and now the app crash Pin
Steve S11-Dec-06 21:42
Steve S11-Dec-06 21:42 
GeneralRe: Upgraded to msjet 4.0 (dao) and now the app crash Pin
Anders Hornemann13-Dec-06 19:41
Anders Hornemann13-Dec-06 19:41 
Hi Steve. Thanks for your reply - unfortunately, none of your suggestions worked. I can get it to work if I declare my CDaoDatabase and CDaoRecordset as pointers in the WinThread class and allocate them in InitInstance()! Then, when I start another thread with same database construction, it fails again.
Now I have my database interface running only in the main thread (a CDialog based class) The workerthreads calls databasefunctions using the SendMessageTimeout(..) function - a messagehandler in the CDialogbased class handles the requests and return the result. It's a bit clumsy, but it works!! Fortunately, the number of operations on the database is limited, so it's easy done.

I can't figure out what the trick is to get it running directly from the threads. The upgrade from msjet3.5 to msjet4.0 hasn't been that easy!

Anders (still hanging around VC6)

GeneralRe: Upgraded to msjet 4.0 (dao) and now the app crash Pin
Steve S14-Dec-06 0:58
Steve S14-Dec-06 0:58 
Questionhow to use stored procedure Pin
With_problem11-Dec-06 20:15
With_problem11-Dec-06 20:15 
AnswerRe: how to use stored procedure Pin
Rajesh R Subramanian11-Dec-06 20:22
professionalRajesh R Subramanian11-Dec-06 20:22 
GeneralRe: how to use stored procedure Pin
With_problem11-Dec-06 20:25
With_problem11-Dec-06 20:25 
GeneralRe: how to use stored procedure Pin
Rajesh R Subramanian11-Dec-06 20:31
professionalRajesh R Subramanian11-Dec-06 20:31 
GeneralRe: how to use stored procedure Pin
With_problem11-Dec-06 20:36
With_problem11-Dec-06 20:36 
GeneralRe: how to use stored procedure Pin
Rajesh R Subramanian11-Dec-06 20:41
professionalRajesh R Subramanian11-Dec-06 20:41 
Questionabout MFC Pin
rajaasif11-Dec-06 19:15
rajaasif11-Dec-06 19:15 
AnswerRe: about MFC Pin
kakan11-Dec-06 19:25
professionalkakan11-Dec-06 19:25 
GeneralRe: about MFC Pin
rajaasif11-Dec-06 20:00
rajaasif11-Dec-06 20:00 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 20:25
professionalRajesh R Subramanian11-Dec-06 20:25 
GeneralRe: about MFC Pin
kakan11-Dec-06 20:31
professionalkakan11-Dec-06 20:31 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 20:33
professionalRajesh R Subramanian11-Dec-06 20:33 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 20:36
professionalRajesh R Subramanian11-Dec-06 20:36 
GeneralRe: about MFC Pin
rajaasif11-Dec-06 20:58
rajaasif11-Dec-06 20:58 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 21:21
professionalRajesh R Subramanian11-Dec-06 21:21 
GeneralRe: about MFC Pin
rajaasif11-Dec-06 22:02
rajaasif11-Dec-06 22:02 

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.