Click here to Skip to main content
15,907,395 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: get path of current application C++ Pin
Rajesh R Subramanian4-Jan-07 19:24
professionalRajesh R Subramanian4-Jan-07 19:24 
AnswerRe: get path of current application C++ Pin
CPallini3-Jan-07 21:58
mveCPallini3-Jan-07 21:58 
AnswerRe: get path of current application C++ Pin
Hamid_RT3-Jan-07 23:35
Hamid_RT3-Jan-07 23:35 
AnswerRe: get path of current application C++ Pin
Cristian Amarie4-Jan-07 4:40
Cristian Amarie4-Jan-07 4:40 
AnswerRe: get path of current application C++ Pin
Sumesh V.V4-Jan-07 17:13
Sumesh V.V4-Jan-07 17:13 
Questioncan any body give Example of GetTimeFormat in win32 API Pin
amitmistry_petlad 3-Jan-07 21:51
amitmistry_petlad 3-Jan-07 21:51 
AnswerRe: can any body give Example of GetTimeFormat in win32 API Pin
Mark Salsbery4-Jan-07 5:45
Mark Salsbery4-Jan-07 5:45 
QuestionUndeclared identifier Pin
manu_22053-Jan-07 20:24
manu_22053-Jan-07 20:24 
Hello. I'm having a problem instantiating a COLeVariant object. The
snippet of code that fails is:


void CMyDoc::CreateIEObject()
{
m_pIE = new CWebBrowserApp; // this is a COLeDispatchDriver
derived class... GOOD
m_pIE->CreateDispatch("InternetExplorer.Application"); // GOOD
COLeVariant noArg; // this does not work // BAD!
m_pIE->Navigate("www.yahoo.com", noArg, noArg, noArg, noArg); //
BAD!
m_pIE->SetVisible(TRUE); // GOOD



}


The function is supposed to instantiate an IE browser and go to the
webpage specified in Navigate. I get the following compile errors:

: error C2065: 'COLeVariant' : undeclared identifier
: error C2146: syntax error : missing ';' before identifier 'noArg'
: error C2065: 'noArg' : undeclared identifier


I have included in <afxdisp.h> file.
I have verified that COLeVariant is defined in afxdisp.h. What could I be
doing wrong?



manu

AnswerRe: Undeclared identifier Pin
prasad_som3-Jan-07 21:07
prasad_som3-Jan-07 21:07 
GeneralRe: Undeclared identifier Pin
Hamid_RT3-Jan-07 21:11
Hamid_RT3-Jan-07 21:11 
GeneralRe: Undeclared identifier Pin
manu_22053-Jan-07 22:36
manu_22053-Jan-07 22:36 
QuestionRe: Undeclared identifier Pin
prasad_som3-Jan-07 22:42
prasad_som3-Jan-07 22:42 
AnswerRe: Undeclared identifier Pin
manu_22053-Jan-07 22:46
manu_22053-Jan-07 22:46 
GeneralRe: Undeclared identifier Pin
manu_22053-Jan-07 23:10
manu_22053-Jan-07 23:10 
GeneralRe: Undeclared identifier Pin
Rajesh R Subramanian3-Jan-07 23:19
professionalRajesh R Subramanian3-Jan-07 23:19 
GeneralRe: Undeclared identifier Pin
manu_22053-Jan-07 23:25
manu_22053-Jan-07 23:25 
AnswerRe: Undeclared identifier Pin
Rajesh R Subramanian3-Jan-07 23:35
professionalRajesh R Subramanian3-Jan-07 23:35 
GeneralRe: Undeclared identifier Pin
manu_22053-Jan-07 23:46
manu_22053-Jan-07 23:46 
NewsRe: Undeclared identifier Pin
Rajesh R Subramanian3-Jan-07 23:49
professionalRajesh R Subramanian3-Jan-07 23:49 
QuestionRe: Undeclared identifier Pin
manu_22053-Jan-07 23:57
manu_22053-Jan-07 23:57 
AnswerRe: Undeclared identifier Pin
prasad_som4-Jan-07 0:31
prasad_som4-Jan-07 0:31 
GeneralRe: Undeclared identifier Pin
2249174-Jan-07 0:37
2249174-Jan-07 0:37 
GeneralRe: Undeclared identifier Pin
Cristian Amarie4-Jan-07 4:42
Cristian Amarie4-Jan-07 4:42 
GeneralRe: Undeclared identifier Pin
Hamid_RT4-Jan-07 5:27
Hamid_RT4-Jan-07 5:27 
GeneralRe: Undeclared identifier Pin
Cristian Amarie4-Jan-07 9:25
Cristian Amarie4-Jan-07 9:25 

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.