Html control, DTM_NAVIGATE do not navigate to specified url in WM6

J

Jaikant

I am using HTML control in my C++ application for Windows Mobile 5 and 6.
Using following code to navigate to a valid URL.
TCHAR szUrl[1024];
wcscpy(szUrl, TEXT("http://<some valid url >/ptg/rm"));
::SendMessage(m_hwndHtml ,DTM_NAVIGATE , 0, (LPARAM)szUrl);
Above code works fine in Windows Mobile 5 and navigates to the specified
URL but same code does not work in Windows Mobile 6 device.
Also above code works fine in Windows Mobile 6 EMULATOR and navigates to
the specified URL but same code does not work in Windows Mobile 6 device .
Pls help
 
A

antonywillet

I am using HTML control in my C++ application for Windows Mobile 5 and 6.
Using following code to navigate to a valid URL.
TCHAR szUrl[1024];
wcscpy(szUrl, TEXT("http://<some valid url >/ptg/rm"));
::SendMessage(m_hwndHtml ,DTM_NAVIGATE , 0, (LPARAM)szUrl);
Above code works fine in Windows Mobile  5 and navigates to the specified
URL but same code does not work in Windows Mobile 6 device.
Also above code works fine in Windows Mobile  6 EMULATOR and navigates to
the specified URL but same code does not work in Windows Mobile 6 device .
Pls help

hi Jaikant,
Is the string copied to szUrl properly?
I am facing a problem with wcscpy, wcscat in WM 6.0.
As in your case, the same code was working fine WM 5.0.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top