windows-mobile

How could VirtualAlloc fail (no mem) despite plenty of phys memory on WinMobile?

I am routinely seeing VirtualAlloc calls to reserve memory fail. I'm requesting 2MB so that the allocations do not count against my per process virtual memory and instead use system shared memory. At the time of failure, the system reports having over 100 MB available in physical memory. I'm running on a windows mobile 6.1 device. So f...

How to prevent scroll-bars in CScrollView/CFormView-based class in MFC (Windows Mobile 6)

I'm creating a Windows Mobile 6 application using MFC Single Document Interface with CFormView base class. I put CBitmapButton in the Form/Dialog resource and put them at the bottom. The CBitmapButtons fit nicely until a soft-keyboard appear or the application is covered by other applications. In such case, unwanted scroll bars appear ...

Windows Mobile Development on MacBook Pro?

I am a frequent Windows Mobile application developer in need of a new development laptop. I am considering a MacBook or Macbook Pro running either Fusion from VMWare or Parallels Desktop. This will give me the option to port my applications to the iPhone depending on what MS does with WM 6.5 and 7. Has anybody tried doing Windows Mob...

Windows Mobile Compact Framework Designer Inheritance

I'm trying to make a form derive from a baseform. When loading the Form into the Designer, it says Virtual Inheritance is disabled and i cannot have access to controls defined in the basedForm. Does anyone knows how to enable the virtual inheritance? Thank you, ...

Windows mobile Compact Framework SqlCeConnection

I'm hearing that is better to have one connection open upon app start up and closing it when the app shuts down. What kind of issue can occur having multiple connections ? Any articles out there that it is best practices to have one connection? What are your experience with sql ce? ...

Formulae for U and V buffer offset

Hi all ! What should be the buffer offset value for U & V in YUV444 format type? Like for an example if i am using YV12 format the value is as follows: ppData.inputIDMAChannel.UBufOffset = iInputHeight * iInputWidth + (iInputHeight * iInputWidth)/4; ppData.inputIDMAChannel.VBufOffset = iInputHeight * iInputWidth; iInput...

Show RGB888 content

Hi all! I have to show RGB888 content using the ShowRGBContent function. The below function is a ShowRGBContent function for yv12->rgb565 & UYVY->RGB565 static void ShowRGBContent(UINT8 * pImageBuf, INT32 width, INT32 height) { LogEntry(L"%d : In %s Function \r\n",++abhineet,__WFUNCTION__); UINT16 * temp; BYTE rValue, gValue, bValue;...

J2ME Camera and Sound Recorder Access On A Windows Mobile

I'm currently involved in a research project that requires me to access a Windows Mobile Camera and sound recorder with J2ME to, well take pictures and record sound... the phone has to be a windows mobile for some reason that has nothing to do with me and the software has to be written in Java, also not my decision. So I need to try and...

How to hide a scrollbar? (Windows Mobile)

Hi! I have one panel "imageHolder" I have from 4 to 20 pictureboxes (each pictureBox is 256x256px so they increase the panel's size to more than the cellphone's workarea) I have set the panel's autoscroll = true, so that a V and H scrollbar is shown. Is it possible to make these scrollbars not visible? The reason i want them to be not ...

[C#] Implementing different windows/forms in a Windows Mobile application?

I am a bit new to Windows Mobile (with C# and the compact framework) development, so I am kind of unsure how to do this. The user has to go through several pages of information in a wizard-like manner. At the start there is a login window. How would I go about and implement this? Would I just have different User Controls for each page a...

What are the limitations of Windows CE 4.2?

Other than Active Sync not working, are there any other limitations that I need to consider when targeting a Windows CE 4.2 device for a CF 3.5 application in C# that uses WCF to talk to a server? ...

Windows Mobile: "My network card connects to" registry settings

Can anybody please tell me the registry setting(s) that are affected in Windows Mobile 6.1 when a user selects Start -> Settings -> Connections -> Wi-Fi and then changes the value of the "My network card connects to" drop down list on the "Network Adapters" tab? I have a device that seems to default this to "The Internet" when in fact t...

Locate modules by stack address

I have a Winodws Mobile 6.1 application running on an ARMV4I processor. Given a stack address (from unwinding an exception), I like to determine what module owns that address. Using the ToolHelpAPI, I'm able to determine most modules using the following method: HANDLE snapshot = ::CreateToolhelp32Snapshot( TH32CS_SNAPMODULE | TH32CS_GE...

Symbian bluetooth vs. Windows Mobile bluetooth

Hello, I wanna know what are the differences between Symbian OS bluetooth and Windows Mobile bluetoo? Can you explain/describe me? I did not find something clear in this case.. i wanna compare them. Thanks! ...

How can I use Makefile to autobuild Windows Mobile applications without MS.

In my project, I want to build Windows mobile application into installation files automatically without human click on MS. How can I achieve it? Please help me! Thanks! ...

Recording Audio With J2ME and an HTC Touch 2

Is anyone aware of a work around the security measures put in place in MIDP that stop access to the audio recorder in J2ME, I know my phone supports it but it just keeps asking if it's ok to let it record over and over again, if I try to skip it it throws a .SecurityError. ...

How to register mouse_down on backpanel?

Hi. Here is an image to illustrate what i mean: http://img21.imageshack.us/img21/497/windowsmobilee.png I have one backpanel that listens to mouse_down event. Infront of that backpanel i have another panel(Overlaying panel), and a label in top. If i push the mousebutton on the label or the "Overlaying panel", nothing is registered. I...

Why my custom CStatic derived control does not receive WM_SIZE message?

Hello everyone! I'm currently developing a custom control that derives from CStatic MFC class (Smart Device C++ project). I have created the control class using VC++ MFC class wizard, selecting CStatic class as its base class. I have used Class View to add OnSize event handler for my control class (I have selected WM_SIZE message from m...

How to make a Windows Mobile based WinForms .Net application easily changeable?

I need to build a Win Mobile WinForms .Net application that once developed will be easy to morph or adjust to new user requirements quickly (including changes in GUI). The main objective is to minimize the development time (development to production roll-out effort). Also, a nice thing to have is to be able to test it in an automated wa...

Windows-mobile app won't run after being closed by Task Manager

I've inherited some windows-mobile code that I've been bringing up-to-date. I've come across a weird bug, and I was hoping that even though a bit vague, maybe it will spark someone's memory: Running the app (which is basically a glorified Forms app with P/Invoke gps code), I switch to the task manager, and close the app via End Task. Se...