|
Yes.
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
You open serial ports using the CreateFile API and send and receive data with WriteFile and ReadFile .
You also need to call SetCommState with an appropriately configured DCB structure, to set the baud rate and other communications parameters.
You should find useful information by searching for 'serial' on this site.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hello All
I am delevoping in eVC++ 4.0 for Pocket PC 2003. I would like to know how to enable/disable via code the auto switch-off of the PDA, because, while my application is running, if the PDA switches off the application crashes.
I know that you can do it manually by Start->Settings->Power, but I would be desirable to do it by software, so that you can restore the state when the app finishes.
Thanks in advance.
|
|
|
|
|
Either periodically call SystemIdleTimerReset , or call SystemParametersInfo with the SPI_SETBATTERYIDLETIMEOUT value. You can use SPI_GETBATTERYIDLETIMEOUT to work out how often to call SystemIdleTimerReset , or to remember the old value.
Your application really shouldn't crash if the device suspends. You should expect this to happen and program for it. The debugger will crash if the device suspends while debugging, but I'm afraid you get used to eVC crashing all the time.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thank you for the information, it was useful to temporally solve the problem.
I know that the program shouldn't crash (well, really it does not crash, it hungs up, what it's worse ). The problem is that the program reads data from a compact flash GPS receiver, and it seems that when the PDA switches off the COM created with the receiver disapears, and when it switches on the COM appears after about one second. I think that here is the problem, the handle created with CreateFile to open the port has a non-valid value when the application restarts and any operation over it hangs up the app.
Anyway, the given solution ties in with I was looking. Thank you again
|
|
|
|
|
I'm wondering if anyone has found decent info on programming an IR port on a Smartphone (2002 OS, should be pretty similar to Pocket PC 2002).
I'm attempting to use my phone's IR to control my Nikon D70's shutter for long exposure sequences, but even Google doesn't seem to shed much light on this one last (crucial ) thing I need to make the app work.
Thanks!
Look at the world about you and trust to your own convictions. - Ansel Adams
Meg's World - Blog
Photography
|
|
|
|
|
My source for IR programming (not that I've ever done any) is Doug Boling's book Programming Windows CE. Either the second or third edition should be fine.
Unless your camera does talk full IrDA, you'll probably want Raw IR mode. However, it might be tricky to work out what to send to the camera.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi Mike,
Thanks for the reply - I really appreciate it as I know absolutely nothing about this.
I do however know exactly what to send to the camera (whew!):
1 - 1.913ms
0 - 27.925ms
1 - 0.510ms
0 - 1.530ms
1 - 0.510ms
0 - 3.570ms
1 - 0.510ms
(39.2kHz)
However, what to do with this info is slightly more cryptic (for example, why are the individual numbers in the sequence measured in "ms" while the total is measured in "kHz"?)
I take it from your answer above that this will mean that I need Raw IR mode? Sorry to ask further questions, but do you know if it's possible to control this via VB.NET?
Thanks again
Look at the world about you and trust to your own convictions. - Ansel Adams
Meg's World - Blog
Photography
|
|
|
|
|
I think the relationship is that 1 cycle at 39.2kHz is approximately 0.255ms - therefore you could run a circuit from a clock of 39.2kHz frequency.
You may find this article[^] useful.
As for using VB.NET - you could, but you'd end up writing so many P/Invokes. I'd go with C++.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
|
Hi,
I'm developing an application with Evtools3.0, but I can use also Ecvc++4.0. I write only c++, not VB.. so.. is there a function to design a Dialog so that it automatically fit the screen...(something like a MyDialog.FillTheWholeScreen()..ehehe)?
Please help me..
|
|
|
|
|
|
Hi, I really need your help guys...I really need a tutorial in developing mobile applications for windows CE on a pocket pc (pocket pc SDK 2004) using embedded visual C++ 4.0,
|
|
|
|
|
|
Uh, where to start? What libraries do you already know? Win32 programming is pretty much identical between the desktop and the device, except that a lot of functions have been removed.
Most of my apps (I work for a vertical-market ISV) have been written with MFC, although we've just started moving to C#.
A good reference is Doug Boling's book Programming Windows CE.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Im a newbie in this
|
|
|
|
|
I have an application that what built using MFC and I was wondering if there was any easy way that you can disable the standard "X" button that is up in the right corner of the frame.
Thanks,
Rod
|
|
|
|
|
Do some research on these two functions below.
SHDoneButton(... SHDB_HIDE);
SHFullScreen(...);
|
|
|
|
|
is there any tutorial out there for image processing in pocket pc either using embedded visual c++ or compact framework ? such as bluring, smoothing , etc ? can anyone give me the link or the book if there is any ... hardly can find this topic
|
|
|
|
|
Hi,
I'm having a problem in software development where the start button will occasionally show up on windows CE even though my program takes up the full screen. How can I get it to permanently go away, or at least not activate when the top of the screen is clicked?
Thanks in advance!
Kelly Ryan
|
|
|
|
|
Dear all,
I writting an application using MFC in eVC 3.0.
Now I need to access to the View object from the App class.
Could you please tell me how.
Thank you very much in advance.
-Kien Bui
|
|
|
|
|
The application object has a m_pMainWnd variable. This is a frame window that will contain the view. To retrieve it, search its children.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Thank you very much!
-Kien Bui
|
|
|
|
|
Hi ALL,
How to unzip the *.zip file in Pocket PC 2003/2002 ?
I am delveoping application using eVC++3.0/4.0 and targeting for PPC 2002/2003. I need to unzip the *.zip file which is available in the target device.
Is there any open source code/sample available for solving my problem ?
Any kind of suggestions or inputs are most welcome.
Regards,
AKS
|
|
|
|
|