|
I have a dialog with a timer that check to see if it can close itself
when it can I kill the timer and send a PostMessage(WM_CLOSE);
The dialog is very slow to close , If I click the system close button, it is immediate
Also Tried SendMessage.
Whats the best way to close the dialog ?
NB: THe main dialog has a timer doing serial comms.
Win CE 3.0
Thanks
.Confused
|
|
|
|
|
David,
what's your platform ? Is it a HPC2K Industrial device ?
In this case try to move the EXE to the RAM instead of running directly from the FLASH Memory :
I've found that many times this solved my problems....
|
|
|
|
|
I do it the following way:
...
class CConnMsgDlg : public CDialog
{
...
protected:
virtual BOOL OnInitDialog();
...
afx_msg LRESULT OnEnd(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
...
private:
static const UINT MY_WM_END;
};
...
const UINT CConnMsgDlg::MY_WM_END =
RegisterWindowMessage(_T("MY_WM_END-{29813B84-DD1E-11d7-9B13-0002B32C4875}"));
BEGIN_MESSAGE_MAP(CConnMsgDlg, CDialog)
...
ON_REGISTERED_MESSAGE(MY_WM_END, OnEnd)
END_MESSAGE_MAP()
BOOL CConnMsgDlg::OnInitDialog()
{
CDialog::OnInitDialog();
return TRUE;
}
LRESULT CConnMsgDlg::OnEnd(WPARAM wParam, LPARAM lParam)
{
EndDialog(wParam);
return 0L;
}
void CConnMsgDlg::ThreadFnc()
{
...
PostMessage(MY_WM_END, IDOK);
}
I have a dialog that starts a thread in the 'OnInitDialog' function.
The thread reads some data from the serial port. This can take a long
time, so I do it in a own thread. When the thread is ready it post
the message 'MY_WM_END', that I have registered in the message map.
The 'OnEnd' function closes the dialog with 'EndDialog'.
Cheers,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
Is there a 3D library for WindowsCE? And if so what kind of performance is it capable of. Is it based on some other library like Direct3D or OpenGL?
J.
----------------------------
|
|
|
|
|
|
Hi all!
I'm developing a phone application under eVC. I managed to make a voice call with CeDialer sample under PPC2002 (i didn't manage under PPC2000..), but now I don't know how to set the OS to start my program in case of an incomming call.
Under Pocket PC 2000 (Siemens SX45) I had to edit the regestry as following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys\40C9
but under Pocket PC 2002 (Qtek 1010) there is no such a key.
How can I solve the problem?
Thanks in advance!
Best regards:
Shane99
|
|
|
|
|
Hi all,
I want to play a flash file in my eVB application. I have used the
shockwaveflash (Flash.ocx) control. But i am getting an error which says, "The control Shockwaveflash1 ({D27CDB6E-AE6D-11CF-9688-444553554000})could not be created". Please help me.
Mahesh
|
|
|
|
|
Hello,
How to control the backlight on/off or adjust the backlight?
Regards
Tsung-Yu
|
|
|
|
|
I don't recall there being a standard way, because backlight is Pocket PC depended. Different Pocket PC devices need different code to control backlight and for most of them this code is undocumented.
Your device's manufacturer may have an SDK that you can use to set the backlight.
Cheers,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
How Can I Get Data From GPS???
|
|
|
|
|
Usually you get it through a serial connection. Details will depend on the type of device you will be using.
Regards,
João Paulo
|
|
|
|
|
|
Currently I am spending a little ammount of time working on game development for the Nokia Series 60 phones. The problem I find is that after about 10-15 page flips (double buffered) the phone crashes. Is there a DMA interrupt that I need to hook up to? Do I need to limit the frames? If so, what to?
Any ideas welcome.
Managing Director of Oiginal Sin Software
www.originalsinsoftware.com
|
|
|
|
|
I am trying to write a program that will give me some basic info about my pocket pc device. I was wondering if anyone knows an API call that will tell me if there is an integrated biometric fingerprint reader on the device. I am writing this for a 2003 platform. Any help is appreciated.
Thanxs
|
|
|
|
|
Hello, i have a mobile web application and when i test it locally on my machine, the emulator is able to show the contents. However, when i try to test it with an online emulator or an actual phone, it says "could not reach the indicated web server".
I enter something like this on my phone :
"http://220.255.13.144/MyWapApp/MobileWebForm.aspx"
Anyone have any ideas?
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
can someone please help me here ? :/
im making a small pocket pc app with vs.net 2003 / c#
i need to add a small database to it ,
my first thought was pocket access , i made a small access file and transfered it ,
to my supprize there was no support for this in .net , or am i wrong?? is there some db provider for that ?
my next thought was to make a little sql ce db ...
that seems the way to go , but is there ANY easy way to design the db and then publish the db on lots of pocket pc's?
how do i get the db into the pocket pc w/o creating it by hand on the pocket pc itself???
//Roger
|
|
|
|
|
hello,Reading a text file of integers with this code
for (k=0;k<256; k++)
{
for (l=0;l<12; l++)
fscanf(fmel,"%d",&melCdb->vq[k][l]);
for(l=0;l<12;l++)
{
fscanf(fmel,"%d",&aux);
// melCdb->cov[k][l]=2*aux;
}
}
the program breaks when k=16 without any reason in
fscanf(fmel,"%d",&melCdb->vq[k][l]);
there is more than 10mb of free memory in the Pocket PC and this code works properly with the same file in in the desktop with VC++ 6.0.
Somebody knows what is the problem?
Thanks
|
|
|
|
|
Try this:
...
for (l=0;l<12; l++)
{
int value;
fscanf(fmel,"%d",&value);
melCdb->vq[k][l] = value;
...
If this doesn't help:
How do you create the array melCdb->vq[k][l] ?
Please show us your source code!
--
Cheers,
Daniel
|
|
|
|
|
Hello, the source code is
melCdb->vq=(long **)malloc((256)*sizeof(long *));
for (k=0;k<256; k++)
{
melCdb->vq[k]=(long *)malloc((12)*sizeof(long));
}
for (k=0;k<256; k++)
{
for (l=0;l<12; l++)
fscanf(fmel,"%d",&melCdb->vq[k][l]);
for(l=0;l<12;l++)
{
fscanf(fmel,"%d",&aux);
}
}
I have already checked that mallocs give dinamic memory correctly.
Thanks for your help.
|
|
|
|
|
Try this:
for (k=0;k<256;k++)
{
for (l=0;l<12;l++)
{
long* pl = melCdb->vq[k];
fscanf(fmel,"%ld",&pl[l]);
}
}
Don't forget to use %ld in the fscanf function, because this are the right syntax for a long .
--
Cheers,
Daniel
|
|
|
|
|
Do you know how data files can be uploaded to the PocketPC and Windows CE .NET?
Is it possible to create an ethernet connection between the host PC and the Windows CE emulator (or simply to create lan)?
Any information about using these emulator is appreciated. Thank you!
|
|
|
|
|
You can map a drive to a network share on the host PC from within the emulator; just open File Explorer on the emulated device and map it from there.
|
|
|
|
|
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.
|
|
|
|