|
i use <htmlview> to show HTML from a file. Now I tried to navigate to a web-page with the following line.
<br />
::SendMessage(m_hwndHtml, DTM_NAVIGATE, 0, (LPARAM)(LPTSTR)TEXT("http://www.web.de"));<br />
However, htmlview always return "Bad Request. Your Browser sent a query this server could not understand.".
Does anybody know what could be the reason for that?
It cannot be the internet-connection, because pocketIE works fine with this page.
thx, Daniel
|
|
|
|
|
Check your connection settings. Disable any firewall application on the desktop.
I just had the same problem and it boiled down to using the router IP address as the proxy: got the same error.
Regards,
João Paulo
|
|
|
|
|
could be.
my pda is connected to the internet via ActiveSync.
However,
I just tried to an Windows CE SDK-example called "browse".
It displays "file://\start.htm".
if i change it to "http://www.web.de" it will also show the web-page.
the sampe uses DTM_NAVIGATE and not much more except a simple htmlview-window.
I don't know why the sample works, but my onw program not....
thx, Daniel
|
|
|
|
|
could be.
my pda is connected to the internet via ActiveSync.
However,
I just tried to an Windows CE SDK-example called "browse".
It displays "file://\start.htm".
if i change it to "http://www.web.de" it will also show the web-page.
the sampe uses DTM_NAVIGATE and not much more except a simple htmlview-window.
I don't know why the sample works, but my own program not....
thx, Daniel
|
|
|
|
|
Hi there,
I am very new in pocketpc development but i am interested to learn.
I heard that embedded visual c++ is strong and maybe i want to develop for games.
Before i do games, i want to get to know more about it.
The tutorials in codeproject are not for beginners. I don't even know how to create a new project and what to do next.
Is there any basic tutorials, step by step start from Hello World to some cool apps tutorials?
Any help?
Thanks.
Regards,
Chua Wen Ching :p
|
|
|
|
|
|
I just installed eVC++ 4.0 and Pocket PC 2003 SDK.
I start the eVC++ for creating new project (WCE MFC AppWizard exe) and it completes all the steps in creating a project via wizard. But when I click "Finish" button on the wizard the IDE just hangs out there. The status bar of IDE shows "Loading class information" and progress bar is full. To close eVC++ I have to kill the process. ( I got Win2K SP4 with no .NET)
When I browse the directory which I choose in the wizard, it displays all the files which were created during the process.
What I am doing wrong?
"Whidbey"..."Orcas"...Roadmap This signature was created by "Code Project Quoter".
|
|
|
|
|
|
Thank you. That solved the problem.
Now one more problem. When I compile the project (just dummy)
Test1.exe - 0 error(s), 0 warning(s)<br />
Downloading files<br />
The Microsoft ActiveSync connection server has failed.<br />
Please make sure Microsoft ActiveSync is running and retry the download by Rebuild All or Update Remote Output File(s).<br />
Also make sure that you have selected the correct platform.<br />
Failed downloading.
I tried to configure the emulator via "Tools" -> "Configure Platform Manager" menu. I choose "Pocket PC 2003 Emulator" under "Pocket PC 2003". But when I test the emulator via device "Properties" dialog I get "Unable to establish a connection with the device. Please check configuration settings" error.
I choose "Microsoft ActiveSync" under Transport combo (the other items are
KITL Transport and TCP/IP Transport) and "Microsoft ActiveSync" under Startup server combo. ( the other option is "anual Server")
What settings I have to change?
P.S : I don't have the Pocket PC device and I am a complete newbie in eMbedded world.
TIA
"Whidbey"..."Orcas"...Roadmap This signature was created by "Code Project Quoter".
|
|
|
|
|
Did you install MS ActiveSync and was it running when you tried to download your app to the emulator?
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
|
Kant wrote:
Is this right link[^] to download the MS ActiveSync?
Yes, if you dont mind an older version.
Point your browser to here[^] to grab the latest one [3.7.1].
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
Jonas Larsson wrote:
Point your browser to here[^] to grab the latest one [3.7.1].
Thanks for the link. I downloaded and installed it.
Now How do I tell MS ActiveSync that all I need is to connect the Emulator. I don't have Pocket PC device. I tried variety of settings via "Configure Platform Manager".
When I execute the dummy application(created via wizard) via eVC++ IDE I get this error.
Test2.exe - 0 error(s), 0 warning(s)<br />
Downloading files<br />
Timeout: Failed to connect to the device<br />
Failed downloading.
ActiveSync tried to connect during the above mentioned process.
"Whidbey"..."Orcas"...Roadmap This signature was created by "Code Project Quoter".
|
|
|
|
|
Kant wrote:
Now How do I tell MS ActiveSync that all I need is to connect the Emulator.
You dont, you set the target and contiguration in evc.
You should have a toolbar where you can select them (WCE Configuration).
For you, it might look something like this:
Test2^ Pocket PC 2003^ Win32 (WCE emulator[or x86]) Debug^ Pocket PC 2003 Emulation^
^ are supposed to look like combobox arrows
You normally dont have to fiddle with the PlatMan at all, just install the IDE + sp's, SDK's and ActiveSync.
HTH
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
Jonas Larsson wrote:
Test2^ Pocket PC 2003^ Win32 (WCE emulator[or x86]) Debug^ Pocket PC 2003 Emulation^
That's the way it shows here, but still no luck.
BTW, the ActiveSync tray icon in Sys Tray is greyed out (shows 'Not Connected' in baloon help) Do I have to set any connection settings there?
Thanks for your help.
"Whidbey"..."Orcas"...Roadmap This signature was created by "Code Project Quoter".
|
|
|
|
|
Kant wrote:
BTW, the ActiveSync tray icon in Sys Tray is greyed out (shows 'Not Connected' in baloon help) Do I have to set any connection settings there?
No, it should just be running for it to work.
Do you have any kind of personal firewall running on your box? I know that there's problems with ZoneAlarm, you'll have to allow AS to act as a server (and maybe client too, I dont really remember).
As soon as the "Connecting..." dialog pops up in evc, the emulator should start.
Lets check the PlatMan settings then, since you tried to change those.
My settings here (evc3.0 & ppc 2002, but it should be the same for 4.0) are:
Emulator:
Transport: TCP/IP Transport for WinCE
Startup Server: Emulator Startup Server
Default Device:
Transport: MS AS
Startup Server: MS AS
Try setting yours to the same, if that doesnt work, Ill check my other box that has 4.0 on it.
Other than these steps, the only thing I can think of is that you dont have any valid emulator images for ppc2003, but Im pretty sure those are included in the evc4.0 installation package and installed by default.
---
Jonas
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
Jonas Larsson wrote:
Do you have any kind of personal firewall running on your box? I know that there's problems with ZoneAlarm, you'll have to allow AS to act as a server (and maybe client too, I dont really remember).
Yes.. But few times ZoneAlarm popped up questioning that eVC++ (some EXE trying to connect the Internet). I allowed it to go further.
Here are PlatMan Settings:
POCKET PC 2003:
POCKET PC 2003 Device
Transport : MS AS (other options KITL Transport and TCP/IP Transport for Windows CE)
Startup Server : MS AS (other option Manual Server)
POCKET PC 2003 Emulator
Transport : TCP/IP Transport for Windows CE (other options are KITL Transport and MS AS)
Startup Server : Manual Server (other option MS AS) If I hit 'Test' button, I get the dialog like this:
Please make sure the following files are on the device:
\WINDOWS\tcpipc.dll
\WINDOWS\cemgrc.exe
\WINDOWS\cetlstub.dll
And Launch CEMGRC.EXE with the following cmd line
CEMGRC.EXE /T:TCPIPC.DLL /Q /D:169.254.65.168:4955
But I don't see those files on my machine.
WINDOWS CE .NET Default Platform:
Default Device
Transport : TCP/IP (other options KITL Transport and MS AS)
Startup Server : MS AS (other option Manual Server)
"Whidbey"..."Orcas"...Roadmap This signature was created by "Code Project Quoter".
|
|
|
|
|
Hmm, weird that you dont have the Emulator Startup Server option for the emulator config. On my other box with evc4.0, the PlatMan settingings for 2003 are identical to the ones for 2002 on my evc3.0 box.
Kant wrote:
But I don't see those files on my machine.
These files should be in ..\Windows CE Tools\Common\Platman\target\[devicetype]
But I dont think its possible to use the manual server, since we need to use Remote File Viewer to upload files to the emulator, and that uses the PlatMan settings to connect to the emulator...
My suggestion is that you try and reinstall everything in this order:
MS ActiveSync 3.7
evc4
evc4sp2
eVC40SP2QFE-5308-ArmCompiler
Microsoft Pocket PC 2003 SDK
Or
Check if you can repair the evc4.0 installation and reinstall emulator support
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
Are you still having problems with this?
I ran across this[^] page today.
Check out the paragraph "Appendix: Recommended Installation Order for Development Tools for Mobile Applications", it might help.
Jonas
---
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
|
I am getting the following asserting when I attempt to open a document in my application.
"Wincore.cpp, line 571"
Now here is the code snippet that the error is occuring at:
void AFXAPI AfxHookWindowCreate(CWnd* pWnd)<br />
{<br />
_AFX_THREAD_STATE* pThreadState = _afxThreadState.GetData();<br />
if (pThreadState->m_pWndInit == pWnd)<br />
return;<br />
<br />
ASSERT(pWnd != NULL);<br />
ASSERT(pWnd->m_hWnd == NULL); <br />
<br />
ASSERT(pThreadState->m_pWndInit == NULL);
pThreadState->m_pWndInit = pWnd;<br />
}<br />
The assertion error is occuring at the line that is in bold italics. This is an application being developed in eVC++ 3.0 under a PPC2002 SDK. I can not figure out when this function is being called. My CDocument::Seralize() is being completed just fine, but sometime between its completion and the begining of my CView::OnDraw() the assertion is occuring. My CView::OnDraw() is completing and the view is being drawn, but the application halts at that point.
How can I debug this and what is this function attempting to do?
When my application first starts up it starts witha blank view if you will with a bmp image drawn in the view. Then the user can either open a previously created document or start a new one. If the user either opens a previous document or starts a new one, everything runs as expected. However, if the user trys to start a new document then cancels part way thru the process, then decides to open a previous document, that is when the assertion occurs. If it would help to give more detailed explanation of what occurs in the starting of a new document I can provide it, I just don't want to be to long if it isn't needed.
Thanks,
-Eric
|
|
|
|
|
Is there a possibility that you are calling the CWnd::Create method on an already-created CWnd -derived object?
VanHlebar wrote:
How can I debug this and what is this function attempting to do?
You can set a breakpoint on that line and inspect the call stack to see where in your code that method was called. Beware that call stack information is not always intiutive.
Regards,
João Paulo
|
|
|
|
|
João Paulo Figueira wrote:
You can set a breakpoint on that line and inspect the call stack to see where in your code that method was called. Beware that call stack information is not always intiutive.
Joao,
Thanks for the help and the tip. After doing the above I was able to figure out that one of my views was calling this too many times and I was able to fix it in less than five minutes. This bug had been following me around since I started the app a few months ago! Thanks again!
-Eric
|
|
|
|
|
If you check wincore.cpp, you will see that AfxHookWindowCreate is called by CWnd::CreateEx , MFC's workhorse method for creating windows. The function is called just before the API CreateWindowEx function is called. Your assertion happens because the application is asking an already created CWnd -derived object to create its window again. Look for places where this might be happening.
Regards,
João Paulo
|
|
|
|
|
I am looking for a long time for code for programmaticaly turn on my PPC from the standby position. I have almmost concluded that it is impossible, because i haven't received any solution.
I want to turn on my device when i need my medicins on a certain time on the day. I have tried to use CeRunAppAtTime but this didn't work.
Is there anyone who can give me information if this is possible??????
|
|
|
|