Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC - Time control which display in 24 hour format Pin
Prasanth M V25-Aug-08 22:21
Prasanth M V25-Aug-08 22:21 
AnswerRe: MFC - Time control which display in 24 hour format Pin
Jijo.Raj25-Aug-08 22:38
Jijo.Raj25-Aug-08 22:38 
QuestionHow to decide a string is in RTF or Plain Text Pin
CodingLover25-Aug-08 20:46
CodingLover25-Aug-08 20:46 
QuestionRe: How to decide a string is in RTF or Plain Text Pin
Rajesh R Subramanian25-Aug-08 20:59
professionalRajesh R Subramanian25-Aug-08 20:59 
QuestionRe: How to decide a string is in RTF or Plain Text Pin
CodingLover25-Aug-08 22:23
CodingLover25-Aug-08 22:23 
AnswerRe: How to decide a string is in RTF or Plain Text Pin
Rajesh R Subramanian25-Aug-08 23:28
professionalRajesh R Subramanian25-Aug-08 23:28 
Questionproblem using CDaoDatabase Pin
Prasann Mayekar25-Aug-08 20:43
Prasann Mayekar25-Aug-08 20:43 
AnswerRe: problem using CDaoDatabase Pin
Varghese Paul M25-Aug-08 21:30
Varghese Paul M25-Aug-08 21:30 
Hi,
To my knowledge, none of the MFC DAO classes are thread safe. You are not supposed to access DAO objects from threads other than the main GUI thread. You have to use "SendMessage" to the main APP window from the worker threads to access DAO objects in the main GUI thread.

The best alternative I would suggest is ADO which is thread-safe.

But you can try the following approaches.

1. Instead of using a worker thread, create a user interface thread by deriving a class from CWinThread and call AfxDaoInit() function from the override InitInstance method before you start using DAO objects.

or

2. Try the worker thread itself. Call AfxDaoInit() method before you start using DAO objects.

cheers
Varghese Paul

QuestionWriteFile with Vista Pin
john563225-Aug-08 19:41
john563225-Aug-08 19:41 
AnswerRe: WriteFile with Vista Pin
SandipG 25-Aug-08 20:03
SandipG 25-Aug-08 20:03 
AnswerRe: WriteFile with Vista Pin
Rajesh R Subramanian25-Aug-08 20:11
professionalRajesh R Subramanian25-Aug-08 20:11 
AnswerRe: WriteFile with Vista Pin
Peter Weyzen26-Aug-08 0:37
Peter Weyzen26-Aug-08 0:37 
GeneralRe: WriteFile with Vista Pin
Mark Salsbery26-Aug-08 5:39
Mark Salsbery26-Aug-08 5:39 
QuestionMFC validation Pin
samrw25-Aug-08 19:32
samrw25-Aug-08 19:32 
AnswerRe: MFC validation Pin
Rajesh R Subramanian25-Aug-08 19:33
professionalRajesh R Subramanian25-Aug-08 19:33 
JokeRe: MFC validation Pin
ThatsAlok25-Aug-08 21:04
ThatsAlok25-Aug-08 21:04 
JokeRe: MFC validation Pin
Mark Salsbery26-Aug-08 5:41
Mark Salsbery26-Aug-08 5:41 
GeneralRe: MFC validation Pin
samrw26-Aug-08 9:21
samrw26-Aug-08 9:21 
GeneralRe: MFC validation Pin
Mark Salsbery26-Aug-08 9:33
Mark Salsbery26-Aug-08 9:33 
GeneralRe: MFC validation Pin
samrw26-Aug-08 17:16
samrw26-Aug-08 17:16 
QuestionRe: MFC validation Pin
Mark Salsbery27-Aug-08 6:26
Mark Salsbery27-Aug-08 6:26 
QuestionHow to convert the CString to the _bstr_t? Pin
aygrhnwms30425-Aug-08 18:49
aygrhnwms30425-Aug-08 18:49 
AnswerRe: How to convert the CString to the _bstr_t? Pin
ThatsAlok25-Aug-08 18:55
ThatsAlok25-Aug-08 18:55 
GeneralRe: How to convert the CString to the _bstr_t? Pin
aygrhnwms30425-Aug-08 19:24
aygrhnwms30425-Aug-08 19:24 
GeneralRe: How to convert the CString to the _bstr_t? Pin
Jijo.Raj25-Aug-08 19:35
Jijo.Raj25-Aug-08 19:35 

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.