File searching in pocket pc
I've asked similar things months ago but couldn't get
reply... so I'd like to ask in another way.
I'm writing a English-Chinese dictionary for pocket pc.
But the problem is the it's very time consuming and also
seems impossible to load all data (word and meaning) to
an array before perform searching.
So shall I use some file-based searching techniques? If
yes, can anyone give me some suggestions? Or there's some
other methods for pocket pc actually? I'm writing the
program by evc.
I've searching for informations for few months already
and really feel so hopeless.
Thanks alot! Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71137
Interrupt signal
Hi,
I am developing a hardware for PPC using CF slot. I use
interrupt signal. It works well on Dell Axim but not
function at all on Toshiba PocketPC e740 and iPAQ H3800.
The driver is also written by me and I did register my
interrupt function.
Thanks!
Regard,
NKH Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71134
emulator problems
I have been having so much problem using evb and the emulator ppc 2002. I try to use the samples but when I push the Icon it says on the emulator(can't open control). I tried to use the control manager it says "can't find suitable control manager". I tried to use the application install wizard it says (can't find list of processors)
Please help
thanks for previous input
Pat Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71133
newbie question on data storage for PPC windows mobile 2003
hi,
Can anyone explain to me how i can create a database in the databases folder
on the pocket pc? i know how to create xml files or even sql server ce
databases on the PPC but i've notice that there is a databases folder that i
can see from my desktop on the PPC but i have no idea how to access or
create files in that directory can anyone guide me on this.
Thank you very much Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71132
Databases & Pocket PC Development
I'm new to Pocket PC development.
Just wondering how to develop a smart device app'n and use
the controls from the data tab on the toolbox (ie to
connect to a database). It seems when I use the smart
device app'n template, none of the data controls are
enabled.
How do you connect to a database? Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71128
TreeView
I'm using a TreeView control and C#. When I taps to open the contect menu
the red ring-thingy circles twice prior to the menu popping up. I've checed
the resco file browser and there all is ok. Has anyone any ide wzy the
thingy is shown twice?
/SåA Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71126
Determine when Scrollbar is tapped in datagrid control
Happy New Year, I can not seem to figure out how to
determine when a scroll bar is tapped from within a
datagrid control. My problem is that when the user taps a
cell I reposition a text box over the cell and allow them
to edit its contents. However, when the user taps the
scroll bar, my textbox is no longer covering the
appropriate cell. I can I determine when the datagrid
scrolls so I can hide my textbox or reposition it
accordingly? Thanks for any help. Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71124
application error when evb3.0
Dear all,
I have installed evb 3.0 on my pc of profeesional 2000 with sp 4. When I
run the program, I open a new project, and compile it without writing
anything. However, I get application error that "The memory could not be
"read" ". And then the evb program is terminated. Anyone can tell me how to
solve this problem? Thank you very much.
Best regards,
William Wong.
-- Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71119
Copying files to emulator
Hi,
I am using EVC3 to develop my app, but I am slowly going crazy
copying files to the emulator using the Windows CE remote file viewer.
I need 30 small data files copied across each time I test my app, but
the remote file viewer only allows one file to be copied at a time,
one cannot select multiple files. This must be the most braindead
piece of software ever written.
There does not seem to be a command line tool capable of copying files
to the emulator, if there was, life would be simple. Someone suggested
that I could add the files to my project, and they would be copied to
the emulator automatically with my exe, however try as I may, I cannot
figure out how to do this.
PLEASE, somone tell me how I can get my data files copied to the
emulator, before I go absolutely crazy!!
Thanks,
Allen Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71110
GPSboy and the PC2002 emulator
HI, I have been trying to use the program GPSboy on the
emulator for PC2002. When I hit the Icon, I get an error.
It says, "can't find pvbDecl.dll". I found it on my PC
ans copied it to the windows file on the emulator using
the export function of the remote veiwer. I still have
the problem, and when I open the windows file I don't see
it on the emulator but it is clearly there on the remote
veiwer. (I tested another txt file and it is visible on
the emulator.) Why is the emulator not finding the
pvbDecl.dll and why won't the emulator make it visible.
Thank you such much for your help
Pat Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71107
tmail.exe
Can anyone give me the low down or point me at some real documentation for
this PPC exe?
Many thanks
~A Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71097
Cannot establish a connection.
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C3CF85.252CD140
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Just upgraded to ActiveSync 3.7.1 and then went into an older VS2003 =
compact framework project and tried to deploy to my device which has an =
active (all green circle). And i get the following error:
Deploying to Pocket PC using TCP Connect Transport
Error: Cannot establish a connection. Be sure the device is physically =
connected to the development computer.
How can i trouble shoot this? Do i need to reinstall VS2003 AFTER I =
reinstalled ActiveSync??
Sure hope not!
Harry
------=_NextPart_000_0008_01C3CF85.252CD140
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<P><FONT face=3DVerdana size=3D2>Just upgraded to ActiveSync 3.7.1 and =
then went=20
into an older VS2003 compact framework project and tried to deploy to my =
device=20
which has an active (all green circle). And i get the following=20
error:</FONT></P>
<P><FONT face=3DVerdana size=3D2>Deploying to Pocket PC using TCP =
Connect=20
Transport<BR>Error: Cannot establish a connection. Be sure the device is =
physically connected to the development computer.</FONT></P>
<P><FONT face=3DVerdana size=3D2></FONT> </P>
<P><FONT face=3DVerdana size=3D2>How can i trouble shoot this? Do =
i need to=20
reinstall VS2003 AFTER I reinstalled ActiveSync??</FONT></P>
<P><FONT face=3DVerdana size=3D2>Sure hope not!</FONT></P>
<P><FONT face=3DVerdana size=3D2>Harry</FONT></P></BODY></HTML>
------=_NextPart_000_0008_01C3CF85.252CD140-- Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71096
Winpcap compiling with EVC4 missing wdm.h?
I was trying to compile the winpcap drivers for pocket pc with the embedded
compiler from microsoft. Thing is now, that i get those errors about a
missing wdm.h file. Since im no developer i have no clue at all what this
means execept that there is a file supposed to which is not.
So my question now is:
1. How can i include this file or where can i get it?
2. Is this problem only because of the compiler, and should i use another
one?
3. Is there any way to obtain the already compiled winpcap drivers for an
arm processor?
and last
is there anything i forgot to ask thats important to solve the problem?
Thanx to all replies in advance! Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71090
Getting CE device hardware ID
Is there way to get Pocket PC and Smartphone hardware ID through ActiveSync
or RAPI? Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71089
ActiveX in eVB
I am unable to add ActiveX controls (just MS grid ctrl, file ctrl) to a eVB appln. The Pocket PC 2002 is unable to create the component. The Control Manager says Unable to find a Control Manager Server for the Device. So I am unable to install any ActiveX components on the device. Please help me out... Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71086
Is Compact Framework support Regular Expression
Hi there,
I would like to know is Regular Expression support in
Compact Framework? And if there is any example can be
provided.
Thank you in advance.
Linda Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71082
RTC Client API
I am developing an application on Pocket PC 2003 using
RTC Client API.
When initializing
CoCreateInstance(CLSID_RTCClient,
NULL,
CLSCTX_INPROC_SERVER,
IID_IRTCClient,
(void **) (&pIRTCClient) )
call returns REGDB_E_CLASSNOTREG
Any help?
Balaji. Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71079
CryptoAPI and PPC Signature Application
I am using VS .Net 2003 to develop an VB.net Pocket PC
application which encrypts connection string information
for a SQL Server Database. I have copied the Crypto Class
code from the Pocket PC Signiture Application Sample into
my project
(http://msdn.microsoft.com/mobility/understanding/articles/
default.aspx?pull=/library/en-
us/dnnetcomp/html/ppcsignatureapp.asp).
I can not get the text I send it, to be decrypted. I
error out with an 'unhandled exception'. One thing I
notice is that I get different hProv, hHash, and hKey
values when running the CryptoSvc2.Decrypt function versus
the CryptoSvc1.Encrypt function (this may be correct, I
don't know). The following is my code:
Dim EncryptString As String
Dim DecryptString As String
Dim CodedArray() As Byte
Dim EncryptArray As Byte()
Dim DecryptArray As Byte()
Dim CryptoSvc1 As New PEdgeCF.Security.Crypto
CodedArray = System.Text.Encoding.ASCII.GetBytes("AnyText")
EncryptArray = CryptoSvc1.Encrypt("123456789", CodedArray)
EncryptString = System.Text.Encoding.ASCII.GetChars _
(EncryptArray)
MsgBox("Encrypted Data: " & EncryptString)
Dim CryptoSvc2 As New PEdgeCF.Security.Crypto
CodedArray = System.Text.Encoding.ASCII.GetBytes _
(EncryptString)
DecryptArray = CryptoSvc2.Decrypt("123456789", CodedArray)
DecryptString = System.Text.Encoding.ASCII.GetChars _
(DecryptArray)
MsgBox("Decrypted Data: " & DecryptString)
Any help would be greatly appreciated!!
. Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71070
Invoke program on PC from pocket PC
Does anyone know how to start a program on a desktop PC from a pocket PC?
..Using VB.NET, PocketPC 2003, bluetooth connection Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71068
how to catch the hardware button event?
I try to catch the iPAQ's hardware button event in C#.
But I failed. The code as following:
======================================================
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using Microsoft.WindowsCE.Forms;
using System.Runtime.InteropServices;
using System.Data;
namespace Hello_CSharp
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
MyMessageWindows myMessageWindows;
public Form1()
{
//
// Required for Windows Form
Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code
after InitializeComponent call
//
myMessageWindows = new
MyMessageWindows(this);
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool
disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated
code
/// <summary>
/// Required method for Designer support -
do not modify
/// the contents of this method with the
code editor.
/// </summary>
private void InitializeComponent()
{
//
// Form1
//
this.Text = "Form1";
this.Load += new
System.EventHandler(this.Form1_Load);
}
#endregion
/// <summary>
/// The main entry point for the
application.
/// </summary>
static void Main()
{
Application.Run(new Form1());
}
private void Form1_Load(object sender,
System.EventArgs e)
{
bool reg=false;
reg=Utility.RegisterHotKey
(this.myMessageWindows.Hwnd,100,Utility.KeyModifiers.None,
(int)Utility.KeyHardware.Hardware1);
if(reg == false)
MessageBox.Show("register
failed");
}
}
public class MyMessageWindows:MessageWindow
{
public const int WM_HOTKEY = 0x0312;
Form1 frm;
public MyMessageWindows(Form1 frm)
{
this.frm = frm;
}
protected override void WndProc(ref
Message msg)
{
switch(msg.Msg)
{
case WM_HOTKEY:
this.frm.Text
= "WM_HOTKEY has been sent!";
break;
}
base.WndProc(ref msg);
}
}
public class Utility
{
public enum KeyModifiers
{
None = 0,
Alt = 1,
Control = 2,
Shift = 4,
Windows = 8
}
public enum KeyHardware
{
Hardware1 = 193,
Hardware2 = 194,
Hardware3 = 195,
Hardware4 = 196,
Hardware5 = 197
}
[DllImport
("coredll.dll",SetLastError=true)]
public static extern bool
RegisterHotKey(IntPtr hWnd, int id, KeyModifiers
modifiers, int key);
[DllImport
("coredll.dll",SetLastError=true)]
public static extern bool UnregisterHotKey
(KeyModifiers modifiers, int key);
}
} Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71067
PocketPC and Windows CE.NET
Hi,
I'm an experienced developer, but on standard PC's
I am interested to start developing for Pocket PC, but I have some issues I
need to clarify. I'll appreciate any answer to my questions
1. What is the difference between PocketPC 2003-2003 and Windows CE.NET? Is
it a different OS? Or just the name for Compact NET Framework for PPC?
2. What is the difference between embedded Visual Tools 3.0 and 4.0?
3. What is the best way to go for developing PPC applications? Using eVC/eVB
or using Compact Net Framework?
4. Is Compact Net Framework available for old PPC (PPC2002, PPC2000, Windows
CE OS)?
5. I'm interested to buy a PPC to test the applications on it, but first I
might be interested to test them under an emulator. Is any emulator
available? Where can download it? I want to be able to test the application
on my development PC before deploying them on PPC.
Any other suggestions and links to web pages providing startup information
for developers about PPC will be greatly appreciated.
Happy New Year to all of you! Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71065
Remote Target Path
Hi all,
I'm using eVC 3.0 for programming PocketPC. The PocketPC is connected with
ActiveSync. After building the project eVC starts to copy the executable to
the PocketPC. How can I change the target path where eVC copies the
executable.
Thanks in advance.
Mathias Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71063
Recursive search help!
Hello all,
I want to create a recursive search into the dir of my pocket pc to get the
file link I want. However, after two night struggling, I couln't get any
luck.
Could anyone indicate where I might be lost?
Here is my piece of code :
int mySearchIt(TCHAR *folderPath,TCHAR *fileName,TCHAR *str){
HANDLE hFind;
TCHAR szDir[200]; // search full path
TCHAR szLowDir[200]; // Recurse to the lower dir
WIN32_FIND_DATA fd;
INT rc, nErr = 0;
wcscpy(szDir,folderPath);
wcscat(szDir,TEXT("\\"));
wcscat(szDir,fileName);
// Find matching files.
hFind = FindFirstFile (szDir, &fd);
if (hFind != INVALID_HANDLE_VALUE) {
do {
// Report all matching files.
if (!(fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { // Not
dir
//wprintf (L" %9d\t %s%s\n", fd.nFileSizeLow, szNew,
// fd.cFileName);
wcscpy(str,szDir); // Copy the dir
}
rc = FindNextFile (hFind, &fd);
} while (rc);
FindClose (hFind);
}
else { // File couldn't find
rc = GetLastError();
if ((rc != ERROR_FILE_NOT_FOUND) &&
(rc != ERROR_NO_MORE_FILES)) {
sShowMessage (L"1Find Error. ");
return -1;
}
}
// Create generic search string for all directories.
//lstrcat (szNew, TEXT ("*.*"));
wcscat(szDir,TEXT("\\*.*"));
//found2=FindFirstFile(temp,&data);
hFind = FindFirstFile (szDir, &fd);
if (hFind != INVALID_HANDLE_VALUE) {
do {
if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { //dir
// Recurse to the lower directory.
wcscpy(szLowDir,folderPath);
wcscat(szLowDir,TEXT("\\"));
wcscat(szLowDir,fd.cFileName);
//lstrcpy (pPtr, fd.cFileName);
//lstrcat (pPtr, pSrcSpec);
nErr = mySearchIt (szLowDir,fileName,str);
if (nErr) break;
//*pPtr = TEXT ('\0');
}
rc = FindNextFile (hFind, &fd);
if ((wcscmp(fd.cFileName,TEXT("icon.lnk")))==0) // For Game folder
break;
} while (rc);
FindClose (hFind);
} else {
rc = GetLastError();
if ((rc != ERROR_FILE_NOT_FOUND) &&
(rc != ERROR_NO_MORE_FILES)) {
sShowMessage (L"2Find Error:%d");
return -1;
}
}
return nErr;
}
Thanks a lot.
Nancy Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71056
Initial screen for file selection
I wonder, is there any source code available that demonstrates the initial
"file select" scrren shown when starting word or excel in PocketPc 2003.
Which control is used?
/SåA Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71055
iDeskBand support
Does the PocketPC support the iDeskband interface? We have a product
which runs applications and groups of application and it sit inside of
the taskbard using the iDeskband interface. We are looking to port it
to the PocketPC.
Thanks
Ralph Krausse
** www.consiliumsoft.com **
CSFastRunII -
Check out our application or group application
laucher intergrated directly into the taskbar...
CSPrintEngine
Easy to use printing ActiveX control, create
outstanding looking printouts, supports images,
tables, different fonts.... Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71054
Pocket PC 2003 Phone Edition Question
Dear all,
Does anyone have sample code in C# that shows how to trap the receiving of a
phone ring event? I want to launch an app in C# once the phone start
ringing before the user answers it. Thanks.
Regards,
Kueh. Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71053
all pocketpc have record button - reprogrammable
do all pocketpc's have the record button.
can it software re-defined. Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71051
Need help in DESKTOPTODEVICE API
Hi All,
I'm using DESKTOPTODEVICE for downloading .MDB from
desktop to device. It is working fine. But my requirement
to cancel the download while downloading .MDB is in
Progress.How to handle this situation.
Any kind of suggestion is most welcome.
Regards
Patra Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71050
how to get data from resources???
Hi,
Is it possible to load any kind of data from resources?
I have added some files to resources, and try to access them through
FindResource, LoadResource... but I fail on FindResource. GetLastError
returns error 1814 - "The specified resource name cannot be found in the
image file "
HRSRC hResInfo;
hResInfo = FindResource(hInst, "IDR_ARC1", "ARC");
int er = GetLastError();
if (hResInfo == NULL)
return FALSE;
Actually I need to get a buffer with bytes of my file. can I achieve it this
way?
thanks ahead,
PS Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71049
Bluetooth Question?
Dear all,
I would like to know if someone has any sample code in C# that can activate
and deactivate the "Bluetooth Headset Mode" programmatically. FYI, I am
working on the Pocket PC 2003 Phone Edition device. Thank you.
Regards,
Kueh Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71048
seek and index with ADOCE and .cdb files
Hi all,
I am trying to use the index and seek instructions to find a record by a
index. at the moment I am not able to get this working. I am using eMbedded
Visual Basic 3.0 and the code I am trying is this:
Dim rs As ADOCE.Recordset
Dim rsArt As ADOCE.Recordset
Dim objConn As ADOCE.Connection
Dim cCon As String
Dim cConN As String
Dim nReg As Long
'Dim Id(1) As String
Set rs = CreateObject("ADOCE.Recordset.3.0")
Me.Buscar.Caption = "Busca.."
'Abre la conexion
Set objConn = CreateObject("ADOCE.Connection.3.0")
objConn.Open "Provider=CEDB;" & _
"data source = \My Documents\Articulos.cdb"
cCon = "ARTICULOS"
rs.Open cCon, objConn, adOpenDynamic, adLockOptimistic, adCmdTableDirect
rs.Index = "PrimaryKey"
Id(0) = Trim(refart.Text)
rs.Seek Id(0), adSeekFirstEQ
If Not rs.EOF Then 'si encuentra el articulo
'MsgBox ("entra")
If IsNull(rs.fields(1).Value) Then
codbar.Text = ""
Else
codbar.Text = rs.fields(1).Value
End If
If IsNull(rs.fields(2).Value) Then
descrip.Text = ""
Else
descrip.Text = rs.fields(2).Value
End If
rs.close
Set rs = Nothing
Please help me, Thanks in advance.
Javier Martinez Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71046
IRTC Client on PocketPC 2003
I am trying to develop an application using IRTC Client
APIs on my PocketPC 2003 device.
I am unable to do a cocreateinstance on the IRTCClient
I get the following error....
error LNK2001: unresolved external symbol CLSID_RTCClient
error LNK2001: unresolved external symbol IID_IRTCClient
More importantly I am unable to find the
Rtccore.dll even after installing the IRTCClient SDK...
Any help ? Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71043
Infrared Communication
Hi All,
I have developed a application for PPC that make the
Infrared communication between two pocket pcs.I am using
the Coredll.dll to make it possible.This application is
running fine on my Compaq ipaq and HP jorneda.
But when i run the same application on the Toshiba PPc
this receives the "?" for each bytes that i send from the
sender PPc.Could anyone please guide me to solve this
problem .Its Urgent.
Thanks in advance.
Neeraj Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71039
[About POOM Api]
I have a PDA which has CE.net 4.2 OS, and I want to make a PIMS software.
But sample source (about PIMS) does not work on it with the message
"CoCreateInstance() fail.."
Because it has not any dll files such as pimstore.dll , calstore.dll and
etc.
I thought ,when the PDA maker built the OS, they have not included POOM
module.
so, I tried to copy some dll files(pimstore.dll , calstore.dll and etc) to
my PDA,
and then I trited to register pimstore.dll to registry, but, I saw a error
message "Invalid dll file".
How can I use POOM api on my PDA?
Please let me know your idea..
Thank you. Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71038
development
I am developing my app using c# visual studio 2003
professional for pocket pc 2002 with the emulator.
Im finding that i get errors when adding new items from
the toolbox.
i.e I have created a mainMenu with the menu item File and
sub menu exit, This is ok.
If i add another menu item, view next to file. when i run
in emulator i get A managed NotSupportedException occurred.
OK to terminate.
Im finding this is now happening very frequent. Just
adding a new button to my tabctrl and so on.
does anybody know why this is. is it a bug or something.
thanks
adam Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71036
date time picker - please help!
Im trying to make a simple application on the pocket PC.
Basically if the user selects a date that is higher than today's date
I want a messagebox to popup and tell them. -- simple right?
So I created my App, added the date time picker control, created a
member variable assigned to the date time picker, and created a date
time picker variable set to todays date so I have exact data formats
correct.
Only I cannot seem to get this to work! Please post anything that you
think may be helpful - except the useless information posted on msdn.
Thanks.!! Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71034
PocketConsole source code available
Hi,
PocketConsole v1.3 source code is available now at
http://www.symbolictools.de/public/pocketconsole/download.htm
Rainer Urian
www.symbolictools.de Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71031
Error Opening and Setting Serial Port for Pocket PC 2002
Hi,
I am working on a driver of a bluetooth printer in C++ in eMVC 3. My
application will run in Pocket PC 2002. I am trying to open the serial port
assigned to the COM port emulation by the Pocket PC 2002. However, I have
encountered some problems. I can create a port and get the handle
successfully, but when I tried to set the Comm Setting and timeout setting,
it failed.
Here is the sample code for the sequence I used:
HANDLE Handle;
COMMTIMEOUTS CommTimeOuts;
DCB dcb = { 0 };
Handle = CreateFile( "COM8", 0 | GENERIC_READ | GENERIC_WRITE, 0, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
CommTimeOuts.ReadIntervalTimeout = MAXDWORD;
CommTimeOuts.ReadTotalTimeoutMultiplier = 0;
CommTimeOuts.ReadTotalTimeoutConstant = 1000;
CommTimeOuts.WriteTotalTimeoutMultiplier = 0;
CommTimeOuts.WriteTotalTimeoutConstant = 1000;
rc = SetCommTimeouts( Handle, &CommTimeOuts);
if (rc == 0)
return -1;
<- failed...
dcb.DCBlength = sizeof( dcb );
dcb.BaudRate = 115200;
dcb.ByteSize = 8;
dcb.Parity = FALSE;
dcb.StopBits = ONESTOPBIT;
dcb.fOutxCtsFlow = 0;
dcb.fOutxDsrFlow = 0;
dcb.fDtrControl = DTR_CONTROL_DISABLE;
dcb.fDsrSensitivity = 0;
dcb.fOutX = 0;
dcb.fInX = 0;
dcb.fErrorChar = 0;
dcb.fRtsControl = RTS_CONTROL_DISABLE;
dcb.fNull = 0;
dcb.XonChar = 0x11;
dcb.XoffChar = 0x13;
dcb.ErrorChar = 0;
if ( SetCommState( Handle, &dcb) == 0)
{
return (-1);
}
<- failed
For the pocket pc I am working on, there is a setting for bluetooth
(Bluetooth for Windows CE (BTW-CE)) Version 1.3.1 Build 46.
In fact, the Comport assigned is 3 for Inbound comport and 8 for Outbound
comport. Are there anywhere I can change the setting for the port assigned?
Any other where I missed for the Comport setting?
Regards
Kenric Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71030
Pocket PC & Power Management
In Pocket PC, how can I programmatically disable the option "Turn off device
if not used for n minutes" in the Start->Settings->Power screen? Also, is
there a way to determine if the power is about to be switched off (like in
Windows you can receive a message when the system is about to shutdown and
then do something before telling the machine to shut down) ? Thanks
in advance! Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71027
Zip Unzip Called from Executable
I am looking for a solution such as Zip and Unzip that I can call from an
executable on Windows CE/PocketPC. I have begun to try and port the
Zip/Unzip code from InfoZip but already have hit some roadblocks when not
being able to include <sys/types.h> and it just gets worse from there.
Has someone done this already so as to not repeat what is looking like a
long drawn out exercise? Any suggestions would be greatly welcomed.
-- B Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71026
code.vb[design] missing?
I try to open my VB.NET project I built before, but I can
not find the code.VB[design] - the form designer is
missing!
What is wrong? Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71025
MAPI Advise - no notification is received
I'm trying to get a notification on a new mail (or any other type of
Inbox notification) in PocketPC 2003. I created AdviseSink object and
use Advise() as follows:
m_lpMAPIFolderAdviseSink = new CMAPITableAdviseSink(m_pSession);
hr = m_pMsgStore->Advise(0, 0,
fnevNewMail | fnevObjectCreated | fnevObjectDeleted |
fnevObjectModified |
fnevObjectMoved| fnevObjectCopied | fnevStatusObjectModified,
m_lpMAPIFolderAdviseSink,&connection);
The operation is sucessfull. The problem is that no notification is
received when I manually create a new message, copy/delete, etc.
If I copy messages using MAPI, for example,
m_pOutBoxFolder->CopyMessages(&EntryList, 0, m_pSentItemsFolder, 0, 0,
0);
the notofication is received!
I suppose the context in which advise sink object run, should be
changed, or something. Can anybody help?
Thanks. Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71023
saving image on ppc
I need to save the contents of a picturebox control as a bitmap to a file on
a pda in a vb.net app. Can someone point me in the right direction?
Thanks, Eric Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71022
exception handling and COM/ATL/RTTI
Greetings,
I'm trying to port a COM object to PocketPC using Embedded
Visual C++ and the PocketPC SDK. The COM object makes
ample use of try/catch exception handling. It compiles
fine but I get the following link error:
StdAfx.obj : error LNK2019: unresolved external
symbol "void __stdcall `eh vector destructor
iterator'(void *,unsigned int,int,void (__thiscall*)(void
*))" (??_M@YGXPAXIHP6EX0@Z@Z) referenced in
function "public: void * __thiscall ATL::CComTypeInfoH
older::stringdispid::`vector deleting destructor'(unsigned
int)" (??_Estringdispid@CComTypeInfoHolder@ATL@@QAEPAXI@Z)
After doing some reading I believe this is a problem with
RTTI support, yes? I found a patch from Entrek Software
that fixes this for ARM but I'd really like to be able to
do some work in the emulator. Is there an official fix
from Microsoft that includes emulator support, or plans
for a fix?
Thanks,
Mike Stangel Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71019
CAB Files not downloading in Pocket Explorer
Hello,
I am writing an application for PPC that will need to be
distributed remotely. My users have wireless Symbol
scanners running Pocket PC 2003.
I create the CAB files in .NET and have placed them on a
web site. The problem is that when surfing to them with
Internet Explorer from the pocket pc devices, they are
opened as 'web pages' with garbled text, instead of being
downloaded as files which can be installed.
What am I doing wrong?
Thanks,
dave Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71017
problem with pxlcnv.dll
i'm developing a general purpose conversion utility for converting between
the pocket pc formats and the desktop formats (ie: pocket excel to desktop
excel).
I've gotten the word conversion to work, but i'm having trouble with the
pocket excel to desktop excel. I've tried both the excel 5.0/95 and the
excel 97/2000 conversions. Neither are working, but the 5.0 seems to be not
working less than the 97. With the 5.0 it is writing all the data
correctly, but isn't writing the document summery. With the 97, its just
FUBAR's everything, excel isn't even able to repair it much less get any of
the necessary data out of it.
does anybody have any ideas on this?
thanks,
edward Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71016
scrollable forms
How do I make a form contain a scrollbar in vb.net when a user brings up the
input window? Tag: Debugging unmanaged C++ code from .NET SmartDevice Application written in C# Tag: 71015
Is it possible to Debugging unmanaged C++ code from .NET SmartDevice Application written in C#? How?
Thanks in advance.
======
Reuti
"Reuti" <anonymous@discussions.microsoft.com> wrote in message
news:91E5ABEE-F1DC-4E21-9F42-85953A18F54C@microsoft.com...
> Is it possible to Debugging unmanaged C++ code from .NET SmartDevice
Application written in C#? How?
> Thanks in advance.
> ======
> Reuti
>