Click here to Skip to main content
14,550,752 members

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
Memberhyling1-Nov-04 10:19 
GeneralRe: check if a file exists Pin
David Crow1-Nov-04 8:14
MemberDavid Crow1-Nov-04 8:14 
GeneralRe: check if a file exists Pin
hyling1-Nov-04 10:19
Memberhyling1-Nov-04 10:19 
GeneralRe: check if a file exists Pin
Blake Miller2-Nov-04 8:00
MemberBlake Miller2-Nov-04 8:00 
GeneralDll dialog problem Pin
BeerFizz1-Nov-04 7:48
MemberBeerFizz1-Nov-04 7:48 
GeneralRe: Dll dialog problem Pin
Joaquín M López Muñoz1-Nov-04 8:47
MemberJoaquín M López Muñoz1-Nov-04 8:47 
GeneralRe: Dll dialog problem Pin
BeerFizz1-Nov-04 10:09
MemberBeerFizz1-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
MemberJoaquín M López Muñoz1-Nov-04 10:54 
GeneralArranging Toolbars side by side Pin
Ingo791-Nov-04 7:34
MemberIngo791-Nov-04 7:34 
GeneralHIde logical disk Pin
faroqtam1-Nov-04 6:20
Memberfaroqtam1-Nov-04 6:20 
GeneralRe: HIde logical disk Pin
David Crow1-Nov-04 6:33
MemberDavid Crow1-Nov-04 6:33 
GeneralRe: HIde logical disk Pin
John M. Drescher1-Nov-04 7:27
MemberJohn M. Drescher1-Nov-04 7:27 
GeneralRe: HIde logical disk Pin
David Crow1-Nov-04 8:14
MemberDavid Crow1-Nov-04 8:14 
GeneralRe: HIde logical disk Pin
Ryan Binns1-Nov-04 17:59
MemberRyan Binns1-Nov-04 17:59 
GeneralRe: HIde logical disk Pin
ThatsAlok3-Nov-04 18:31
MemberThatsAlok3-Nov-04 18:31 
GeneralChanging a dialog from Popup to Child at runtime Pin
Ali Niaz1-Nov-04 6:14
MemberAli Niaz1-Nov-04 6:14 
GeneralRe: Changing a dialog from Popup to Child at runtime Pin
faroqtam1-Nov-04 6:26
Memberfaroqtam1-Nov-04 6:26 
GeneralOpening an MFC Application in Splitter Pane Pin
Ali Niaz1-Nov-04 6:04
MemberAli Niaz1-Nov-04 6:04 
GeneralRe: Opening an MFC Application in Splitter Pane Pin
David Crow1-Nov-04 6:34
MemberDavid Crow1-Nov-04 6:34 
GeneralCalculator Using Stacks Pin
civicnar1-Nov-04 5:54
Membercivicnar1-Nov-04 5:54 
GeneralRe: Calculator Using Stacks Pin
David Crow1-Nov-04 6:38
MemberDavid Crow1-Nov-04 6:38 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 6:53
Membercivicnar1-Nov-04 6:53 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:37
MemberJohn M. Drescher1-Nov-04 7:37 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:41
MemberJohn 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.