Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCalling a Dialog from another Dialog Pin
Sayan Mukherjee1-Apr-02 17:08
Sayan Mukherjee1-Apr-02 17:08 
GeneralRe: Calling a Dialog from another Dialog Pin
Prem Kumar1-Apr-02 17:16
Prem Kumar1-Apr-02 17:16 
GeneralRe: Calling a Dialog from another Dialog Pin
Sayan Mukherjee2-Apr-02 0:11
Sayan Mukherjee2-Apr-02 0:11 
GeneralRe: Calling a Dialog from another Dialog Pin
Paul M Watt1-Apr-02 17:46
mentorPaul M Watt1-Apr-02 17:46 
Generalvolume control Pin
1-Apr-02 16:23
suss1-Apr-02 16:23 
GeneralRe: volume control Pin
Prem Kumar1-Apr-02 16:56
Prem Kumar1-Apr-02 16:56 
GeneralCHtmlView Question Pin
1-Apr-02 15:53
suss1-Apr-02 15:53 
GeneralRe: CHtmlView Question Pin
Paul M Watt1-Apr-02 16:55
mentorPaul M Watt1-Apr-02 16:55 
If you do not have an active view, then you will be accessing a NULL pointer in this line:

((CHtmlView*)GetActiveView())->Navigate(strcAddress);

If you change your code to this, you will not have a problem:

void CMainFrame::NewAddress()
{
   CString strcAddress;

   m_wndDlgBar.GetDlgItemText(IDC_EADDRESS, strcAddress);

   CHtmlView* pHTMLView = (CHtmlView*)GetActiveView();
   if (pHTMLView)
   {
      // Only access the pointer if the HTML view pointer is valid.
      pHTMLView->Navigate(strcAddress);
   }
}

GeneralRe: CHtmlView Question Pin
1-Apr-02 17:57
suss1-Apr-02 17:57 
Generalblinking cursor position Pin
bracoute1-Apr-02 13:19
bracoute1-Apr-02 13:19 
GeneralRe: blinking cursor position Pin
Prem Kumar1-Apr-02 16:55
Prem Kumar1-Apr-02 16:55 
GeneralRe: blinking cursor position Pin
bracoute1-Apr-02 19:14
bracoute1-Apr-02 19:14 
GeneralClipboard Copy - multiple formats Pin
Aaron Schaefer1-Apr-02 13:02
Aaron Schaefer1-Apr-02 13:02 
GeneralMessage Reflection Pin
1-Apr-02 13:01
suss1-Apr-02 13:01 
GeneralMessage Relfection Pin
1-Apr-02 13:01
suss1-Apr-02 13:01 
GeneralRe: Message Relfection Pin
Shog91-Apr-02 13:08
sitebuilderShog91-Apr-02 13:08 
GeneralRe: Message Relfection Pin
1-Apr-02 13:11
suss1-Apr-02 13:11 
GeneralRe: Message Relfection Pin
Shog91-Apr-02 13:25
sitebuilderShog91-Apr-02 13:25 
GeneralRe: Message Relfection Pin
1-Apr-02 13:30
suss1-Apr-02 13:30 
GeneralRe: Message Relfection Pin
1-Apr-02 13:51
suss1-Apr-02 13:51 
GeneralRe: Message Relfection Pin
Shog91-Apr-02 17:57
sitebuilderShog91-Apr-02 17:57 
Generalpassword protect folder Pin
Steven Richardson1-Apr-02 11:03
Steven Richardson1-Apr-02 11:03 
GeneralRe: password protect folder Pin
dazinith1-Apr-02 11:23
dazinith1-Apr-02 11:23 
GeneralRe: password protect folder Pin
Steven Richardson1-Apr-02 11:27
Steven Richardson1-Apr-02 11:27 
GeneralRe: password protect folder Pin
dazinith1-Apr-02 11:33
dazinith1-Apr-02 11:33 

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.