Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change Icon of exe Pin
Archer28213-Sep-04 15:45
Archer28213-Sep-04 15:45 
GeneralRe: Change Icon of exe Pin
the_augy13-Sep-04 16:21
the_augy13-Sep-04 16:21 
GeneralRe: Change Icon of exe Pin
Arsalan Malik13-Sep-04 18:49
Arsalan Malik13-Sep-04 18:49 
GeneralRe: Change Icon of exe Pin
Ryan Binns13-Sep-04 20:50
Ryan Binns13-Sep-04 20:50 
GeneralLocalization of negative numbers Pin
PJ Arends13-Sep-04 13:15
professionalPJ Arends13-Sep-04 13:15 
GeneralRe: Localization of negative numbers Pin
cmk13-Sep-04 23:42
cmk13-Sep-04 23:42 
GeneralRe: Localization of negative numbers Pin
PJ Arends14-Sep-04 6:53
professionalPJ Arends14-Sep-04 6:53 
GeneralMFC threading issue... Pin
the_augy13-Sep-04 12:59
the_augy13-Sep-04 12:59 
I am trying to pop up a dialog to loop a gif image while my program does processing work. The problem is, the thread I'm creating doesn't pop up as soon as it's created, and placing breakpoints in InitInstance and ExitInstance reveals that they aren't being called when I call my CWinThread-drived class's CreateThread() method. What explanations exist for this behavior? I have tried versions of my CWinThread class which do and don't override the Run() method. It's a very simple problem which hopefully has a very simple solution =]

I found an article[^] on code guru that deals with my exact issue. I've tried to imitate the behavior of my code to match the article's code as much as possible, but I still cannot get the thread to work.

Here is the .cpp file of my CWinThread class, CInterface

<br />
<br />
IMPLEMENT_DYNCREATE(CInterface, CWinThread)<br />
<br />
<br />
int CInterface::ExitInstance()<br />
{<br />
	return CWinThread::ExitInstance();<br />
}<br />
<br />
BOOL CInterface::InitInstance()<br />
{<br />
	return TRUE;<br />
}<br />
<br />
void CInterface::KillInterface()<br />
{<br />
	if (m_pD.m_hWnd)<br />
	{<br />
		m_pD.PostMessage(WM_COMMAND, IDCANCEL);<br />
	}<br />
}<br />
<br />
int CInterface::Run()<br />
{<br />
	m_pD.DoModal();<br />
	if (m_pParent)<br />
		m_pParent->PostMessage(WM_KILLINTERFACING);<br />
<br />
	return 0;<br />
}<br />
<br />


Any ideas?
Thanks alot,

augy
GeneralUpdate to my question (a doozy!) Pin
the_augy13-Sep-04 14:31
the_augy13-Sep-04 14:31 
GeneralAnother string question....I think Pin
Tom Wright13-Sep-04 12:29
Tom Wright13-Sep-04 12:29 
GeneralRe: Another string question....I think Pin
Arsalan Malik13-Sep-04 18:36
Arsalan Malik13-Sep-04 18:36 
Generaldelegating events from child to parent Pin
prateekkathuria13-Sep-04 11:10
prateekkathuria13-Sep-04 11:10 
GeneralHeight of Text Pin
Joel Holdsworth13-Sep-04 10:40
Joel Holdsworth13-Sep-04 10:40 
GeneralRe: Height of Text Pin
Joel Holdsworth13-Sep-04 11:14
Joel Holdsworth13-Sep-04 11:14 
GeneralRe: Height of Text Pin
cmk13-Sep-04 13:00
cmk13-Sep-04 13:00 
GeneralCopy Constructor Pin
Prudhvi Raju13-Sep-04 10:10
Prudhvi Raju13-Sep-04 10:10 
GeneralRe: Copy Constructor Pin
act_x13-Sep-04 10:25
act_x13-Sep-04 10:25 
GeneralRe: Copy Constructor Pin
BlackDice13-Sep-04 11:58
BlackDice13-Sep-04 11:58 
GeneralRe: Copy Constructor Pin
Anonymous13-Sep-04 12:14
Anonymous13-Sep-04 12:14 
QuestionHow to idintify a DLL whether it is a normal dll or it is a COM DLL Pin
Prudhvi Raju13-Sep-04 9:57
Prudhvi Raju13-Sep-04 9:57 
AnswerRe: How to idintify a DLL whether it is a normal dll or it is a COM DLL Pin
Anonymous13-Sep-04 15:14
Anonymous13-Sep-04 15:14 
GeneralDoc View architecture Pin
act_x13-Sep-04 9:41
act_x13-Sep-04 9:41 
GeneralRe: Doc View architecture Pin
Joel Holdsworth13-Sep-04 10:48
Joel Holdsworth13-Sep-04 10:48 
GeneralRe: Doc View architecture Pin
BlackDice13-Sep-04 12:02
BlackDice13-Sep-04 12:02 
GeneralC/C++ Scripters Wanted For New Games Company Pin
KingsZone13-Sep-04 8:32
sussKingsZone13-Sep-04 8:32 

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.