Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert BIG CString to int Pin
BigDan347-Apr-06 6:18
BigDan347-Apr-06 6:18 
GeneralRe: Convert BIG CString to int Pin
ThatsAlok7-Apr-06 19:34
ThatsAlok7-Apr-06 19:34 
GeneralRe: Convert BIG CString to int Pin
BigDan348-Apr-06 3:22
BigDan348-Apr-06 3:22 
QuestionRotate Bytes Pin
big_denny_2007-Apr-06 5:56
big_denny_2007-Apr-06 5:56 
AnswerRe: Rotate Bytes Pin
Richard Andrew x647-Apr-06 6:05
professionalRichard Andrew x647-Apr-06 6:05 
GeneralRe: Rotate Bytes Pin
David Crow7-Apr-06 8:30
David Crow7-Apr-06 8:30 
GeneralRe: Rotate Bytes Pin
Richard Andrew x647-Apr-06 8:58
professionalRichard Andrew x647-Apr-06 8:58 
QuestionDLL - Multithreading Pin
borono7-Apr-06 5:40
borono7-Apr-06 5:40 
Hello. I wrote a dll for use with a VB front-end. The DLL runs mainly in a while loop which takes full control over the one thread VB allows, which ultimately freezes the VB form. I was wondering if adding multi-threading to the DLL would help. Theorhetically, I would think that it might. For example, VB App loads DLL in one thread, DLL creates new thread for while loop processing, thus the VB form should be able to function.

Here would be an example of my DLL layout:

while() { // keep looping

for() {  // used for determining size of data being read

if () { // used to provide data parsing, misc.

} //end if
} //end for
} //end while


So, I suppose I would need to through the entire while loop in its own thread, but I have no idea how. I have never multithreaded before, so I would really appreciate an example, if possible.

I thank you in advance.
AnswerRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 5:58
professionalRichard Andrew x647-Apr-06 5:58 
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 6:09
borono7-Apr-06 6:09 
GeneralRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 6:21
professionalRichard Andrew x647-Apr-06 6:21 
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 7:01
borono7-Apr-06 7:01 
GeneralRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 7:16
professionalRichard Andrew x647-Apr-06 7:16 
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 7:46
borono7-Apr-06 7:46 
GeneralRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 8:01
professionalRichard Andrew x647-Apr-06 8:01 
AnswerRe: DLL - Multithreading Pin
Waldermort7-Apr-06 7:48
Waldermort7-Apr-06 7:48 
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 8:27
borono7-Apr-06 8:27 
GeneralRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 9:04
professionalRichard Andrew x647-Apr-06 9:04 
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 11:58
borono7-Apr-06 11:58 
QuestionAlternative Shell for Windows Pin
Richard Andrew x647-Apr-06 5:15
professionalRichard Andrew x647-Apr-06 5:15 
AnswerRe: Alternative Shell for Windows Pin
James Brown7-Apr-06 6:31
James Brown7-Apr-06 6:31 
QuestionSetting a timer Pin
LCI7-Apr-06 4:54
LCI7-Apr-06 4:54 
AnswerRe: Setting a timer Pin
jhwurmbach7-Apr-06 5:20
jhwurmbach7-Apr-06 5:20 
QuestionRe: Setting a timer Pin
David Crow7-Apr-06 5:24
David Crow7-Apr-06 5:24 
AnswerRe: Setting a timer Pin
LCI7-Apr-06 5:45
LCI7-Apr-06 5:45 

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.