Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Displaying an html page in a window Derived from CWnd Pin
Gary R. Wheeler13-Jan-07 2:57
Gary R. Wheeler13-Jan-07 2:57 
QuestionHelp with MDI Apps with Picture Control Pin
kitty512-Jan-07 2:52
kitty512-Jan-07 2:52 
AnswerRe: Help with MDI Apps with Picture Control Pin
James R. Twine12-Jan-07 3:11
James R. Twine12-Jan-07 3:11 
GeneralRe: Help with MDI Apps with Picture Control Pin
kitty512-Jan-07 3:35
kitty512-Jan-07 3:35 
GeneralRe: Help with MDI Apps with Picture Control Pin
James R. Twine12-Jan-07 6:51
James R. Twine12-Jan-07 6:51 
GeneralRe: Help with MDI Apps with Picture Control Pin
kitty516-Jan-07 3:25
kitty516-Jan-07 3:25 
AnswerRe: Help with MDI Apps with Picture Control Pin
Hamid_RT12-Jan-07 17:34
Hamid_RT12-Jan-07 17:34 
GeneralRe: Help with MDI Apps with Picture Control Pin
kitty516-Jan-07 3:33
kitty516-Jan-07 3:33 
WhiteSky,

no i do not see a null value of variable because when i come into the showPicture() function the very 1st thing crashes... CPaintDC dc(this);

which gives me an error:
<br />
it crashes and gives this error:<br />
Debug Assertion Failed!<br />
Program: c:\..\test.exe<br />
File: f:\..\ship\atlmfc\src\mfc\wingdi.cpp<br />
Line: 1090<br />
<br />
Press retry to debug application<br />
<br />
When I press re-try it goes to this code:<br />
<br />
ASSERT(::IsWindow(pWnd->m_hWnd));<br />


in wingdi.cpp
<br />
CPaintDC::CPaintDC(CWnd* pWnd)<br />
{<br />
ASSERT_VALID(pWnd);<br />
ASSERT(::IsWindow(pWnd->m_hWnd));<br />
<br />
if (!Attach(::BeginPaint(m_hWnd = pWnd->m_hWnd, &m_ps)))<br />
AfxThrowResourceException();<br />
}<br />


my reply to James' post:
my dialogs are modeless...
that's why i thought that this would work.
what i'm trying to achieve at the end is to have 3 separate window where we can view pictures from 3 separate cameras we collect data from and 1 dialog box that controls the camera....

if I had just a dialog based app my code works. i simply initialize everything in ::OnInitDialog() and then it has a function called ::OnPaint() that I can call showImage()....

It is in an MDI application where everything gets hazy...
since it doesn't have an ::OnPaint() or ::OnInitDialog() function.
Please advice.

thanks,
Kitty

Kitty5

Questionmotion detection Pin
ceejeeb12-Jan-07 1:49
ceejeeb12-Jan-07 1:49 
JokeRe: motion detection Pin
Rajesh R Subramanian12-Jan-07 2:26
professionalRajesh R Subramanian12-Jan-07 2:26 
AnswerRe: motion detection Pin
Cool Ju12-Jan-07 2:48
Cool Ju12-Jan-07 2:48 
GeneralRe: motion detection Pin
ceejeeb12-Jan-07 4:33
ceejeeb12-Jan-07 4:33 
GeneralRe: motion detection Pin
Cool Ju13-Jan-07 4:12
Cool Ju13-Jan-07 4:12 
AnswerRe: motion detection Pin
Hamid_RT22-May-07 19:23
Hamid_RT22-May-07 19:23 
QuestionTo check and Create Folder in Win32 API Pin
Suresh H12-Jan-07 0:39
Suresh H12-Jan-07 0:39 
AnswerRe: To check and Create Folder in Win32 API Pin
CPallini12-Jan-07 0:55
mveCPallini12-Jan-07 0:55 
AnswerRe: To check and Create Folder in Win32 API Pin
Rajesh R Subramanian12-Jan-07 1:07
professionalRajesh R Subramanian12-Jan-07 1:07 
GeneralRe: To check and Create Folder in Win32 API Pin
Suresh H12-Jan-07 1:50
Suresh H12-Jan-07 1:50 
GeneralRe: To check and Create Folder in Win32 API Pin
Hamid_RT12-Jan-07 2:01
Hamid_RT12-Jan-07 2:01 
GeneralRe: To check and Create Folder in Win32 API Pin
Suresh H12-Jan-07 2:11
Suresh H12-Jan-07 2:11 
GeneralRe: To check and Create Folder in Win32 API Pin
PJ Arends12-Jan-07 9:36
professionalPJ Arends12-Jan-07 9:36 
AnswerRe: To check and Create Folder in Win32 API Pin
Hamid_RT12-Jan-07 1:14
Hamid_RT12-Jan-07 1:14 
AnswerRe: To check and Create Folder in Win32 API Pin
James R. Twine12-Jan-07 1:32
James R. Twine12-Jan-07 1:32 
AnswerRe: To check and Create Folder in Win32 API Pin
Cristian Amarie13-Jan-07 4:35
Cristian Amarie13-Jan-07 4:35 
QuestionRetrieve jpg file from Access database Pin
Vishvanathan12-Jan-07 0:39
Vishvanathan12-Jan-07 0:39 

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.