Click here to Skip to main content

C / C++ / MFC

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: check if a file exists PinsitebuilderMichael Dunn9:10 1 Nov '04  
GeneralRe: check if a file exists Pinmemberhyling11:19 1 Nov '04  
GeneralRe: check if a file exists PinmemberDavidCrow9:14 1 Nov '04  
GeneralRe: check if a file exists Pinmemberhyling11:19 1 Nov '04  
GeneralRe: check if a file exists PinmemberBlake Miller9:00 2 Nov '04  
GeneralDll dialog problem PinmemberBeerFizz8:48 1 Nov '04  
GeneralRe: Dll dialog problem PinmemberJoaquín M López Muñoz9:47 1 Nov '04  
GeneralRe: Dll dialog problem PinmemberBeerFizz11:09 1 Nov '04  
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 PinmemberJoaquín M López Muñoz11:54 1 Nov '04  
GeneralArranging Toolbars side by side PinmemberIngo798:34 1 Nov '04  
GeneralHIde logical disk Pinmemberfaroqtam7:20 1 Nov '04  
GeneralRe: HIde logical disk PinmemberDavidCrow7:33 1 Nov '04  
GeneralRe: HIde logical disk PinmemberJohn M. Drescher8:27 1 Nov '04  
GeneralRe: HIde logical disk PinmemberDavidCrow9:14 1 Nov '04  
GeneralRe: HIde logical disk PinmemberRyan Binns18:59 1 Nov '04  
GeneralRe: HIde logical disk PinmemberThatsAlok19:31 3 Nov '04  
GeneralChanging a dialog from Popup to Child at runtime PinmemberAli Niaz7:14 1 Nov '04  
GeneralRe: Changing a dialog from Popup to Child at runtime Pinmemberfaroqtam7:26 1 Nov '04  
GeneralOpening an MFC Application in Splitter Pane PinmemberAli Niaz7:04 1 Nov '04  
GeneralRe: Opening an MFC Application in Splitter Pane PinmemberDavidCrow7:34 1 Nov '04  
GeneralCalculator Using Stacks Pinmembercivicnar6:54 1 Nov '04  
GeneralRe: Calculator Using Stacks PinmemberDavidCrow7:38 1 Nov '04  
GeneralRe: Calculator Using Stacks Pinmembercivicnar7:53 1 Nov '04  
GeneralRe: Calculator Using Stacks PinmemberJohn M. Drescher8:37 1 Nov '04  
GeneralRe: Calculator Using Stacks PinmemberJohn M. Drescher8:41 1 Nov '04  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.5.120209.1 | Last Updated 9 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid