Click here to Skip to main content
15,880,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: check if a file exists Pin
Michael Dunn1-Nov-04 8:10
sitebuilderMichael Dunn1-Nov-04 8:10 
GeneralRe: check if a file exists Pin
hyling1-Nov-04 10:19
hyling1-Nov-04 10:19 
GeneralRe: check if a file exists Pin
David Crow1-Nov-04 8:14
David Crow1-Nov-04 8:14 
GeneralRe: check if a file exists Pin
hyling1-Nov-04 10:19
hyling1-Nov-04 10:19 
GeneralRe: check if a file exists Pin
Blake Miller2-Nov-04 8:00
Blake Miller2-Nov-04 8:00 
GeneralDll dialog problem Pin
BeerFizz1-Nov-04 7:48
BeerFizz1-Nov-04 7:48 
GeneralRe: Dll dialog problem Pin
Joaquín M López Muñoz1-Nov-04 8:47
Joaquín M López Muñoz1-Nov-04 8:47 
GeneralRe: Dll dialog problem Pin
BeerFizz1-Nov-04 10:09
BeerFizz1-Nov-04 10:09 
Joaquín, thanks for your response.

Well, when I have that line uncommented I get a violation access error atemptign to access location zero in "dlghtml.cpp", at teh lines I have highlighted. Any ideas, or anything I might try?

BOOL CDHtmlDialog::OnInitDialog()
{
AfxEnableControlContainer();

CDialog::OnInitDialog();

RECT rectClient;
GetClientRect(&rectClient);

// if we've been created from the dynamic template
// set the caption
if (!m_lpszTemplateName)
SetWindowText(m_strDlgCaption);

// check if there is a browser control on the dialog
// already
CWnd *pCtrl = GetDlgItem(AFX_IDC_BROWSER);
LPUNKNOWN lpUnk;
if (pCtrl)
{
lpUnk = pCtrl->GetControlUnknown();
if (lpUnk && SUCCEEDED(lpUnk->QueryInterface(IID_IWebBrowser2, (void **) &m_pBrowserApp)))
{
m_wndBrowser.Attach(pCtrl->m_hWnd);
m_bAttachedControl = TRUE;
}
}
if (m_pBrowserApp == NULL)
{
// create the control window
m_wndBrowser.CreateControl(CLSID_WebBrowser, NULL,
WS_VISIBLE | WS_CHILD, rectClient, this, AFX_IDC_BROWSER);
lpUnk = m_wndBrowser.GetControlUnknown();
if (FAILED(lpUnk->QueryInterface(IID_IWebBrowser2, (void**) &m_pBrowserApp)))

{
m_wndBrowser.DestroyWindow();
DestroyWindow();
return TRUE;
}
}
GeneralRe: Dll dialog problem Pin
Joaquín M López Muñoz1-Nov-04 10:54
Joaquín M López Muñoz1-Nov-04 10:54 
GeneralArranging Toolbars side by side Pin
Ingo791-Nov-04 7:34
Ingo791-Nov-04 7:34 
GeneralHIde logical disk Pin
faroqtam1-Nov-04 6:20
faroqtam1-Nov-04 6:20 
GeneralRe: HIde logical disk Pin
David Crow1-Nov-04 6:33
David Crow1-Nov-04 6:33 
GeneralRe: HIde logical disk Pin
John M. Drescher1-Nov-04 7:27
John M. Drescher1-Nov-04 7:27 
GeneralRe: HIde logical disk Pin
David Crow1-Nov-04 8:14
David Crow1-Nov-04 8:14 
GeneralRe: HIde logical disk Pin
Ryan Binns1-Nov-04 17:59
Ryan Binns1-Nov-04 17:59 
GeneralRe: HIde logical disk Pin
ThatsAlok3-Nov-04 18:31
ThatsAlok3-Nov-04 18:31 
GeneralChanging a dialog from Popup to Child at runtime Pin
Ali Niaz1-Nov-04 6:14
Ali Niaz1-Nov-04 6:14 
GeneralRe: Changing a dialog from Popup to Child at runtime Pin
faroqtam1-Nov-04 6:26
faroqtam1-Nov-04 6:26 
GeneralOpening an MFC Application in Splitter Pane Pin
Ali Niaz1-Nov-04 6:04
Ali Niaz1-Nov-04 6:04 
GeneralRe: Opening an MFC Application in Splitter Pane Pin
David Crow1-Nov-04 6:34
David Crow1-Nov-04 6:34 
GeneralCalculator Using Stacks Pin
civicnar1-Nov-04 5:54
civicnar1-Nov-04 5:54 
GeneralRe: Calculator Using Stacks Pin
David Crow1-Nov-04 6:38
David Crow1-Nov-04 6:38 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 6:53
civicnar1-Nov-04 6:53 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:37
John M. Drescher1-Nov-04 7:37 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:41
John M. Drescher1-Nov-04 7:41 

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.