When trying to visually design...
... pocket PC 2003 application window i got an error:
"ReflectionOnlyAssemblyResolve handlers must return Assemblies loaded for
reflection only."
instead of designers launch...
Whats wrong? Tag: Open Bluetooth Headset communication Tag: 102585
Pocket PC Software Development Documentation
Hello,
Can anyone give me or redirect me to a comprehensive downloadable
documentation for developing software solutions for Pocket PC's using VS.NET
2005 ? Guide or Reference in PDF format would be nice :)
I mention that I am a C# Developer trying to understand Mobile Applications
in order to create a project for my final exam at the university .... so it
is pure academical :D Tag: Open Bluetooth Headset communication Tag: 102584
How to debug while using true network
[evc4.0 and PPC2003]
I hope to debug while using true network, but I found that the ActiveAync
would
disconnected while logining GPRS network.
Changing connection thru "WORK" or "INTERNET" is no use to solve this.
Is that true? or any option can set to solve this?
Thanks. Tag: Open Bluetooth Headset communication Tag: 102582
How to upload file to Web Server by using web service??
Hi all,
I am coding the app which running on PPC. On the PPC, we can take images and
save to app local's folder. I want to upload this files to web server by
using web service. but don't known how...??? . I had read some subjects
about upload file to server by webservice...But on PPC, there are something
which is don't support.
Let me know how to do ...
Thank you for your help
Phong Trang Tag: Open Bluetooth Headset communication Tag: 102580
SIP Icon Not Initially Showing
In my Pocket PC app I have the main form come up and then on top of that I
display a smaller form, designed to resemble a dialog box. But when this 2nd
form appears, the small SIP icon in the lower right does not display.
What's the best approach to refresh/redraw the screen? I'm thinking of
doing this before displaying my smaller dialog box and am thinking that may
reveal the SIP icon.
--
Robert W.
Vancouver, BC
www.mwtech.com Tag: Open Bluetooth Headset communication Tag: 102564
Mobile Equivalent of Enum.Parse?
In my WinForms app I'm loading a value from an XML file and converting it to
an Enum type I have called "ProductID". Here's the line of code I've used to
accomplish that:
SysInfo.Data.Admin.ProductID = (DataObjects.Constants.ProductID)
Enum.Parse(typeof(DataObjects.Constants.ProductID),
table.Rows[0]["ProductID"].ToString(), true);
One of the key things here is the use of 'Enum.Parse'. I'm now tryng to do
something similar in my Pocket PC app but I discovered that Enum.Parse does
not exist in the Compact Framework. So I'm wondering how I could accomplish
this. In essence, I'm trying to convert a string to an Enum type.
--
Robert W.
Vancouver, BC
www.mwtech.com Tag: Open Bluetooth Headset communication Tag: 102563
Bug in GetSystemMetrics(SM_CYMENU) for WM 5.0 OS?
VGA device (x50v) running WM 2003 SE OS:
GetSystemMetrics(SM_CYMENU) returns 52 pixels
VGA device (x50v) running WM 5.0 OS:
GetSystemMetrics(SM_CYMENU) returns 23 pixels
23 pixels is what should be returned for QVGA (lo-res) screen devices, not
VGA devices. Has anyone seen this issue? Could this be a bug in the WM 5.0
OS for VGA screen devices?
Thanks,
ppcinfo Tag: Open Bluetooth Headset communication Tag: 102557
Help: Error 0x75ab calling CeCreateProcess. What is this error?
I'm calling RAPI CeCreateProcess directed to a Windows Mobile 5.0
device. It returns CeGetLastError of 0x75ab. I cannot find the error
anywhere (winerror.h, google, nuthin).
Anyone know what this error value is? Help! Tag: Open Bluetooth Headset communication Tag: 102555
PCMCIA stream driver with Mobile 5.0 problem
Hello,
We developed a PCMCIA stream driver a couple years ago and it was working
just fine with 2002 and mobile 2003. We just got the Axim X51 with Mobile
5.0 and we appear to be having problems with the PCMCIA interface. After
playing around with the registry keys I finally got my driver to load
properly, and it appears to be returning a proper handle when I call
CreateFile. Also the WriteFile returns successful, however there is no pin
stimulation on the CF port when I look at it on the logic analyzer. Also
another thing I noticed is that when you plug any type of card in to the X51
the CF port stays powered. It never use to be like this. What has changed
that is not allowing me to talk to the port? Is anyone having to redo there
PCMCIA drivers for Mobile 5.0?
Thomas Tag: Open Bluetooth Headset communication Tag: 102552
OMA Client DM xml format and SyncML questions
Hi,
A couple of device provisioning questions...
OMA Client DM xml format questions:
When I attempt to query for device information, the command states that it
successfully completes, but the output file that is generated is an exact
copy of my input file?? Below is the xml command I am attempting to push
<wap-provisioningdoc>
<characteristic type="DeviceInformation">
<parm-query name="Product" />
<parm-query name="AvailableRam" />
<parm-query name="TotalRam" />
<parm-query name="AvailableStorage" />
<parm-query name="TotalStorage" />
<parm-query name="BacklightACTimeout" />
<parm-query name="BacklightBatteryTimeout" />
<parm-query name="BatteryStrength" />
<parm-query name="ProcessorType" />
<parm-query name="ProductVersion" />
<parm-query name="OperatingSystem" />
<parm-query name="OperatingSystemVersion" />
</characteristic>
</wap-provisioningdoc>
Other queries (i.e., security settings, certificates, ...) work as expected,
but this and a simple query of the alarm status return the input files as
their output.
SyncML questions:
I am attempting to build OMA DM compliant xml commands and apply them to my
mobile devices (both smart phone and pocket pc) using rapiconfig.exe, but
whenever i attempt to push this xml command to the device, i always receive a
"Config failed (0x80004005): Unspecified error" error message. Below is the
SyncML that I am trying to push
<SyncML xmlns='SYNCML:SYNCML1.1'>
<SyncHdr>
<VerDTD>1.1</VerDTD>
<VerProto>SyncML/1.1</VerProto>
<SessionID>1</SessionID>
<MsgID>1</MsgID>
<Target>
<LocURI>IMEI:35638400546326800</LocURI>
</Target>
<Source>
<LocURI>localhost</LocURI>
</Source>
</SyncHdr>
<SyncBody>
<Get>
<CmdID>2</CmdID>
<Item>
<Target>
<LocURI>./DevInfo</LocURI>
</Target>
</Item>
</Get>
<Final />
</SyncBody>
</SyncML>
Thank you in advance for your help,
allen Tag: Open Bluetooth Headset communication Tag: 102548
Pocket PC recording data
Hi there,
i am building an application for Pocket PC. How can i store data in a Pocket
PC? Record stores? How much data can i store?? Tag: Open Bluetooth Headset communication Tag: 102546
Uninstall CAB from PocketPC
I have run a CAB for a VB .NET application. It installs the app and the app
runs. Now I have updated that app. I uninstalled (via Remove Program) and the
original version of the app appears to have uninstalled (i.e. not available
anymore through the Programs screen. I then sent a new CAB to the device and
ran it. It appeared to run fine. However, when I start this new version of
the app (after removing the old version and installing the new version) ... I
*still* see the old version!!
What gives? The Remove Program function doesn't appear to *really* remove
the program and a new install does *not* replace the old program! Tag: Open Bluetooth Headset communication Tag: 102545
Windows Mobile 2005 Internet Explorer Script Warning
I try to use Windows Mobile 2005.
My application runs in Pocket Internet Explorer and is written in JavaScript
in HTML. It also uses my COM (ActiveX) object. When my script in Javascript
is running "a long time" (sometimes less then a second) the Internet Explorer
shows a script warning. This window closes after some time during script
execution.
Is there any way to disable such warning? Tag: Open Bluetooth Headset communication Tag: 102544
SQL Server Mobile 2005 distributables...
Hopefully this is an easy one..
I want to distribute, with my application, everything that a user needs
to install on a freshly hard-reset device, in order for my app to open an
SQLCE 3.0 (Server Mobile 2005) database.
For example, after a hard-reset, if I install "sqlce.wce4.armv4.CAB"
on a device, then a user can happily open an .sdf file using my eVC 4.0
program.
I've written an equivalent for SQL 3.0, which works fine on a device
after VS2005 has deployed .Net CF 2.0, and a range of SQLCE 3.0
libraries, but obviously, I just want to ship out
(a) as little as possible
(b) just .cab files that MS has authorised software developers to
distribute themselves.
What .cab files do I need, and where can I find it/them ?
Mike Tag: Open Bluetooth Headset communication Tag: 102539
How to know when foreground window become some dedicated application like pocket IE
Dear all,
My application/driver would like to get a notice when the foreground window
become some dedicated applications like pIE or pWord.
Right now I implement it in this stupid way: use a while loop in a thread to
call GetForegroundWindow() and
check if the handle the same with the handle I get with
FindWindow(_T("IExplore"), _T("Internet Explorer")).
This method costs some CPU resource even the while loop check it every one
second.
Is there any better way to do this? like getting a message or what when pIE
or pWord become foreground window or
at least get a message when foreground window changes then I can go check it
if it's pIE at that time.
Thanks a lot.
Calvin Tag: Open Bluetooth Headset communication Tag: 102534
Sampole code ?
Does anyone have some sample code to do the following Visual studio 2000
(beta).
Find the latest image / video taken by the camera and display on screen.
FTP this file to an FTP site.
Use the new camera api to have control over the camera ie resolution, video
or photo etc etc
Have 2 sounds playing at the same time.
I have used Borland Delphi which is Pascal based which of the visual studio
languages would help reduce the learning curve?
Cheers
Steve W Tag: Open Bluetooth Headset communication Tag: 102528
ActiveSync and USB client - Moble 5.0 vs. Pocket PC 2003
Hi,
I'm trying to rewrite an application from Pocket PC 2003 to Mobile 5
that uses USB to ActiveSync. There are been some major differences. . .
For PocketPC based PDAs (Compaq 3*, HP 55*, ASUS MyPal) we used a
driver that offers serial communication via USB. It is found in the
registry on [HKEY_LOCAL_MACHINE/Drivers/BuiltIn/USB] and referred to in
[HKEY_LOCAL_MACHINE/Drivers/Active] which shows if the driver is
activated. The driver is in the file bvd_udc_ser.dll
In Mobile 5 the driver used by ActiveSync is in
[HKEY_LOCAL_MACHINE/Drivers/BuiltIn/usbfndrv], which means that it is
not a pure "stream driver" (with the pre-fix COM). This is a problem
for us since the Pocket PC driver is deleted. The driver "usbfndrv" is
visible in [HKEY_LOCAL_MACHINE/Drivers/Active] in the registry
We hope that it is possible to activate the driver
[HKEY_LOCAL_MACHINE/Drivers/USB/FunctionDrivers/Serial_Class] that is
in Mobile 5.
The problem it that it does not seem to be in the platform build.
(since it is not in [HKEY_LOCAL_MACHINE/Drivers/BuiltIn]).
The dll that it wants to use is named "serialusbfn.dll" but we do not
know if it is in the OS-build.
Where can we find "serialusbfn.dll" and do we have to deactivate
"usbfndrv" (there is OS call)?
Or, can we use the "usbfndrv" API directly to build something like a
"stream driver"?
Best regards,
/hf Tag: Open Bluetooth Headset communication Tag: 102527
VS 2003 and Windows Mobile 5.0
Hi there i have VS 2003 installed . Now i must develop for a pocket pc who
has Windows Mobile 5.0 installed.
Can i use VS 2003 and the Mobile 5.0 SDK or must i install Visual Studio
2005 and the Mobile 5.0 SDK ?
Greetings Tag: Open Bluetooth Headset communication Tag: 102524
SmartPhone emulator and shared folder apps
From the SmartPhone emulator it is possible to setup the shared folder, but
how to locate such folder from the SmartPhone itself and execute the
applications ? I can't find a File Explore on the SmartPhone. Any hints ?
Lars Tag: Open Bluetooth Headset communication Tag: 102518
customize the Phone UI
Hello everybody!
Here is the question: Is there a way to customize the UI of the
notification of Incoming voice call? the OS is Magneo phone edition.
Thanks a lot!
nk Tag: Open Bluetooth Headset communication Tag: 102513
Trouble Calling C dll from C#, data goes in, but cant get results
I am trying to make a very simple app that returns a string in c#. I've seen
several examples showing returning byte[] but I don't get that to work.
I'll show my relevant code below. I've been trying all day to no avail.
Thanks for any help or pointers to sample code that would do what I want.
C# Code:
[DllImport("echolib.dll", CharSet = CharSet.Auto)]
static extern void testcall(String str, ref byte[] lpData,ref uint dataLen);
public int GetValueFromDLL(string keyName, ref string stringResult)
{
byte[] bytes = null;
uint length = 200;
bytes = new byte[length];
testcall(keyName,ref bytes,ref length);
return 0;
}
C Code:
#define DLLOBJECT __declspec(dllexport)
char data[300];
DLLOBJECT void testcall(char* pIn,char* pOut, int * pOutLen)
{
int ret;
pOut = &data;
ret = strcpy(pOut,"THIS IS WHAT IS LOADED WITH STRCPY");
*pOutLen = strlen(pOut);
}
--
Peter Kellner
http://peterkellner.net Tag: Open Bluetooth Headset communication Tag: 102511
Many questions regarding development of applications
I am new to developing database applications for the PocketPC OS. I
have been reading some of the topics on the newsgroups and have formed
questions I hope this group can answer.
I know my clients will be purchasing the Dell Axim X51 handheld which
will be running Windows Mobile 5. I have MS Visual Studio .Net 2003
Professional and would like to use it to develop a "Smart Device
Application" that would collect data to be transferred back and forth
to an MS Access 2003 desktop database program.
My questions are these:
1. Will an application developed with Visual Studio .Net 2003
Professional still run correctly on Windows Mobile 5?
2. Will Windows Mobile 5 still have support for Pocket Access (.cdb)?
3. If Windows Mobile 5 does not have support for Pocket Access (.cdb)
then if I use SQLCE is there a simple way to transfer the data from my
"Smart Device Application" to the MS Access 2003 program on the
desktop. The user of my application will not have SQL Server to
interact with SQLCE.
4. Will/Does the final release of Active Sync 4.x support .cdb files?
Thanks,
TD Tag: Open Bluetooth Headset communication Tag: 102509
UDP on ppc2003
does anyone know how to use winsock control to develop udp application on
PPC2003 ? has any example source code in eVc++?
mf.zhang Tag: Open Bluetooth Headset communication Tag: 102507
How to know if the PPC is online by use a specific function,[c#]
Hello,all!
Now i am developing a network application.I want to know if there is a
function that get the device's status [online/offline].
I am not good at English.Any body understand?
thanks advance! Tag: Open Bluetooth Headset communication Tag: 102504
managed vs native
I am in the process of starting a new application targeting Mobile 5.0.
Creating an managed C# application seems like a nice way to go since it is
primarily a GUI application. However, I am not certain about the support of
certain APIs in an managed application. For example, I would like to use EDB
for data storage but all the information I have found on it is for an
C++/native application; no mention of how to use it in a managed project.
Also, I would need the ability to take in digital signatures done with a
stylus. It would seem simple enough to use DirectDraw for drawing and saving
the result as a image. However, I am not certain of the managed support for
that.
Would it be better to use a native project instead of an managed project? As
you can see, I am pretty new with Mobile development so I would appreciate
any insights. Thanks. Tag: Open Bluetooth Headset communication Tag: 102502
Can I ( how do I ) do the requested PDA programming project?
I have been asked to consider doing a PDA based programming project,
and since this is a new area of development for me I was hoping someone
could tell me if what I am being asked to do is possible etc.
Over all project description:
This is a data capture application, think of it as an ongoing survey.
Every so often ( several time a day ) the PDA needs to 'wake up', play
a sound to notify the user, then ask the user a series of multiple
choice, true/false type questions. Next after a few days the PDA will
be brought to a location for the data to be dumped into a
laptop/desktop
system for data analysis.
This is for a 'medical' research study, the idea is to ask how the
subject is feeling etc so we can see how the treatment is working.
There is of course all kinds of details like data encryption, data
storage etc. but those tasks I feel that I am capable of handling.
My developmen status:
While I have been developing for 25+ years, for the last ~15 years I
have been doing mostly Visual FoxPro ( or it's earlier versions ). I
have recently been learning .Net and C# but I am a
beginner at best with it. OOP and general programming skills I am
advance at, so I will be doing lots of what is the command to 'X'.
Furthermore I have never owned and only play very limitedly with PDAs
of any type.
My Questions:
a) Is my assumption that using 2003 .net ( or even the 2005 beta .net )
will allow me to 'easily' program a pocket PC based PDA
b) Can the application wake up every so often to alert the user? I'm
thinking that for power management reason it would have to power down
for a while. Maybe PDAs can run for a week with out having to shut
down. I expect a weeks is about the time lapse between data dumps.
The again the PDAs will most likely be recharged each nght. Side
question if some other application is running on the PDA ( There should
not be, but lets be prepared ) can this application keep running in the
background and come forward to get it's survey questions answered.
c) Since this application is the only thing that needs to run on this
PDA, what is the least expensive model that I should purchase. ( This
project might need up to 80 PDAs )
d) Should I consider other PDAs and Oss like Palm? Would this result in
significant hardware/software costs reductions.
e) Is there anything obvious that I missed?
Thank you so much for your time.
__________________
Anthony T. Tag: Open Bluetooth Headset communication Tag: 102494
Sending files to a server using GPRS
hi
can any one point me in the right direction. Im looking to develop some
software to send files from smartphone to a server over GPRS
thanks shawrie Tag: Open Bluetooth Headset communication Tag: 102493
Get device unique identifier by assembly?
Hi,
I need to write an app that reads a device's unique identifier.
It seems that Intel XScale processors each do not have a unique processor
ID. However, from Windows Mobiles 5.0, there's a function called
GetDeviceUniqueID. I guess this function is implemented by OEM to read a
custom hardware register made by the OEM.
I need to read this register by assembly. Anyone knows how to do it?
Thanks sincerely,
ARINTEL Tag: Open Bluetooth Headset communication Tag: 102492
Query :- how to run a application from storage card
Sir,
I need your help, i got ur email id from pocketpcdn forums.
Sir i got an application which needs some files while running , can i use
storage card (SD) as a medium to rum the exe on my ppc. i ahve provided all
my files inthe storage card.
what will be the path tot the files i should give if i need to run the
program from storage card.
Regards
Naveen Tag: Open Bluetooth Headset communication Tag: 102477
Ambitious project - comments?
I have about two months of free time coming up and I want to wade into a
programming project I've been thinking about for awhile. Before I say what
I want to do, however, let me say what I have now as background.
I've written an app for my iPAQ 1910's & 1930's that we use here in my
business. It's an OOP Win32 C++ non-MFC app developed with eVC3.0. It
uses ADOCE3.1 to interface with an Access DB (CDB) file. This Access file
transfers to and from my desktop system via ActiveSync 3.8.0. On the
Desktop, I interface with the Access DB (MDB) file via the Microsoft Office
2002 Access program and some VBA code I've written. Also, my desktop
Access file is transferred out to my website where I've written ASP code
that allows users to search my database to see what I have in stock.
All of this works OK. But, there are parts of it that are a pain. For
example, only one copy of my DB can be the 'live' copy at a time. Moving
the 'live' Access DB file to the Desktop causes my desktop's version to
loose its Primary Record Keys and to forget its Relationships. And, as I'm
not the world's best VBA programmer, the tools I've developed on the Desktop
end are a bit rough whereas the stuff I've written on the iPAQ side does
precisely what I want because I've programmed Windows Win32 OOP C++ for
years.
So, this is what I'm thinking:
---------------------------------
(1)
Goal: Replace Access on the PPC side with SQLce.
Assumption: I'll still be able to use ADOCE3.1 to interface with the new
SQLce DB from my current code.
Advantages: I've heard that SQLce is a better tool on the iPAQ.
(2)
Goal: Replace ActiveSync transfers via USB with my own custom
TCP/IP code transfers via 802.11b.
Assumption: None that I know of other than that I'm capable of doing this
(I've done some network programming).
Advantages: With full control over all details of the sync process, I'll be
able to merge DB changes made
on anyone of several PPCs with the desktop DB smoothly.
These syncs will be able to
automatically happen whenever a PPC is within range of
the Desktop's AP. The Desktop version
of the Access DB will stop losing its Primary Record
Keys and forgetting its Relationships because
I'll be updating it record by record in-place rather
than replacing it wholesale with a copy from
the PPC.
(3)
Goal: Cease using the Microsoft Office 2002 Access program and
the VBA tools I've developed to
interface with the DB on the desktop end. Replace
these with a Windows OOP Win32 C++
non-MFC app of my own creation that uses ADO to
interface to the desktop Access DB.
Assumption: None that I know of.
Advantages: This will allow me to interface with the desktop Access file
exactly as I want to.
(4)
Goal: Because I'll be writing a Win32 OOP C++ non-MFC app on the
desktop side, it will be able to
serve both as the sync master coordinator and as my
interface to the desktop version of the DB.
Assumption: None that I know of other than that I'll need to have a good
grip on coding multiple threads
of execution (which I do).
Advantages: A single point of interface on the desktop end customized as I
want.
(5)
Goal: Stay with PPC code development using eVC3.0 rather than
upgrading to later development
environments.
Assumption: That I can do everything I want on the PPC end with my existing
eVC3.0 and ADOCE3.1 tools.
Advantages: I understand this stuff well now and I don't know of anything
in the later development
environments that I really need.
(6)
Goal: Stay with VC++6.0 on the desktop side rather than upgrading
to later development environments.
Assumption: That I can do everything I want on the desktop end using my
existing VC++6.0 tools.
Advantages: I understand this stuff well now and I don't know of anything
in the later development
environments that I really need.
------------------------------------
That's it. There's a lot of parts to this idea and I'm looking for folks
to poke holes in it if they can so I don't have to discover oversights the
hard way later.
Thanks in advance,
Dennis Gallagher
www.woodscreeknursery.com Tag: Open Bluetooth Headset communication Tag: 102476
Final Word.
Hello,
I would like a Final Word on ActiveX support on PPC2003SE. I've been trying
to get a vendorâ??s .NET DLL wrapped into an ActiveX DLL that I can instantiate
when I invoke a webpage from Pocket IE, but Iâ??m running into nothing but
problems.
I can write a simple standalone application in VB.NET that will use the
vendorâ??s DLL just fine. Wrapping it up is kicking my A$$.
OK. Final Word! Does ActiveX work on PPC2003SE pocket IE?
Do we still call it Pocket IE? HTTP_USER_AGENT, on the handheld reports:
Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x320)
Thank You
-Kicked Tag: Open Bluetooth Headset communication Tag: 102470
Questions: WM 5.0 and ActiveSync 4.0: how to control how often it syncs?
With my new Dell Axim X51, ActiveSync 4.0 appears to sync every 5
minutes or so even though the only desktop ActiveSync provider
configured is my own. The ActiveSync Tools => Schedule... menu item is
greyed out in the desktop ActiveSync.
Question: For WM 5.0 and ActiveSync 4.0, is there anyway to
programatically set how often my desktop ActiveSync provider is
automatically initiated by ActiveSync?
Question: Is there anyway to enable the ActiveSync desktop Tools =>
"Schedule..." menu item, and use this same dialog box for my own
desktop ActiveSync provider?
Question: Is there anyway for my code to know when a sync is initiated
automatically versus when the end-user clicks on the desktop ActiveSync
"Sync" button?
Question: Are there any related registry settings for controlling how
often ActiveSync 4.0 syncs for a WM 5.0 device?
Thanks. Tag: Open Bluetooth Headset communication Tag: 102469
Studio visual 5 & pocket PC
I have installed the demo dvd.
I have installed the pocket PC SDK but cannot find any samples.
How do I get .nt 2 onto the pocket pc.
The simple app I have produce gives the error 'require a newer version of
.net'
Any help appreciated
Steve W Tag: Open Bluetooth Headset communication Tag: 102468
Wrong datetime.now? => .NET CF 2 (VB.NET)
Hi
I am using .NET CF 2 with VB.NET (VS 2005 beta 2) and if I am using
datetime.now I get the wrong time!
If it's 10:00 I get 8:00 (Always 2 hours wrong)
It's because I live 1 hour from GMT and we have summer time...
But why doesn't he get the right time?! Why doesn't he read the time that's
on the device?!
Is there any fix for it?
Thanks
Sven Tag: Open Bluetooth Headset communication Tag: 102461
force Exchange-Synchronisation?
Hi
How can I initiate an Exchange-Synchronisation?
If I create a new appointment with .NET it does not automatically start
synchronisation...
Th nx
Sven Tag: Open Bluetooth Headset communication Tag: 102459
CeFindFirstFile, RAPI, and Windows Mobile 5
I have some old code that I use to query files and directories on a
Pocket PC using the RAPI CeFindFirstFile/CeFindNextFile functions.
But, the code no longer works with Windows Mobile 5.0 devices.
The first call to CeFindFirstFile() returns CE_FIND_DATA.
dwFileAttributes = 0x14 (which is FILE_ATTRIBUTE_SYSTEM |
FILE_ATTRIBUTE_DIRECTORY) and CE_FIND_DATA.cFileName = "". The next
call to CeFindNextFile() returns false.
Anybody else having this problem?
Thanks! Tag: Open Bluetooth Headset communication Tag: 102457
XSLT for PPC
Hi Folks,
Related to a question I asked in the Compact Framework group, I need a
mechanism to execute XSLT transforms on the PocketPC 2003 platform. Ideally
this would be something I can build into my own app but I suppose launching
a third party app programmatically would not be out of the question. Any
suggestions? Thanks.
- Doug P. Tag: Open Bluetooth Headset communication Tag: 102456
System Management Get Device ID
Does anyone have a code sample on how to call the GetDeviceUniqueID API using
C#? The only example I can find in the SDK is for C++. Tag: Open Bluetooth Headset communication Tag: 102451
Concurrency violation (new try)
I am building a pocket pc application that requires a datagrid. I am
inserting a new row this way:
private void mInsert_Click(object sender, System.EventArgs e)
{
try
{
DataRow dr = this.ldb.DohvatiDataSet.Tables[tableName].NewRow();
dr.BeginEdit();
for(int i = 0; i <
this.ldb.DohvatiDataSet.Tables[tableName].Columns.Count; i++)
if(!this.ldb.DohvatiDataSet.Tables[tableName].Columns[i].ReadOnly)
dr[i] =
this.ldb.DohvatiDataSet.Tables[tableName].Columns[i].DefaultValue;
if(!this.cbImena.SelectedItem.ToString().Equals("<SVE OSOBE>"))
dr["Osoba"] = this.cbImena.SelectedItem.ToString();
if(!this.cbProjekt.SelectedItem.ToString().Equals("<SVE PROJEKTE>"))
dr["KratProjekt"] = this.cbProjekt.SelectedItem.ToString();
if(!this.cbVrstePosla.SelectedItem.ToString().Equals("<SVE VRSTE
POSLA>"))
dr["KratPosao"] = this.cbVrstePosla.SelectedItem.ToString();
if(this.checkBox1.Checked)
dr["DatPosao"] = this.dtp.Value.ToString();
dr.EndEdit();
this.ldb.DohvatiDataSet.Tables[tableName].Rows.Add(dr);
this.mSave_Click(this, System.EventArgs.Empty); // defined at the bottom
of this method
this.ldb.DohvatiDataSet.Tables[tableName].DefaultView.Sort = "";
this.dataGrid1.CurrentRowIndex =
this.ldb.DohvatiDataSet.Tables[tableName].DefaultView.Count - 1;
this.dataGrid1.ScrollToLeft();
}
catch(System.Data.DBConcurrencyException dbce)
{
MessageBox.Show(dbce.Message.ToString(), "Error", MessageBoxButtons.OK,
MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
}
}
private void mSave_Click(object sender, System.EventArgs e)
{
try
{
Cursor.Current = Cursors.WaitCursor;
((SqlCeDataAdapter)(this.ldb.GetAdapterList[this.ldb.GetTableIndex(tableName
)])).Update(this.ldb.DohvatiDataSet.Tables[tableName].Select(null, null,
DataViewRowState.Deleted));
((SqlCeDataAdapter)(this.ldb.GetAdapterList[this.ldb.GetTableIndex(tableName
)])).Update(this.ldb.DohvatiDataSet.Tables[tableName].Select(null, null,
DataViewRowState.ModifiedCurrent));
((SqlCeDataAdapter)(this.ldb.GetAdapterList[this.ldb.GetTableIndex(tableName
)])).Update(this.ldb.DohvatiDataSet.Tables[tableName].Select(null, null,
DataViewRowState.Added));
this.ldb.DohvatiDataSet.AcceptChanges();
this.dataGrid1.Focus();
Cursor.Current = Cursors.Default;
this.UpdateAgreg();
}
catch(System.Data.DBConcurrencyException dbce)
{
if(Cursor.Current == Cursors.WaitCursor) Cursor.Current =
Cursors.Default;
MessageBox.Show(dbce.Message.ToString(), "Error", MessageBoxButtons.OK,
MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
}
}
I only get a concurrency violation when I insert a new row and change data
in it, that save it. If no new rows are inserted I don't get a concurrency
violation. Please help!
Vladimir O¾ura! Tag: Open Bluetooth Headset communication Tag: 102449
GDI question
i'm currently using embedded visual C++ 4 to develop my application, is that
it is build in with GDI or GDI + ?
If not, what should i download so that i can use GDI/GDI+ ?
Also, is there any good tutorials for that?
Thanks a lot.
Regards,
Paul Tag: Open Bluetooth Headset communication Tag: 102448
configuration issue
I already have Visual Studio 2003 and have created PPC apps. Now, I need to
create a Pocket PC program for a PPC with a 640x480 screen. So I downloaded
the Pocket PC 2003 SDK and the 2003 SE Emulator images, and installed both.
But when I create an app and try to view it in the VGA emulator, it says my
program has been created for an older version of the PPC and will not display
correctly, and it does not. I see only 1/4 of the 640x480 form (although the
emulator does allow me to scroll around the full form). So my basic question
is, "Is it posssbile to create an app with a 640X480 screen that will display
properly, using VS 2003, the PPC 2003 SDK, and the 2003 SE emulator??? If
so, any suggestions on what I might have done wrong in setting this all
up?????
THANKS! Tag: Open Bluetooth Headset communication Tag: 102446
Connecting to SQL server 2000 from a Smart Device with VB.net 2003
I am new to mobile development, and I am having trouble figureing out how to
connect to my SQL server. I use adodb in all of my desktop apps, but I can't
find it's equivalent for a smart device app.
I have data.sqlclient referranced, but no luck building a working connection
string for it though.
I do not want to use server ce or replication, because the devices that are
going to be using the app are never going to leave the facility, and will
always have a wireless connection to the server.
Anyone got any advice on the best drivers to use, and how to connect?
Thanks,
Jerod Tag: Open Bluetooth Headset communication Tag: 102445
How to catch the event of an hardware button on Pocket PC 2003 ?
Hello,
Could someone help me in order to be able catching the event of all the
device hardware buttons (not the windows.Forms.Button) ?
I'm using VS2005 Beta2, vb.net
Thanks a lot Tag: Open Bluetooth Headset communication Tag: 102439
bloody red phone button
Hello all-
Is there perhaps a way to change the default behavior of the red phone
button (on PPC phone editions), or a way to detect when it is pressed if
your app. isn't in focus?? The problem I'm having is that if my app. is
being used, and a phone call comes in, you answer it, then after the
call is done, you press the red phone button to end the call, it hides
all other windows. It does this in any and every case, but it'd be much
more useful to have the last application used be shown, instead of
hiding everything. Is there a way to do this???
Thanks immensely,
kurt Tag: Open Bluetooth Headset communication Tag: 102434
Special charaters are nomore shown.
Hello,
I'm now using Active Sync 4 and Windows mobile 5.
In earlier version the special charaters like the german äöü havn't been a
problem.
Now these characters get lost at shortcut names or the application name.
What has changed? what do I do wrong?
Thanks in advance!
John John Tag: Open Bluetooth Headset communication Tag: 102433
icon for directory by shortcut
Hello,
I try to create an icon for a directory.
The solution seams to be a shortcut in the directory name icon.lnk.
I'm trying it by setting following values in the .INI file.
In a "CEShortcuts" section with a line with a non cero type.
e.g. "icon", 1, ...
and now?
With the hint to use a link of the DestinationDirs section I get a link to
the directory, but not with an icon from my file xyz.dll with index -101.
How can I realize my aim with a directory with my icon?
I'm using Active Sync 4 an Windows mobile 5.
Thanks in advance!
John John Tag: Open Bluetooth Headset communication Tag: 102432
Dialog Size Problem
I am developing a dilaog based application in embedded vc++ 4.0
I am creating a dialog window which is about 1/4 size of screen but it takes
up the whoile screen when I run the program and it loses its title name.
How can I make it take up just a small part of the screen? Tag: Open Bluetooth Headset communication Tag: 102431
can ce dll be used in Windows Mobile 2003?
hi,
i have a CE dll compiled and linked with eVC++ 4.0.
will it work without troubles in Windows Mobile 2003 environment or
need i do some porting?
sanal. Tag: Open Bluetooth Headset communication Tag: 102426
Closing Thread Handle
Hi,
I have a question about closing a thread handle.
I know I should close the thread handle after it terminates.
Sometimes its a little hassle to check if a thread has terminated and then
call
CloseHandle(hThread);
(... Yes, I know. I'm too lazy. :P )
I tried inserting CloseHandle(hThread); at the very end of the thread
procedure.
The program seems to be running fine this way.
But I'm not so sure if this is would be 100% safe.
Does anyone know if doing this is would have any ill effect?
Thanks.
BL Tag: Open Bluetooth Headset communication Tag: 102424
Hi all
How can I open the bluetooth headset communication?