Click here to Skip to main content
15,884,821 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Custom Control vs. Owner Draw Control? Pin
Rage10-Jun-08 0:50
professionalRage10-Jun-08 0:50 
AnswerRe: Custom Control vs. Owner Draw Control? Pin
Joe Woodbury10-Jun-08 6:17
professionalJoe Woodbury10-Jun-08 6:17 
GeneralRe: Custom Control vs. Owner Draw Control? Pin
sawerr10-Jun-08 7:13
sawerr10-Jun-08 7:13 
GeneralRe: Custom Control vs. Owner Draw Control? Pin
Joe Woodbury10-Jun-08 7:58
professionalJoe Woodbury10-Jun-08 7:58 
QuestionVC++ Toolkit 2003 warning message Pin
rp_suman9-Jun-08 22:45
rp_suman9-Jun-08 22:45 
AnswerRe: VC++ Toolkit 2003 warning message Pin
Alan Balkany10-Jun-08 4:23
Alan Balkany10-Jun-08 4:23 
GeneralRe: VC++ Toolkit 2003 warning message Pin
rp_suman10-Jun-08 14:03
rp_suman10-Jun-08 14:03 
QuestionHelp with navigate2 error Pin
limesp9-Jun-08 22:44
limesp9-Jun-08 22:44 
Hi,

I keep reading articles that says I can use this code to navigate activex webbrowser on a dialog

BOOL Ctry7Dlg::OnInitDialog()
{
CDialog::OnInitDialog();

SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon

// TODO: Add extra initialization here
/******************************************/
COleVariant varEmpty;
m_wb.Navigate2("http://www.google.com",
&varEmpty,
&varEmpty,
&varEmpty,
&varEmpty);
/******************************************/

return TRUE;
}

but everytime run the code, I woul get this error:

error C2664: 'CWebbrowser2::Navigate2' : cannot convert parameter 1 from 'const char [34]' to 'VARIANT *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


can someone help me out here ??? Thanks
AnswerRe: Help with navigate2 error Pin
CPallini9-Jun-08 23:07
mveCPallini9-Jun-08 23:07 
QuestionConvert CComPtr<istream> into ostream</istream> Pin
CodingLover9-Jun-08 22:27
CodingLover9-Jun-08 22:27 
Answeristream to ostream? Pin
CPallini9-Jun-08 22:46
mveCPallini9-Jun-08 22:46 
QuestionRe: istream to ostream? Pin
CodingLover9-Jun-08 22:49
CodingLover9-Jun-08 22:49 
QuestionLength of IStream Pin
CodingLover10-Jun-08 0:18
CodingLover10-Jun-08 0:18 
QuestionCreateThread parameter Pin
rp_suman9-Jun-08 22:23
rp_suman9-Jun-08 22:23 
AnswerRe: CreateThread parameter PinPopular
Cedric Moonen9-Jun-08 22:26
Cedric Moonen9-Jun-08 22:26 
GeneralRe: CreateThread parameter Pin
rp_suman9-Jun-08 22:41
rp_suman9-Jun-08 22:41 
GeneralRe: CreateThread parameter Pin
jeron110-Jun-08 4:09
jeron110-Jun-08 4:09 
AnswerRe: CreateThread parameter Pin
Joe Woodbury10-Jun-08 6:19
professionalJoe Woodbury10-Jun-08 6:19 
GeneralRe: CreateThread parameter Pin
JudyL_MD10-Jun-08 6:43
JudyL_MD10-Jun-08 6:43 
QuestionOpen a debug view while opening a document Pin
beko9-Jun-08 21:33
beko9-Jun-08 21:33 
QuestionWeird windows problem Pin
mihai1239-Jun-08 21:14
mihai1239-Jun-08 21:14 
AnswerRe: Weird windows problem Pin
Michael Schubert9-Jun-08 22:18
Michael Schubert9-Jun-08 22:18 
AnswerRe: Weird windows problem Pin
mihai1239-Jun-08 22:37
mihai1239-Jun-08 22:37 
AnswerRe: Weird windows problem Pin
krmed10-Jun-08 1:53
krmed10-Jun-08 1:53 
GeneralRe: Weird windows problem Pin
mihai12310-Jun-08 3:08
mihai12310-Jun-08 3:08 

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.