|
"UNICOD" is a new scientifically engineered generic fish, guaranteed to be edible, even in Fance.
------- 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
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
John Simmons / outlaw programmer wrote:
"UNICOD" is a new scientifically engineered generic fish, guaranteed to be edible, even in Fance.
If you ever come to Portugal, try the 1000 ways of cooking cod.
D E L I C I O U S
|
|
|
|
|
I don't think so. I've tested char on PocketPC with C/C++ runtime library (FILE*). It works normally.
FILE * g;<br />
if (g=fopen("abc.txt","rt"))<br />
{<br />
char szStr[255];<br />
fgets(szStr,255,g);<br />
CString strMsg;<br />
<br />
strMsg = "Read text: ";<br />
strMsg+= szStr;<br />
MessageBox(strMsg);<br />
}
Of course, the file is just in ANSI charset.
=======================
Nothing is perfect
|
|
|
|
|
I'm not sure of what might be happening, but some of the functions might be expecting TCHAR* instead of char*, although the compiler should complain about this. Is there anything wrong in the file itself? Why not use MFC's CFile?
|
|
|
|
|
Hi, The voice recorder control that I created on my iPAQ does not discard the recording being made when the X on it is tapped.
It supposed to be cancelling the recording instead it gets saved. How can I solve that?
And, the voice recording gets saved in .wav format, how can I change to .mp3 as I would like to reduce the file size for it to be easily sent over a wireless network?
I am using embedded Visual C++.
Thanks.
|
|
|
|
|
I have a text file abc.txt in Windows 2000, like that:
"a b c", export it to emulator.
Now I want to read it by these code:
CFile f;<br />
CFileException e;<br />
PTCHAR szFileName= _T("abc.txt");<br />
if (f.Open(szFileName,CFile::modeRead,&e))<br />
{ CString strText;<br />
TCHAR szChar[255];<br />
UINT nRead=f.Read(szChar,2);<br />
if (SUCCEEDED(nRead))<br />
{<br />
CString strMsg;<br />
strMsg.Format(_T("Read text: %s"),szChar);<br />
MessageBox(strMsg);<br />
}<br />
}
But messagebox shows a strange string. It's not "a " as I thounght. Why ?
=======================
Nothing is perfect
|
|
|
|
|
First, I think that there is no 0 terminator at the end of the string (szRead[3] = _T('\0'); )!
Second, I think that in the ASCII file (abc.txt) there are no UNICODE characters, but in your Pocket PC application you read UNICODE characters (TCHAR 's).
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
So how can I solve this problem ?
=======================
Nothing is perfect
|
|
|
|
|
If you have the following 3 characters abc in the file "abc.txt" , try this:
#include <atlbase.h>
CFile f;
CFileException e;
if (f.Open(_T("abc.txt"),CFile::modeRead,&e))
{
USES_CONVERSION;
char szChar[255] = { 0 };
UINT nRead = f.Read(szChar,3);
szChar[nRead] = '\0';
CString strMsg;
strMsg.Format(_T("Read text: %s"), A2CT(szChar));
AfxMessageBox(strMsg);
}
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
I'm currently trying to install the Windows CE Platform Manager 4.0 as part of the embedded Visual C++ setup, but it appears to have hung.
I've tried several times, but it runs through the 'configuring' stage once (fairly quickly) and then on the 2nd time it sits at one 'square' on the progress bar and doesn't appear to be doing anything. There's no CPU activity, no disk activity, and nothing else happening - despite going for nearly an hour.
Any ideas? Should I just leave it and hope it completes? Or is there something I can do check to make sure it installs properly?
The problem is, I can't install Embedded VC4 without the plaform manager installed, and I have to get this working.
|
|
|
|
|
I managed to inatall eVC4 over eVC3 with no problems. Did you thoroughly check out those damned readme files?
|
|
|
|
|
Yep, read all the readme files. I tried installing eVC3 last night, and exactly the same thing happened with that, too. I left it going all night, and it was still in the same place this morning.
Even if I try to cancel the installation, it sits there doing nothing for hours too. The only way I can get it to continue is to kill the process 'emulator.exe'.
Any clues at all would be most useful.
________________________
http://www.webreaper.net
|
|
|
|
|
What about your base system? Is it a W2K or XP fully updated? Accept nothing less than that.
|
|
|
|
|
It's XP Pro, and fully updated......
I'm going to have to try the last-resort option - I'm going to do a clean XP install and see if it'll work on that.....
________________________
http://www.webreaper.net
|
|
|
|
|
Good luck!
|
|
|
|
|
Well, one clean XP installation later, and it installed flawlessly.
<sigh>
Thanks for your help, anyway!
________________________
http://www.webreaper.net
|
|
|
|
|
What is these terms ?
-Palm/Palm size
-PocketPC
-Handheld
-WindowsCE
I don't know clearly about it. Explain me !
=======================
Nothing is perfect
|
|
|
|
|
Here's my take at it:
Windows CE - The underlying operating system.
PocketPC - Windows CE 3.0 with special specs.
Handheld - Windows CE 2.1 (I believe) in clamshell landscape shape.
Palm size - Older version of PocketPC-sized devices, WinCE 2.1 (?)
Palm - That's another story...
|
|
|
|
|
I wonder if SetCursor() work in CE 3.0 ?
Nothing is prefect
|
|
|
|
|
Why would you want to do it?
|
|
|
|
|
I want my mouse cursor turns HAND-icon when I drag mouse over a region.
=======================
Nothing is perfect
|
|
|
|
|
You want to use a mouse cursor on Pocket PC?
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Hi,
Does anybody know if there is a MIDI library (APIs) under Windows CE.
I am looking for the APIs to send and recieve system execlusive messages.
Thanks for any reply .
Regards,
Napoleon
|
|
|
|
|
Check the wfmtmidi.h header file. If you have the PPC2002 SDK and help file, check out the entry for the WAVEFORMAT_MIDI_MESSAGE structure.
|
|
|
|
|
Hi,
I have a problema . How can a get programtically (with visual c++3.0) the identifier of a pda, uui o guid? Does it exits?, is unique for each PDA?
Thanks
|
|
|
|