Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 6:54
suss27-Sep-01 6:54 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Not Active27-Sep-01 6:56
mentorNot Active27-Sep-01 6:56 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 7:09
suss27-Sep-01 7:09 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 7:23
suss27-Sep-01 7:23 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 7:28
suss27-Sep-01 7:28 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Erik Thompson27-Sep-01 7:35
sitebuilderErik Thompson27-Sep-01 7:35 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 7:51
suss27-Sep-01 7:51 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Erik Thompson27-Sep-01 10:58
sitebuilderErik Thompson27-Sep-01 10:58 
Well since you haven't given the compiler errors I can only venture to guess that the reason is you are doing string compares of unicode vs ansi strings. For example in the code in your previous message you state

if (!wcscmp(url->bstrVal, "http://thesitetheyshouldnotgoto.com"))
{
SysFreeString(url->bstrVal);
url->bstrVal = SysAllocString("http://younaughtyuser.com");
}

It should be

if (!wcscmp(url->bstrVal, L"http://thesitetheyshouldnotgoto.com"))
{
SysFreeString(url->bstrVal);
url->bstrVal = SysAllocString(L"http://younaughtyuser.com");
}


I probably forgot the "L" in my sample above. that would account for 4 of the errors. What's the fifth?


Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Carlos Antollini27-Sep-01 8:19
Carlos Antollini27-Sep-01 8:19 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 8:32
suss27-Sep-01 8:32 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Carlos Antollini27-Sep-01 8:41
Carlos Antollini27-Sep-01 8:41 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
Michael Dunn27-Sep-01 8:12
sitebuilderMichael Dunn27-Sep-01 8:12 
GeneralRe: InternetExplorer - BeforeNavigate2 Pin
27-Sep-01 8:23
suss27-Sep-01 8:23 
QuestionPassing a CList (or reference to a CList) as a function parameter?? Pin
27-Sep-01 5:34
suss27-Sep-01 5:34 
AnswerRe: Passing a CList (or reference to a CList) as a function parameter?? Pin
Michael Dunn27-Sep-01 8:16
sitebuilderMichael Dunn27-Sep-01 8:16 
GeneralWebBrowser Control & 3D Borders Pin
27-Sep-01 4:43
suss27-Sep-01 4:43 
GeneralRef Counting Pin
User 988527-Sep-01 4:36
User 988527-Sep-01 4:36 
GeneralRe: Ref Counting Pin
Not Active27-Sep-01 6:55
mentorNot Active27-Sep-01 6:55 
GeneralRe: Ref Counting Pin
Joaquín M López Muñoz27-Sep-01 8:28
Joaquín M López Muñoz27-Sep-01 8:28 
GeneralRe: Ref Counting Pin
User 988527-Sep-01 8:52
User 988527-Sep-01 8:52 
GeneralRe: Ref Counting Pin
Joaquín M López Muñoz27-Sep-01 9:28
Joaquín M López Muñoz27-Sep-01 9:28 
QuestionHow to change a item's parent of a tree control? Pin
27-Sep-01 3:52
suss27-Sep-01 3:52 
AnswerRe: How to change a item's parent of a tree control? Pin
Derek Lakin27-Sep-01 4:26
Derek Lakin27-Sep-01 4:26 
GeneralRe: How to change a item's parent of a tree control? Pin
27-Sep-01 15:54
suss27-Sep-01 15:54 
GeneralRe: How to change a item's parent of a tree control? Pin
Derek Lakin27-Sep-01 22:11
Derek Lakin27-Sep-01 22:11 

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.