Click here to Skip to main content
15,889,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting the size of a block of code Pin
Maximilien2-Nov-04 2:47
Maximilien2-Nov-04 2:47 
GeneralRe: Getting the size of a block of code Pin
jan larsen2-Nov-04 3:29
jan larsen2-Nov-04 3:29 
GeneralRe: Getting the size of a block of code Pin
Anonymous2-Nov-04 7:49
Anonymous2-Nov-04 7:49 
GeneralThreading problem Pin
User 9148331-Nov-04 11:35
User 9148331-Nov-04 11:35 
GeneralRe: Threading problem Pin
Blake Miller2-Nov-04 7:59
Blake Miller2-Nov-04 7:59 
GeneralSplitter inside a Tab Window Pin
Ali Niaz1-Nov-04 11:17
Ali Niaz1-Nov-04 11:17 
GeneralRe: Splitter inside a Tab Window Pin
Selvam R2-Nov-04 3:01
professionalSelvam R2-Nov-04 3:01 
GeneralRe: Splitter inside a Tab Window Pin
Selvam R2-Nov-04 3:01
professionalSelvam R2-Nov-04 3:01 
GeneralRe: Splitter inside a Tab Window Pin
Ali Niaz2-Nov-04 4:17
Ali Niaz2-Nov-04 4:17 
QuestionWhere should I automatically launch a Modeless Dialog? Pin
nonothing1-Nov-04 9:51
nonothing1-Nov-04 9:51 
AnswerRe: Where should I automatically launch a Modeless Dialog? Pin
Christian Graus1-Nov-04 10:01
protectorChristian Graus1-Nov-04 10:01 
General.NET C++ MDI App release/debug discrepancy Pin
Jnewg51-Nov-04 9:19
Jnewg51-Nov-04 9:19 
Generalhelp plz Xp dialup Recovery Pin
Member 14861831-Nov-04 9:05
Member 14861831-Nov-04 9:05 
GeneralRe: help plz Xp dialup Recovery Pin
Member 14861832-Nov-04 7:36
Member 14861832-Nov-04 7:36 
GeneralRe: help plz Xp dialup Recovery Pin
ThatsAlok3-Nov-04 18:10
ThatsAlok3-Nov-04 18:10 
Generalcheck if a file exists Pin
hyling1-Nov-04 7:55
hyling1-Nov-04 7:55 
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 

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.