Click here to Skip to main content
16,011,988 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Want to To change from Console mode to Windows mode at run time Pin
Matthew Faithfull28-May-07 6:14
Matthew Faithfull28-May-07 6:14 
GeneralRe: Want to To change from Console mode to Windows mode at run time Pin
vikrantc135528-May-07 20:01
vikrantc135528-May-07 20:01 
GeneralRe: Want to To change from Console mode to Windows mode at run time Pin
Matthew Faithfull29-May-07 7:26
Matthew Faithfull29-May-07 7:26 
QuestionAccessing remote database using mfc Pin
Vikas_12328-May-07 3:02
Vikas_12328-May-07 3:02 
JokeGreat! Pin
CPallini28-May-07 3:06
mveCPallini28-May-07 3:06 
GeneralRe: Great! Pin
Vikas_12328-May-07 19:48
Vikas_12328-May-07 19:48 
AnswerRe: Accessing remote database using mfc Pin
Matthew Faithfull28-May-07 6:38
Matthew Faithfull28-May-07 6:38 
QuestionHow to navigate to a different URL in the same browser instance, through ActiveX plug-In? Pin
vrushaliD28-May-07 2:54
vrushaliD28-May-07 2:54 
Hi,

I have an ActiveX Plug-In developed using MFC, which gets loaded into a website. On one particular button click(When session is expired), I want to navigate to a "Login" page in the same browser instance.

I am using following code:
IOleClientSite *pClientSite = NULL;<br />
pClientSite = COleControl::GetClientSite();<br />
<br />
IOleContainer* pContainer = NULL;<br />
CComQIPtr spDoc(pContainer); <br />
<br />
pClientSite->GetContainer( &pContainer );<br />
if ( pContainer != NULL )<br />
pContainer->QueryInterface(&spDoc); <br />
<br />
BSTR websiteUrl = loginURL.AllocSysString();<br />
if (spDoc)<br />
{<br />
spDoc->put_URL(websiteUrl);<br />
}

Using above code, the page gets navigated to the login page. but the Header part remains as it is. and the address bar still shows the previous URL.

Can anybody help me to resolve this issue?



Thanks in advance,
Vrushali
QuestionHow to havigate to a different URL in the same browser instance through ActiveX Plug-In? Pin
vrushaliD28-May-07 2:52
vrushaliD28-May-07 2:52 
QuestionUsing PNG / TIF format images in Button control and background Pin
BlrBoy28-May-07 2:47
BlrBoy28-May-07 2:47 
AnswerRe: Using PNG / TIF format images in Button control and background Pin
CPallini28-May-07 3:05
mveCPallini28-May-07 3:05 
AnswerRe: Using PNG / TIF format images in Button control and background Pin
Hamid_RT28-May-07 6:58
Hamid_RT28-May-07 6:58 
Questionvisual studio Pin
deeps_cute28-May-07 2:36
deeps_cute28-May-07 2:36 
QuestionMFC Tutorial (For Windows Application) Pin
Software_Specialist28-May-07 2:09
Software_Specialist28-May-07 2:09 
AnswerRe: MFC Tutorial (For Windows Application) Pin
_AnsHUMAN_ 28-May-07 2:15
_AnsHUMAN_ 28-May-07 2:15 
AnswerRe: MFC Tutorial (For Windows Application) Pin
Hamid_RT28-May-07 2:18
Hamid_RT28-May-07 2:18 
GeneralRe: MFC Tutorial (For Windows Application) Pin
Software_Specialist28-May-07 2:28
Software_Specialist28-May-07 2:28 
GeneralRe: MFC Tutorial (For Windows Application) Pin
Hamid_RT28-May-07 2:40
Hamid_RT28-May-07 2:40 
GeneralRe: MFC Tutorial (For Windows Application) Pin
Software_Specialist28-May-07 3:10
Software_Specialist28-May-07 3:10 
GeneralRe: MFC Tutorial (For Windows Application) Pin
Hamid_RT28-May-07 6:23
Hamid_RT28-May-07 6:23 
GeneralRe: MFC Tutorial (For Windows Application) Pin
Software_Specialist28-May-07 8:29
Software_Specialist28-May-07 8:29 
GeneralRe: MFC Tutorial (For Windows Application) Pin
Hamid_RT28-May-07 9:02
Hamid_RT28-May-07 9:02 
QuestionDll multithreading Pin
RAJKUMARV28-May-07 2:05
RAJKUMARV28-May-07 2:05 
AnswerRe: Dll multithreading Pin
_AnsHUMAN_ 28-May-07 2:13
_AnsHUMAN_ 28-May-07 2:13 
QuestionDialog hooking Pin
tom groezer28-May-07 1:56
tom groezer28-May-07 1:56 

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.