|
Hello there,
I got a problem when reading a unicode file on my pocket pc...
The problem is that a Unicode file starts with WCHAR 0xfffe.
I read strings from the file using the ReadString method of CArchive.
And offcourse the first string has that leading 0xfffe character.
I tried to do a TrimLeft(0xfffe) on that string, but to no avail, the character remains there.
Is there any way to just skip that character without having to write any special if else
statements?
CArchive inStream(&unicodeFile, CArchive::load);
if( inStream.ReadString( sTemp ) )
{
sTemp.TrimLeft();
if( !sTemp.IsEmpty() )
{
sTemp.TrimLeft(0xfffe); //doesn^t help
//here I compare the sTemp with a string I try to find
//in the file, however if that string is on the first
//line the compare fails due to that 0xfffe
.
.
.
If anyone can help I`ld be gratefull..
Davy
|
|
|
|
|
Try this:
sTemp = sTemp.Right(sTemp.GetLength()-1);
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
during the call to SqlCeReplication's Addsubscription, an error occurs that says:
An unhandled exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in System.Data.SqlServerCe.dll
Additional information: SqlCeException
here's my code snippet:
.InternetUrl = "http://" & txtDBServer.Text & "/" & txtDBName.Text & "/sscesa10.DLL"
.InternetLogin = ""
.InternetPassword = ""
.PublisherNetwork = NetworkType.DefaultNetwork
.Publisher = txtDBServer.Text
.PublisherDatabase = txtDBName.Text
.PublisherLogin = txtUsername.Text
.PublisherPassword = txtPassword.Text
.Publication = txtDBName.Text
.PublisherSecurityMode = SecurityType.DBAuthentication
.SubscriberConnectionString = "data source=C:\" & txtDBName.Text & ".sdf"
.Subscriber = txtDBName.Text
.AddSubscription(AddOption.CreateDatabase)
.Synchronize()
|
|
|
|
|
Is there any to get a Windows user control to work in the compact framework?
"if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.
|
|
|
|
|
I run application "Creating Custom Controls
By Chris Maunder" published in "All Topics, MFC / C++ >> Miscellaneous Controls >> Beginners" section. Emulator does not shows anything escept start page, no control?
What have I done worng?
This is result of building the application:
Deleting intermediate files and output files for project 'CustomControl - Win32 (WCE emulator) Debug'.
--------------------Configuration: CustomControl - Win32 (WCE emulator) Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
BitmapViewer.cpp
CustomControl.cpp
CustomControlDlg.cpp
Generating Code...
Linking...
CustomControl.exe - 0 error(s), 0 warning(s)
Downloading files
Downloading file c:\myprojects\customcontrol\emulatordbg\customcontrol.exe.
Downloading file c:\windows ce tools\wce300\...\lib\x86\mfcce300d.dll.
Finished downloading.
|
|
|
|
|
Hello All,
I have an EVC++ program and a Flash program running concurrently in a Pocket PC wherein the EVC++ program passes some data to the Flash application via an XML socket.I am facing a problem of low animation speed when the data transfer takes place.Is there a way in the flash program to receive the data in a seperate thread so as not to disturb the animation speed?I would be grateful for your kind responses.
Thanking you,
Deepa Gopal.
|
|
|
|
|
Hi all
I am developing an NDIS Miniport Driver.I want to trigger the DHCP client to send out a DHCP discover packet.
The only way, I beleive I can do this is by restarting the DHCP client service.
I know that we can restart windows services from Application Layer.
But I am not sure if the same can be done from driver level.Can we?Or is there any better way to do the same?
|
|
|
|
|
Hi all,
1. when will the .net compact framework 2.0 be available,
and is the most update version 1.1 ?
2. for the most update version of .net cf, will the Pocket PC 2003 OS
support it without adding any sp ?
3. Does the PocketPC 2002 OS support .net CF application if some
update to the OS on the Pocket PC device ?
Thanks
|
|
|
|
|
Hi!
I don't find compact framework .net v1.1 in anywhere, do you find it?
It's really exist, can somebody give me the link? please...
Thanks!
ahh, PPC 2002 support any app with .net.
|
|
|
|
|
Hello guys:
I´m starting a new mobile project with VS 2003. I usually use inherited forms in my UI projects and custom components. I have a little doubt: Exists Visual Inheritance in Smart Devices Projects as in the Winforms projects?
Thanks
Roberto Castro Vexler
(rmcw@latindot.com)
(rmcw@casvex.com)
|
|
|
|
|
hey guys, do you have any idea how to make a program using vb.net (to be deployed in pocket pc) so that i could access my cf device? if it's not possible in .net, would it work using embedded sdk?
|
|
|
|
|
will there be a separate SDK for the .net compact framework
|
|
|
|
|
Hi,
After using InstallShield to copy over a number of exe files in the Windows folder of my pocket pc, now the thing soft reboots about once every 8 minutes.. I'm not sure which of the programs is a problem, the ones I copied over are:
addrbook.exe
AssetViewer.exe
beam.exe
BlueToothManager.exe
BTBusinessCard.exe
BTConnManagerCE.exe
BTFileExplorer.exe
BTPanManagerCE.exe
BTTrayCE.exe
connmgr.exe
GuideBook.exe
iexplore.exe
Jawbreaker.exe
MsReader.exe
mstsc.exe
PIMAgent.exe
pimg.exe
poutlook.exe
pword.exe
pxl.exe
solitaire.exe
tasks.exe
wirelesscenter.exe
wmplayer.exe
Does anyone have any idea which of these programs, when overwritten, aka "removed," could cause my PDA to soft reboot constantly?
Thanks!
Kelly Ryan
|
|
|
|
|
Hello, I was trying to marshall this function (c#) in order to use with .NET Compact Framework
Here's the one from MSDN
<br />
BOOL WINAPI Toolhelp32ReadProcessMemory( <br />
DWORD th32ProcessID,<br />
LPCVOID lpBaseAddress, <br />
LPVOID lpBuffer, <br />
DWORD cbRead, <br />
LPDWORD lpNumberOfBytesRead <br />
);<br />
I tryed using this
<br />
[DllImport("toolhelp.dll")];<br />
private static extern int Toolhelp32ReadProcessMemory( <br />
IntPtr th32ProcessID,<br />
IntPtr lpBaseAddress, <br />
IntPtr lpBuffer, <br />
uint cbRead, <br />
IntPtr lpNumberOfBytesRead <br />
);<br />
but I receive compile error on lpBuffer, that I've declared this as
char[] dest=new char[1024]; in my application.
thanks in advace!
Paolo
|
|
|
|
|
Does anybode know how to retrieve the path where the program itself is stored....
I tried AfxGetAppName() but that just gives me the name of the exe...
any help is appreciated...
Regards,
Davy
|
|
|
|
|
|
Thanks, exactly what I needed...
|
|
|
|
|
Hi,
I've a small doubt. Suppose I run my application x.exe in the PocketPC.
Though it is runing in the PocketPC again I tapped on the x.exe. Will it again run or it will get x.exe into the mechanism. If I'll run same x.exe then, will it consume extra memory.
Can you please tell me what is the mechanism for this?.
Regards
Patra
|
|
|
|
|
Although you don't have to follow them strictly, the Pocket PC design guidelines say that you should have only one instance of your application running. If you develop in C++ using MFC, this feature is built in.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi guys,
Here is my situation, I have a program that creates a database, and as long as you do not sync it to the desktop it is fine and works great, you can also export it to the desktop without any negetive side effects, the problem comes when you sync the db back from the desktop to the handheld. Even if you don't edit it on the desktop, the program that I have can't write to some of the tables. It still reads to them but can't edit or add to them. I have not at all changed the tables, just synced to desktop and then brought back to the handheld. Any ideas, I am using active sync ver 3.7 (build 3083). I am wondering if anyone knows where to get something to compare the databases (before sync and after sync). Something is happening during the syncing and conversion process. I am really stuck on this one mad: PLEASE HELP!!!
Thanks for the help guys,
Rod
|
|
|
|
|
If you are using Pocket Access databases (cdb) on the Pocket PC, check if, when they are copied to the desktop, a new key column with an autonumber type is added.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
No there doesn't seem to be a new key column. The only thing that I notice is that some of the indexes disappear. Having the databases missing the indexes doesn't seem to effect the program in any way, as I have created the tables without the indexes and the program still works fine until you bring them across to the desktop and then back to the ppc.Any other ideas??? Thanks every bit helps, I appericiate your suggestions.
Thanks,
Rod
|
|
|
|
|
Can you please send me a sample database so that I can test it?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Did you get the database that I sent you? I was wondering if there are reserved words such as maybe "Field" or something like that. Any other ideas?
Again,
Thank you very much,
Rod
|
|
|
|
|
Hi Rod,
Sorry! I've been busy and and got a cold on top of my usual spring allergies... The mdb was blocked. Can you zip it and send it again?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|