Click here to Skip to main content
15,901,982 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ActiveX control repaint Pin
billhao26-Nov-02 17:07
billhao26-Nov-02 17:07 
GeneralRe: ActiveX control repaint Pin
billhao28-Nov-02 21:47
billhao28-Nov-02 21:47 
GeneralDatabase problem in vc++(ODBC) Pin
MFC is the Best25-Nov-02 12:25
MFC is the Best25-Nov-02 12:25 
GeneralRe: Database problem in vc++(ODBC) Pin
dima_t25-Nov-02 17:19
dima_t25-Nov-02 17:19 
GeneralRe: Database problem in vc++(ODBC) Pin
MFC is the Best25-Nov-02 22:00
MFC is the Best25-Nov-02 22:00 
GeneralRe: Database problem in vc++(ODBC) Pin
dima_t26-Nov-02 0:57
dima_t26-Nov-02 0:57 
GeneralStatic library, Threads and Dialog boxes Pin
Clay25-Nov-02 11:17
Clay25-Nov-02 11:17 
GeneralRe: Static library, Threads and Dialog boxes Pin
Joaquín M López Muñoz25-Nov-02 11:31
Joaquín M López Muñoz25-Nov-02 11:31 
main
{
afxbeginthread (lcd, ...)
lcd->startup
lcd->display(string)
...
}
The problem lies in the bolded line. Executing lcd::startup from the main thread does not cause the thread to actually execute this function --it is th main thread that executes it instead. So, you're creting a thread and then launching a modal dialog box in the context of the main thread. No wonder, the app won't reach the next line (intended to change the static text) until the dialog has closed!



Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Static library, Threads and Dialog boxes Pin
Bijesh25-Nov-02 11:43
Bijesh25-Nov-02 11:43 
QuestionSimilar to CFileDialog ?? Pin
Still learning how to code25-Nov-02 11:02
Still learning how to code25-Nov-02 11:02 
AnswerRe: Similar to CFileDialog ?? [corrected] Pin
Joaquín M López Muñoz25-Nov-02 11:06
Joaquín M López Muñoz25-Nov-02 11:06 
GeneralRe: Similar to CFileDialog ?? [corrected] Pin
Still learning how to code25-Nov-02 23:24
Still learning how to code25-Nov-02 23:24 
GeneralSpy++ Log to File Question Pin
ursus zeta25-Nov-02 11:02
ursus zeta25-Nov-02 11:02 
GeneralRe: Spy++ Log to File Question Pin
Mike Nordell25-Nov-02 11:41
Mike Nordell25-Nov-02 11:41 
GeneralRe: Spy++ Log to File Question Pin
ursus zeta25-Nov-02 12:15
ursus zeta25-Nov-02 12:15 
Generalprojects and work spaces updates Pin
jimNLX25-Nov-02 9:40
jimNLX25-Nov-02 9:40 
GeneralRe: projects and work spaces updates Pin
Joaquín M López Muñoz25-Nov-02 9:46
Joaquín M López Muñoz25-Nov-02 9:46 
GeneralRe: projects and work spaces updates Pin
jimNLX25-Nov-02 11:11
jimNLX25-Nov-02 11:11 
GeneralRe: projects and work spaces updates Pin
Joaquín M López Muñoz25-Nov-02 11:13
Joaquín M López Muñoz25-Nov-02 11:13 
GeneralRe: projects and work spaces updates Pin
Anonymous26-Nov-02 3:12
Anonymous26-Nov-02 3:12 
GeneralCDC Font Pin
act_x25-Nov-02 8:52
act_x25-Nov-02 8:52 
GeneralRe: CDC Font Pin
Scott H. Settlemier25-Nov-02 9:03
Scott H. Settlemier25-Nov-02 9:03 
GeneralRe: CDC Font Pin
act_x25-Nov-02 9:11
act_x25-Nov-02 9:11 
GeneralRe: CDC Font Pin
Scott H. Settlemier25-Nov-02 9:14
Scott H. Settlemier25-Nov-02 9:14 
GeneralRe: CDC Font Pin
Joaquín M López Muñoz25-Nov-02 9:09
Joaquín M López Muñoz25-Nov-02 9:09 

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.