Click here to Skip to main content
15,886,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Browser Pin
saisp23-Sep-07 20:21
saisp23-Sep-07 20:21 
GeneralRe: Browser Pin
nbugalia23-Sep-07 20:49
nbugalia23-Sep-07 20:49 
JokeRe: Browser Pin
Mark Salsbery24-Sep-07 8:01
Mark Salsbery24-Sep-07 8:01 
QuestionRe: Browser Pin
Hamid_RT23-Sep-07 20:53
Hamid_RT23-Sep-07 20:53 
AnswerRe: Browser Pin
saisp23-Sep-07 21:04
saisp23-Sep-07 21:04 
QuestionHow to create executable file to register an ActiveX(*.ocx) Pin
TooShy2Talk23-Sep-07 16:40
TooShy2Talk23-Sep-07 16:40 
AnswerRe: How to create executable file to register an ActiveX(*.ocx) Pin
Wes Aday23-Sep-07 17:23
professionalWes Aday23-Sep-07 17:23 
QuestionThreads Pin
ginjikun23-Sep-07 15:40
ginjikun23-Sep-07 15:40 
Hi All!
i would like to get some help regarding creating objects inside a thread.
i have a thread and within the thread i am creating an object.

main thread
{
obj o
for(;;)
{
o.createnamedpipe;
o.connectnamedpipe;
if(connected)
{
o.createthread;
o.startthread;
}
}
}

the above scenario always encounters an exception. is it because the obj is no longer valid when the o.startthread is started? i tried to use another thread thread and from there call the startthread... so ill have
for(;;)
{
o.createnamedpipe;
o.connectnamedpipe;
if(connected)
createthread(minorthread, o,...);
}

minorthread(lpParam)
{
obj o = static_cast<obj>lpParam;
o.createthread;
o.startthread;
}

this however still fails.
hope someone can help me. thanks in advance!


newbie Smile | :)
AnswerRe: Threads Pin
David Crow23-Sep-07 16:40
David Crow23-Sep-07 16:40 
GeneralRe: Threads Pin
ginjikun23-Sep-07 16:59
ginjikun23-Sep-07 16:59 
GeneralRe: Threads Pin
Iain Clarke, Warrior Programmer23-Sep-07 22:30
Iain Clarke, Warrior Programmer23-Sep-07 22:30 
QuestionRe: Threads Pin
David Crow24-Sep-07 2:49
David Crow24-Sep-07 2:49 
AnswerRe: Threads Pin
Stephen Hewitt23-Sep-07 19:31
Stephen Hewitt23-Sep-07 19:31 
QuestionSimple Question (Listbox) Pin
Dane Grant23-Sep-07 12:38
Dane Grant23-Sep-07 12:38 
AnswerRe: Simple Question (Listbox) Pin
Mark Salsbery23-Sep-07 12:46
Mark Salsbery23-Sep-07 12:46 
QuestionCFormView - How to change size of a view dynamically to fit the client's frame window (without manually resizing parent window)? Pin
mfc_rookie23-Sep-07 11:16
mfc_rookie23-Sep-07 11:16 
AnswerRe: CFormView - How to change size of a view dynamically to fit the client's frame window (without manually resizing parent window)? Pin
Mark Salsbery23-Sep-07 12:56
Mark Salsbery23-Sep-07 12:56 
GeneralRe: CFormView - How to change size of a view dynamically to fit the client's frame window (without manually resizing parent window)? Pin
mfc_rookie23-Sep-07 18:09
mfc_rookie23-Sep-07 18:09 
GeneralRe: CFormView - How to change size of a view dynamically to fit the client's frame window (without manually resizing parent window)? Pin
JudyL_MD24-Sep-07 2:52
JudyL_MD24-Sep-07 2:52 
GeneralRe: CFormView - How to change size of a view dynamically to fit the client's frame window (without manually resizing parent window)? Pin
Vaclav_24-Sep-07 4:17
Vaclav_24-Sep-07 4:17 
GeneralRe: CFormView - How to change size of a view dynamically to fit the client's frame window (without manually resizing parent window)? Pin
JudyL_MD24-Sep-07 4:41
JudyL_MD24-Sep-07 4:41 
GeneralRe: CFormView - How to change size of a view dynamically to fit the client's frame window (without manually resizing parent window)? Pin
Mark Salsbery24-Sep-07 6:28
Mark Salsbery24-Sep-07 6:28 
GeneralRe: CFormView - How to change size of a view dynamically to fit the client's frame window (without manually resizing parent window)? Pin
mfc_rookie24-Sep-07 18:59
mfc_rookie24-Sep-07 18:59 
Questionhow to change sid Pin
Sudipta Mukherjee23-Sep-07 11:13
Sudipta Mukherjee23-Sep-07 11:13 
QuestionTCP stack fragments incoming data in my client/server app Pin
deerhunter8923-Sep-07 8:10
deerhunter8923-Sep-07 8:10 

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.