Click here to Skip to main content
16,007,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNT service cause ADO's Open() function hang? Pin
2-Apr-01 18:26
suss2-Apr-01 18:26 
GeneralDirectX8 Texture Creation Pin
t_hamel2-Apr-01 17:24
t_hamel2-Apr-01 17:24 
GeneralDDE problems Pin
2-Apr-01 13:54
suss2-Apr-01 13:54 
GeneralCString Pin
RobJones2-Apr-01 12:25
RobJones2-Apr-01 12:25 
GeneralRe: CString Pin
Christian Graus2-Apr-01 13:08
protectorChristian Graus2-Apr-01 13:08 
GeneralRe: CString Pin
RobJones2-Apr-01 13:16
RobJones2-Apr-01 13:16 
GeneralRe: CString Pin
2-Apr-01 23:09
suss2-Apr-01 23:09 
GeneralProblems with m_pCtrlSite Pin
2-Apr-01 8:28
suss2-Apr-01 8:28 
I'm developing a VC++ app that has a form view inside of a MDI child window. In what appears to be a random occurence, the program will crash when creating the MDI child window (while setting the window title text). The text is set using the standard MFC method below:

void CWnd::SetWindowText(LPCTSTR lpszString)
{
ASSERT(::IsWindow(m_hWnd));

if (m_pCtrlSite == NULL)
::SetWindowText(m_hWnd, lpszString);
else
m_pCtrlSite->SetWindowText(lpszString);
}

The program is crashing because m_pCtrlSite (a pointer to an ActiveX control) is being reassigned to a value of 0x0000041 (a garbage value), when it should be null. I've gathered what I can from the call stack and can't seem to figure out why it's being reassigned (and it doesn't happen every time, so it's difficult to catch/debug). Has anyone seen a problem like this? Perhaps a memory leak? I've already tried the Rebuild All approach. Any help would be greatly appreciated.
GeneralATL: How can I create one ActiveX Control that could be pasted on Word ( for example...) Pin
2-Apr-01 7:58
suss2-Apr-01 7:58 
Generallittle help pleace :) Pin
nicson2-Apr-01 5:46
nicson2-Apr-01 5:46 
GeneralRe: little help pleace :) Pin
2-Apr-01 8:41
suss2-Apr-01 8:41 
GeneralRe: little help pleace :) Pin
Christian Graus2-Apr-01 13:09
protectorChristian Graus2-Apr-01 13:09 
GeneralRe: little help pleace :) Pin
2-Apr-01 21:23
suss2-Apr-01 21:23 
GeneralDagnamit - continuing file access nightmare.... Pin
Christian Graus2-Apr-01 3:21
protectorChristian Graus2-Apr-01 3:21 
GeneralRe: Dagnamit - continuing file access nightmare.... Pin
Christian Graus2-Apr-01 3:35
protectorChristian Graus2-Apr-01 3:35 
GeneralRe: Dagnamit - continuing file access nightmare.... Pin
l a u r e n2-Apr-01 6:37
l a u r e n2-Apr-01 6:37 
GeneralRe: Dagnamit - continuing file access nightmare.... Pin
Christian Graus2-Apr-01 13:11
protectorChristian Graus2-Apr-01 13:11 
GeneralInsert item on two lines in a List Control Pin
Gero2-Apr-01 2:50
Gero2-Apr-01 2:50 
QuestionHow is a differance in win98 and win2000 for image management? Pin
hahyojin1-Apr-01 22:29
hahyojin1-Apr-01 22:29 
GeneralConversion of a default file format to PDF. Pin
1-Apr-01 19:45
suss1-Apr-01 19:45 
GeneralRe: Conversion of a default file format to PDF. Pin
Kannan Kalyanaraman1-Apr-01 20:56
Kannan Kalyanaraman1-Apr-01 20:56 
QuestionHow to create a Button array ........ Pin
Vistac1-Apr-01 19:31
Vistac1-Apr-01 19:31 
AnswerRe: How to create a Button array ........ Pin
Erik Thompson1-Apr-01 21:36
sitebuilderErik Thompson1-Apr-01 21:36 
GeneralRe: How to create a Button array ........ Pin
Vistac2-Apr-01 6:17
Vistac2-Apr-01 6:17 
GeneralRe: How to create a Button array ........ Pin
Erik Thompson2-Apr-01 6:23
sitebuilderErik Thompson2-Apr-01 6:23 

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.