|
Hello!
I'm new to PocketPC development so this question might have been asked by someone else .
I use Microsoft Embedded VC++ for development. When i have created a project and wants to build it, i can only build it directly to my PocketPC. Whenever i choose "PocketPC 2002 Emulation", my computer bluescreens and reboots. There is not enough time before the reboot for reading the bluescreen content.
Any ideas?
/Christian
|
|
|
|
|
How much RAM do you have? What is your OS?
Regards,
João Paulo
|
|
|
|
|
I have a Pentium 4 1600 MHz. 256MB ram. OS is XP.
|
|
|
|
|
Try getting more RAM. At 512 MB, the emulator never crashed on my laptop (Win 2K). Also, you can try reinstalling the 2002 SDK. If everything fails (a very decent probability), consider buying a real device. I did that...
Regards,
João Paulo
|
|
|
|
|
Thanks! I've got a real device. I just thought that it would be quicker to emulate than to develop on the "real thing". Programs created and downloaded to the PocketPC i've got works just fine .
Again, thank you!
/Christian
|
|
|
|
|
Hello, I have created a Visual C# Mobile Web Application with VS.NET. In it, there is a simple mobile web form. When i try to view it in the MME Emulator, it says "No wap gateway setting or wap gateway can't be used".
Anyone know how to solve this problem?
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
Dear Friends,
Does anybody know how to set break point on a shared
memory location using Embedded VC++ 4.0 debugger.
I have a dll[C language] that allocates and uses shared
memory. I want to set break point on some memory locations
of allocated shared memory.
When set memory break point in debugger currently it is
not functioning. Execution stops there and i can not
proceed further except closing Debugger.
Thanks in advance,
subramjobmail,
2003/09/12 (11:23 JST).
|
|
|
|
|
Hello, I am working with Microsoft embedded Visual c++. If I include afx.h in the dll code when I run the main program it fails at the begining, in the code generated by the appwizard. Does somebody know the solution? or it is not allowed including afx.h in a dll?
Thanks
|
|
|
|
|
Why do you need the afx.h header file?
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
You posted something to me about making wizard dialogs, but I can't find it. Any help?
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
|
Please read my post in the "Discuss this article" link (bottom of the article). There is a very important warning on the Ok and Cancel handlers. Hope you find it useful!
Regards,
João Paulo
|
|
|
|
|
Dear Friends,
Does anybody know how to get child Window Rect coordinates wrt to parent window Rect coordinates. [Something similar to GetRectInContainer()]. I want in SDK rather than in MFC.
Thanks in advance,
subramjobmail.
|
|
|
|
|
Do you mean you want the position of your client window inside the parent window?
RECT rtClient;
GetWindowRect(hClientWnd, &rtClient);
ScreenToClient(hClientWnd, (LPPOINT) &rtClient.left);
ScreenToClient(hClientWnd, (LPPOINT) &rtClient.right);
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
You understanding is correct but the code block which you have given
will give only wrt to screen point.
But i want wrt to parent window RECT of hClientWnd. It should proper
values (-ve values) if scrolled [partially visible]
Something like how GetRectInContainer() gives in OCX wrt to IE
|
|
|
|
|
But the ScreenToClient method will convert the screen coordinates to client coordinates!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
But i want functionality some thing similar to what GetRectInContainer() of COleControl class gives in OCX control.
|
|
|
|
|
Something like this?
HWND hWndParent = ...
HWND hWndChild = ...
ASSERT(hWndParent);
ASSERT(hWndChild);
RECT rt;
::GetWindowRect(hWndChild, &rt);
::MapWindowPoints(HWND_DESKTOP, hWndParent, (LPPOINT) &rt, 2);
--
Cheers,
Daniel ![Wink | ;)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_wink.gif)
|
|
|
|
|
Okay, I finally found enough time to try coding for these pocket pc devices. But I'm a "lazy" coder and I want to do things the easy way. Meaning that I use all the ready standard components found. So of course I want to user vectors to hold data, but what - I can't find them .
So there are no vectors in CE, or am I wrong here (I hope so). So the question is, what is the thing to use, when you would normally use vectors?
|
|
|
|
|
|
There are also some container classes inside the MFC (also in the CE version).
Just take a look at the following classes: CArray , CList , CTypedPtrArray , ...
I hope this will help you!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Thank you. These classes are just what I was looking for... Well they aren't vectors, but they're close enough .
STLPort also looked interesting, so thanks for the links concerning that too...
|
|
|
|
|
Hi All,
How can i unload a form from memory in eVB. "Unload Me" is giving me error.
Mahesh
|
|
|
|
|
I have a relation called Correspondence of the following format:
corrId int identity(1, 1) primary key
type varchar(50)
cwith varchar(50)
isInternal smallint(2)
rowguid uniqueidentifier
the rowguid attribute was added by sql server when setting
up merge replication.
On the CE application I am trying to insert a row into the table and then pull the corrId back out using @@IDENTITY. Strangely when I try and insert I get the following error:
HR: 800040E2F
Native: 25016
Message: A duplicate value cannot be inserted into a
unique index [,,,,,]
Source: Microsoft SQL Server 2000 Windows CE Edition
Parameter 1: 0
Parameter 2: 0
Parameter 3: 0
Parameter 4:
Parameter 5:
Parameter 6:
I could understand the error if the corrId wasn't being incremented by 1 each time (& it didn't have the uniqueidentifier attribute). The question is what am I missing that's causing the problem?
Thanks in advance.
|
|
|
|
|
Docs say:
"Ensure that a replication publication is configured to manage identity columns for a table(s) in the publication."
Is your publication correctly configured? By the way, what layer are you using to access the DB: ADO oe OLE DB?
Regards,
João Paulo
|
|
|
|