Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to add edit control to CTreeListControl Pin
Sakhalean29-Jul-10 4:00
Sakhalean29-Jul-10 4:00 
AnswerRe: How to add edit control to CTreeListControl Pin
Richard MacCutchan29-Jul-10 5:02
mveRichard MacCutchan29-Jul-10 5:02 
QuestionHow to add Publisher name for an application Pin
Cvaji29-Jul-10 3:46
Cvaji29-Jul-10 3:46 
AnswerRe: How to add Publisher name for an application Pin
Cvaji29-Jul-10 4:10
Cvaji29-Jul-10 4:10 
GeneralRe: How to add Publisher name for an application Pin
Yusuf29-Jul-10 8:57
Yusuf29-Jul-10 8:57 
AnswerRe: How to add Publisher name for an application Pin
Luc Pattyn29-Jul-10 4:12
sitebuilderLuc Pattyn29-Jul-10 4:12 
QuestionClient Connected listbox in vc++ mfc Pin
dilara semerci29-Jul-10 3:30
dilara semerci29-Jul-10 3:30 
AnswerRe: Client Connected listbox in vc++ mfc Pin
Moak29-Jul-10 3:52
Moak29-Jul-10 3:52 
dilara semerci wrote:
How to get 0 or 1 return values in my dialog.cpp to do the listbox operations? or any other suggestions??


I could think of two alternatives. First, use PostMessage() to notify the user interface that something has happened (e.g. socket connected, status changes), therefore you need to give your worker thread the window handle of your dialog. Second, use non-blocking sockets and your can handle everything in a single-thread context with event handlers (e.g. OnConnect, OnReceive).

The first alternative can be added to your existing application and should be running quickly. The second requires code refactoring, but probably is easier to extend and maintain in the long run... so it really depends on your application requirements/features what's better.

Hope this gives you some ideas. Smile | :)
/M

GeneralRe: Client Connected listbox in vc++ mfc Pin
dilara semerci30-Jul-10 2:28
dilara semerci30-Jul-10 2:28 
GeneralRe: Client Connected listbox in vc++ mfc Pin
Moak30-Jul-10 3:35
Moak30-Jul-10 3:35 
QuestionNumber of bytes read coming different while debugging the program and while running it. Pin
learningvisualc28-Jul-10 23:43
learningvisualc28-Jul-10 23:43 
AnswerRe: Number of bytes read coming different while debugging the program and while running it. Pin
Code-o-mat29-Jul-10 0:00
Code-o-mat29-Jul-10 0:00 
AnswerRe: Number of bytes read coming different while debugging the program and while running it. Pin
Luc Pattyn29-Jul-10 0:52
sitebuilderLuc Pattyn29-Jul-10 0:52 
QuestionMessage Removed Pin
28-Jul-10 21:57
AmbiguousName28-Jul-10 21:57 
AnswerRe: How to call a user-defined function in VC++.NET?? Pin
Cedric Moonen28-Jul-10 22:03
Cedric Moonen28-Jul-10 22:03 
GeneralRe: How to call a user-defined function in VC++.NET?? Pin
AmbiguousName28-Jul-10 22:13
AmbiguousName28-Jul-10 22:13 
GeneralRe: How to call a user-defined function in VC++.NET?? Pin
Sauro Viti28-Jul-10 22:42
professionalSauro Viti28-Jul-10 22:42 
AnswerRe: How to call a user-defined function in VC++.NET?? Pin
Maximilien29-Jul-10 1:12
Maximilien29-Jul-10 1:12 
QuestionHow to play flash movies with transparent background color in a Window? Pin
itmagina28-Jul-10 14:52
itmagina28-Jul-10 14:52 
QuestionC - DLL Export Pin
dataminers28-Jul-10 11:50
dataminers28-Jul-10 11:50 
AnswerRe: C - DLL Export Pin
Luc Pattyn28-Jul-10 12:10
sitebuilderLuc Pattyn28-Jul-10 12:10 
GeneralRe: C - DLL Export Pin
«_Superman_»28-Jul-10 18:15
professional«_Superman_»28-Jul-10 18:15 
GeneralRe: C - DLL Export Pin
Peter_in_278028-Jul-10 19:13
professionalPeter_in_278028-Jul-10 19:13 
QuestionRe: C - DLL Export Pin
norish28-Jul-10 15:36
norish28-Jul-10 15:36 
AnswerRe: C - DLL Export Pin
dataminers28-Jul-10 19:40
dataminers28-Jul-10 19:40 

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.