Click here to Skip to main content
15,916,280 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Serial Port Interfacing Pin
lead2gold28-Jan-03 10:14
lead2gold28-Jan-03 10:14 
GeneralRe: Serial Port Interfacing Pin
LittleYellowBird29-Jan-03 2:21
LittleYellowBird29-Jan-03 2:21 
GeneralDisplaying text from a text file in a dialogue box Pin
Kayembi23-Jan-03 14:29
Kayembi23-Jan-03 14:29 
GeneralRe: Displaying text from a text file in a dialogue box Pin
Mike Nordell23-Jan-03 17:03
Mike Nordell23-Jan-03 17:03 
QuestionA multimedia queation: How to convert YUV to RGB in video stream? Pin
Danaus23-Jan-03 14:28
Danaus23-Jan-03 14:28 
GeneralDeveloping Windows Service in XP with graphics Pin
richard9723-Jan-03 13:34
richard9723-Jan-03 13:34 
GeneralRe: Developing Windows Service in XP with graphics Pin
Mike Nordell23-Jan-03 17:13
Mike Nordell23-Jan-03 17:13 
GeneralCString and threads Pin
(Steven Hicks)n+123-Jan-03 12:59
(Steven Hicks)n+123-Jan-03 12:59 
I'm working on an (AI) agent for my browser, thats explains why I want it runing in a thread, and I'm accessing a global CStringArray(loaded at start up), why does it crash when I try to access it?

DWORD CBookmarks::BKOrg_ThreadStub(DWORD arg)
{
return ((CBookmarks*)arg)->BKOrg_Thread();
}

DWORD CBookmarks::BKOrg_Thread()
{
::MessageBox(GetSafeHwnd(),"Start","Thread",MB_OK);
::MessageBox(GetSafeHwnd(),m_strStr_Websites[0],"Threads",MB_OK);
// ::MessageBox(GetSafeHwnd(),GetFiles(m_strStr_Websites[0]),"Threads",MB_OK);

::MessageBox(GetSafeHwnd(),"Ended","Thread",MB_OK);
AfxEndThread(0);

return 0;
}

void CBookmarks::StartBKOrg_Thread(void )
{
pThread=AfxBeginThread((AFX_THREADPROC)&BKOrg_ThreadStub,(void*)this);
}

But when the MessageBox with the CString is commented out then it runs fine.

-Steven

By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.

For those who were wondering, actual (Linux) Penguins were harmed in creating this message.

Visit Ltpb.8m.com

404Browser (Efficient, Fast, Secure Web Browser): 404Browser.com


GeneralRe: CString and threads Pin
Peter Molnar23-Jan-03 14:10
Peter Molnar23-Jan-03 14:10 
GeneralStatic Text Background Pin
mattmattbobatt23-Jan-03 12:39
mattmattbobatt23-Jan-03 12:39 
GeneralRe: Static Text Background Pin
jimNLX24-Jan-03 10:35
jimNLX24-Jan-03 10:35 
GeneralRe: Static Text Background Pin
georgiek5024-Jan-03 17:10
georgiek5024-Jan-03 17:10 
Generaltimeout recv on udp socket Pin
orcun colak23-Jan-03 12:34
orcun colak23-Jan-03 12:34 
Generalrecvfrom, not recv Pin
Anonymous23-Jan-03 14:57
Anonymous23-Jan-03 14:57 
GeneralCOleSafeArray Pin
Peter Molnar23-Jan-03 11:24
Peter Molnar23-Jan-03 11:24 
GeneralText on a Tool Bar Pin
Eldon Zacek23-Jan-03 11:18
Eldon Zacek23-Jan-03 11:18 
GeneralRe: Text on a Tool Bar Pin
PJ Arends23-Jan-03 12:52
professionalPJ Arends23-Jan-03 12:52 
GeneralHelp!! Pin
MemLeak23-Jan-03 10:39
MemLeak23-Jan-03 10:39 
GeneralRe: Help!! Pin
Jörgen Sigvardsson23-Jan-03 10:45
Jörgen Sigvardsson23-Jan-03 10:45 
GeneralRe: Help!! Pin
Christian Graus23-Jan-03 10:48
protectorChristian Graus23-Jan-03 10:48 
QuestionWhere did the ClassWizard go? Pin
davedoc23-Jan-03 10:21
davedoc23-Jan-03 10:21 
AnswerRe: Where did the ClassWizard go? Pin
Gary R. Wheeler23-Jan-03 10:25
Gary R. Wheeler23-Jan-03 10:25 
GeneralCProperty Sheet Pin
nlecren23-Jan-03 10:16
nlecren23-Jan-03 10:16 
GeneralRe: CProperty Sheet Pin
Roger Allen24-Jan-03 1:46
Roger Allen24-Jan-03 1:46 
GeneralRe: CProperty Sheet Pin
nlecren24-Jan-03 2:55
nlecren24-Jan-03 2:55 

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.