Click here to Skip to main content
15,906,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Callback function within a class Pin
Antti Keskinen8-Feb-04 9:59
Antti Keskinen8-Feb-04 9:59 
GeneralRe: Callback function within a class Pin
Cael8-Feb-04 16:32
Cael8-Feb-04 16:32 
GeneralHelp with MFC forms Pin
iboux6-Feb-04 9:52
iboux6-Feb-04 9:52 
GeneralRe: Help with MFC forms Pin
David Crow6-Feb-04 10:52
David Crow6-Feb-04 10:52 
QuestionUse CreateThread or _beginthreadex? Pin
xatanu6-Feb-04 9:41
xatanu6-Feb-04 9:41 
AnswerRe: Use CreateThread or _beginthreadex? Pin
Andrew Walker6-Feb-04 17:48
Andrew Walker6-Feb-04 17:48 
AnswerRe: Use CreateThread or _beginthreadex? Pin
Alexander M.,7-Feb-04 3:04
Alexander M.,7-Feb-04 3:04 
GeneralCMainFrame in DLL Pin
sjcomp6-Feb-04 9:04
sjcomp6-Feb-04 9:04 
I am writing a plug-in, which is a DLL (not exporting MFC classes). My dll exports a function, when it is called I show the MFC dialog window. Like this (I have an application class to support mfc, created by wizard):
void my_func()
{
CMyDlg dlg;
dlg.ShowModal();
}

This works. I have a problem, when I am trying to use Frame based window. I have a SDI frame and I can show it. But when I was closing it I have an exception in CFrameWnd::OnClose(), because this function closes the document and then tries to access it. I overrided CMainFrame::OnClose(), so it solved the problem (I just hide my frame). But when the host application terminates I have an access violation at CThreadSlotData::GetThreadValue(int nSlot) function at this line:
ASSERT(m_pSlotData[nSlot].dwFlags & SLOT_USED);

Anybody knows why should this happen? Maybe my dll tries to process some message, which it shouldn't? Any suggestions? Host application calls another exproted function from my dll, before exiting, but this function is not called, so I wonder how does my dll knows about termination, before host application infroms it about it?

Thanks in advance.

Regards,
Alexander.
GeneralImage processing! Pin
tuantt6-Feb-04 8:42
tuantt6-Feb-04 8:42 
GeneralRe: Image processing! Pin
sjcomp6-Feb-04 9:11
sjcomp6-Feb-04 9:11 
GeneralRe: Image processing! Pin
l a u r e n6-Feb-04 15:32
l a u r e n6-Feb-04 15:32 
General(Newbie) Outlining in VC7 IDE Pin
Ravi Bhavnani6-Feb-04 8:31
professionalRavi Bhavnani6-Feb-04 8:31 
GeneralRe: (Newbie) Outlining in VC7 IDE - edited Pin
Michael P Butler6-Feb-04 8:47
Michael P Butler6-Feb-04 8:47 
GeneralRe: (Newbie) Outlining in VC7 IDE - edited Pin
Ravi Bhavnani6-Feb-04 8:53
professionalRavi Bhavnani6-Feb-04 8:53 
GeneralRe: (Newbie) Outlining in VC7 IDE - edited Pin
l a u r e n6-Feb-04 15:33
l a u r e n6-Feb-04 15:33 
GeneralRe: (Newbie) Outlining in VC7 IDE - edited Pin
Ravi Bhavnani6-Feb-04 15:44
professionalRavi Bhavnani6-Feb-04 15:44 
GeneralRe: (Newbie) Outlining in VC7 IDE - edited Pin
l a u r e n6-Feb-04 15:47
l a u r e n6-Feb-04 15:47 
GeneralRe: (Newbie) Outlining in VC7 IDE - edited Pin
Ravi Bhavnani6-Feb-04 15:57
professionalRavi Bhavnani6-Feb-04 15:57 
GeneralRe: (Newbie) Outlining in VC7 IDE - edited Pin
l a u r e n6-Feb-04 16:00
l a u r e n6-Feb-04 16:00 
GeneralRe: (Newbie) Outlining in VC7 IDE - edited Pin
Ravi Bhavnani6-Feb-04 16:06
professionalRavi Bhavnani6-Feb-04 16:06 
Generalstl iterator Pin
ns6-Feb-04 7:46
ns6-Feb-04 7:46 
GeneralRe: stl iterator Pin
Robert A. T. Káldy7-Feb-04 21:24
Robert A. T. Káldy7-Feb-04 21:24 
GeneralRe: stl iterator Pin
ns9-Feb-04 1:29
ns9-Feb-04 1:29 
GeneralRe: stl iterator Pin
Robert A. T. Káldy11-Feb-04 1:24
Robert A. T. Káldy11-Feb-04 1:24 
GeneralC++ Question. Pin
WREY6-Feb-04 7:09
WREY6-Feb-04 7:09 

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.