Click here to Skip to main content
13,147,383 members (33,479 online)

C / C++ / MFC

 
Generaltalha rehman here Pin
talha rehman6-Nov-04 10:20
susstalha rehman6-Nov-04 10:20 
GeneralSkin on scrollbar of richedit control Pin
rver4-Nov-04 3:18
memberrver4-Nov-04 3:18 
QuestionHow to implement DirListBox and DriveListBox in Visual C++ ? Pin
vhmau2-Nov-04 19:43
membervhmau2-Nov-04 19:43 
AnswerRe: How to implement DirListBox and DriveListBox in Visual C++ ? Pin
vcplusplus3-Nov-04 0:27
membervcplusplus3-Nov-04 0:27 
AnswerRe: How to implement DirListBox and DriveListBox in Visual C++ ? Pin
DavidCrow3-Nov-04 3:35
memberDavidCrow3-Nov-04 3:35 
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 
GeneralCalculator Using Stacks Pin
civicnar1-Nov-04 5:54
membercivicnar1-Nov-04 5:54 
GeneralRe: Calculator Using Stacks Pin
DavidCrow1-Nov-04 6:38
memberDavidCrow1-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 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 7:57
membercivicnar1-Nov-04 7:57 
GeneralRe: Calculator Using Stacks Pin
DavidCrow1-Nov-04 8:31
memberDavidCrow1-Nov-04 8:31 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 8:38
memberJoaquín M López Muñoz1-Nov-04 8:38 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 8:49
membercivicnar1-Nov-04 8:49 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 8:52
membercivicnar1-Nov-04 8:52 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 8:57
memberJoaquín M López Muñoz1-Nov-04 8:57 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 9:03
membercivicnar1-Nov-04 9:03 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 9:26
memberJoaquín M López Muñoz1-Nov-04 9:26 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 9:32
membercivicnar1-Nov-04 9:32 
GeneralHook woes Pin
Roger Allen1-Nov-04 1:38
memberRoger Allen1-Nov-04 1:38 
GeneralRe: Hook woes Pin
vcplusplus1-Nov-04 2:38
membervcplusplus1-Nov-04 2:38 

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.


Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 24 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid