XML over GPRS - Is this a good idea?????
Hi All
I was hoping some one could give me some guidance on the matter of sending
data over GPRS.
I have taken over an application written for Windows mobile 5.0 with VS2005.
It is currently communicating with a web service via GPRS.
The Web service places all the data into objects and then returns it to the
PDA. And the same happens when sending stuff to the Web service from the
PDA.
My concern is the amount of Meta data(xml) that is being sent just to
describe the Data itself.
Is there a better way of doing this? Or do I have to live with it if I want
to use OOP.
Thanks
ink Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77323
prob with context menu on toolbar. Help!
Hi,
Why can't i set the same context menu to more than one
toolbarButton. It throws a "Not supported exception" when i try to do
so. How can i make the same context menu popup, no matter which button
in the toolBar is selected??? Thanks for any help.
- Hari Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77320
Screen Scrolling with Keyboard, cut, copy and past
Hi All
I am new to Windows Mobile Development and I was hoping to get some advice
on the best way to handle Screen size and cut copy and past.
I am developing with VS2005 for Windows Mobile 5.0
I have found an example At:
http://www.codeproject.com/cs/miscctrl/MultiUndoandRedo.asp
What I would like to know is this the only way of doing this or jest the
best way.
Or is there an even better way of handling the scrolling when the Keyboard
comes up and Cut, Copy and Past.
Thanks for your Help
ink Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77318
Receive SMS API's
Hello,
Are there any api's for smartphones which can be used to
receive SMSs, ie it should be able to check if the sms is from a
particular no and if so pass it to the application rather than to the
inbox.
Thanks in advance,
Regards,
Allan Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77315
Force device restart?
Is there a way to programmatically force a device hard restart -- the
same effect that pulling/inserting the battery has? Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77302
RE: Writing text file..CE 5.0
Hi,
I have an application that takes inputs from a barcode scanner that is
running Windows CE 5.0 and it populates a listbox with the readings.
I need to create a text file and write the items in the listbox to it so it
can be uploaded to another program.
Do I create the file on the device or on the computer that is it is
activesync too?
thanks.
JN Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77301
Encrypting and storing data in registry. Examples?
I want to encrypt and store a password in the registry (.Net CF 2.0). I
could use OpenNetCF for both, but does anybody here know some example
code of how to do that? Preferably C# Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77300
optimizing for JIT and generics, possible bug/issue?
We've noticed in our project that adding a reference to a new
Dictionary<> type adds about 600ms to the JIT time of a class.
For example, class A has a private member variable: private
Dictionary<string,CustomClass> _var;
When assembly.CreateInstance() is called for class A, it is 600ms
slower WITH the reference to Dictionary than without.
Is this a known issue, and are there any better workarounds than making
my own typed dictionary class? Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77299
does a toolBarButton with pushButton style not popup contextMenu??
Hi,
I need to have a menuBar with some images, which when selected
should popup a menu. But the toolBar does'nt provide the exact thing
what i require. It does'nt popup the menu when the button style is
pushButton. It works only with dropdown style. But this style also
displays the dropdown arrow. Is there a way that i could let the menu
popup for pushButton style button?
Thanks,
Hari. Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77294
OpenNETCF.Configuration features
Hi,
is there any documentation telling me about
* the Configuration API usage (samples)
* Is a changed config file automatically reloaded
* how to manually reload a config file
* Is there a notification mechanism on changed properties
* The format and possibilities in the config file
* Using a customized config file name
* How it is related to System.Configuration
...
Thanks,
Marcel Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77288
How to deploy code in C# for PocketPC 2003 on CompactFramework.
Hi,
I have made a compact framework application. I have to send this
application to my client so that he can have a look at code. I have to
write a document to instruct him to how run this application on
PocketPC 2003 emulator.
What instruction do I give him. Does he need to open the application
in visual studio to run that or it can be run directly from some
location.
any help on the same is most welcome.
Vidisha. Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77279
Is the Dotfuscator in vs.net 2003, support the net compact framework ?
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C7241B.32B8B070
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
hi,
when im trying to change the code with the Dotfuscator in the vs.net =
2003, to my net compact framework application i get some errors in the =
sqlce ..
i want to know, is the Dotfuscator that in the vs.net 2003 support the =
net compact framwork ?
if not, anyone can recommend about tool (free ?) that convert code in =
the compact framwork.
thanking in advance.
------=_NextPart_000_0006_01C7241B.32B8B070
Content-Type: text/html;
charset="windows-1255"
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=3Dwindows-1255">
<META content=3D"MSHTML 6.00.2900.2995" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD><FONT face=3DArial><FONT size=3D2>
<BODY>
<DIV>
<P>hi,</P>
<P>when im trying to change the code with the Dotfuscator in the vs.net =
2003, to=20
my net compact framework application i get some errors in the sqlce =
..</P>
<P>i want to know, is the Dotfuscator that in the vs.net 2003 =
support the=20
net compact framwork ?</P>
<P>if not, anyone can recommend about tool (free ?) that convert code in =
the=20
compact framwork.</P>
<P>thanking in advance.</P></DIV></BODY></HTML></FONT></FONT>
------=_NextPart_000_0006_01C7241B.32B8B070-- Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77277
Dns.GetHostEntry throws SocketException in WM2005, OK in PPC2003
Using C#, .Net CF 2.0, WM 2005 on Symbol MC9090
IPHostEntry Dns.GetHostEntry (String)
Throws:-
{System.Net.Sockets.SocketException: The system detected an invalid pointer
address in attempting to use a pointer argument in a call
at System.Net.Dns.ResolveInternal()
at System.Net.Dns.GetHostEntry()
The SocketException contains an ErrorCode (0x0000271e) that equates to the
following socket error:-
The system detected an invalid pointer address in attempting to use a
pointer argument of a call. This error occurs if an application passes an
invalid pointer value, or if the length of the buffer is too small. For
instance, if the length of an argument, which is a sockaddr structure, is
smaller than the sizeof(sockaddr).
The same call works on PPC 2003.
Can anyone shed any light on this? Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77274
[ANN] Introducing OpenNETCF Telephony Library 1.0
Introducing OpenNETCF Telephony Library 1.0
OpenNETCF Consulting releases new product for device application developers
Myersville, Maryland - Dec. 19, 2006 - OpenNETCF Consulting, LLC are pleased
to announce the release to general availability of their latest software
library for device application developers. The product, OpenNETCF Telephony
Library 1.0, is a managed code class library allowing developers to use the
Win32 Telephony API (TAPI) within their .NET Compact Framework applications.
The OpenNETCF Telephony Library is compatible with Microsoft® Windows Mobile
5.0 and Microsoft® Windows CE 5.0. For further information regarding
platform compatibility, please email dcs@opennetcf.com.
Evaluation and retail versions of the OpenNETCF Telephony Library are
available from the web page at
http://www.opennetcf.com/cf/products/telephony.ocf.
For more information about OpenNETCF's .NET Compact Framework products and
services, please visit the Compact Framework page at
http://www.opennetcf.com/compactframework.ocf.
About OpenNETCF
Founded in 2001 as OpenNETCF.org, OpenNETCF Consulting is a worldwide leader
in mobile & embedded software, services and solutions that target Microsoft's
.NET platform.
OpenNETCF, Smart Device Framework, Telephony Library are trademarks of
OpenNETCF Consulting, LLC in the United States and/or other countries.
Note to editors: If you are interested in viewing additional information on
OpenNETCF, please visit the OpenNETCF Web page at
http://www.opennetcf.com/aboutus.ocf on OpenNETCF's corporate information
pages. Web links, telephone numbers and titles were correct at time of
publication, but may since have changed. For additional assistance,
journalists and analysts may contact OpenNETCF's Regional Teams or other
appropriate contacts listed at http://www.opennetcf.com/contactus.ocf. Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77273
Howto fill a sql mobile database with a dataset filled with readxml
Hi All,
On the desktop I have multiple SQL server 2005 Express edition tables.
On the server, I use a dataset in combination with writexml to generate an
xml file (dnldata.xml) from a couple of queries
(DnlData.WriteXml("c:\test\Dnldata.xml"))
After it, I transfer dnldata.xml to the pda and use ReadXml to fill a
DataSet.
What is the easiest (best) way to read the dnldata.xml into an SQL MOBILE
2005 database (*.sdf)?
The old fashioned way was using csv files with records, mannually inserted
into the pda database. I want to change that.
The structure of the SQL server 2005 Express edition tables and the SQL
MOBILE 2005 tables on the pda
are exactly the same.
Do I have to parse all the records manually?
Or Can I use Dataset.readxml in combination with other data-objects?
probably this is not the right way.
Any help would be greatly appreciated.
best regards
I tried the following which not seems to work:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim DnlData As New System.Data.DataSet
Using MySqlConnection As New
System.Data.SqlServerCe.SqlCeConnection( _
"Data source=" & "\Storage Card\Ztest\Mydb.sdf" & "; " & _
"SSCE:Database Password=xxx; " & _
"SSCE:Encrypt Database=True")
Using MySqlCeDataAdapter As New
System.Data.SqlServerCe.SqlCeDataAdapter("Select * from klant",
MySqlConnection)
Dim MySqlCeCommandBuilder As New
System.Data.SqlServerCe.SqlCeCommandBuilder(MySqlCeDataAdapter)
MySqlConnection.Open()
DnlData.ReadXml("\Storage Card\Ztest\Dnldata.xml")
MySqlCeDataAdapter.InsertCommand = MySqlCeCommandBuilder.GetInsertCommand
MySqlCeDataAdapter.UpdateCommand =
MySqlCeCommandBuilder.GetUpdateCommand
MySqlCeDataAdapter.DeleteCommand =
MySqlCeCommandBuilder.GetDeleteCommand
' MySqlCeDataAdapter.Update(DnlData)
'
End Using
End Using
End Sub Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77271
PPC Synchronization
I need to sync my pocket pc to a server. I'm thinking of using
"funambol." Has anyone tried using it?
And one more thing, if I'm going to synchronize PPC to a server, may it
be through funambol or active sync, will my keys and ID's change in the
server? And if ever it would change, how would I get or retrieve the
mappings of the ID's of items (such as tasks, calendars,account,
etc...)? I need it to make the my PPC application consistent and
working in the server.
Thanks! Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77270
Exporting images to XML
I'm writing an application that holds a signature image in a SQLCE
database. I need to export this image to an XML file. I have tried this (in
C#) with DataSet.WriteXML(filename) and it works fine; the resulting image
seems to be compressed (a little under half the original size) and is
human-readable (no weird unprintable characters). However, I am parsing all
the records and exporting only the fields I need.
I have two questions:
1) Is there a way to tell WriteXML() which fields I want to export?
2) How can I compress/write the image data the same way as WriteXML()?
Thanks,
Kevin Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77267
What am i doing wrong or is it a bug?
I created the following code:
string postName = @"dutchnomad";
string postPword = @"dotnet";
FileStream fs = new
FileStream(selectImageOpenFileDialog.FileName, FileMode.Open);
BinaryReader br = new BinaryReader(fs);
byte[] wavFile =
br.ReadBytes(Convert.ToInt32(fs.Length));
string aString = System.Convert.ToBase64String(wavFile,
0, wavFile.Length);
HttpWebRequest myHttpWebRequest =
(HttpWebRequest)WebRequest.Create(myUrl);
myHttpWebRequest.Method = "POST";
myHttpWebRequest.AllowWriteStreamBuffering = true;
string postData = @"postName=" + postName;
postData += (@"&postPword=" + postPword);
//postData += ("&myimg=" + aString);
postData += ("&imgText=" + DateTime.Now.ToString());
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] byte1 = encoding.GetBytes(postData);
// Set the content type of the data being posted.
myHttpWebRequest.ContentType =
"application/x-www-form-urlencoded";
// Set the content length of the string being posted.
myHttpWebRequest.ContentLength = byte1.Length;
Stream newStream = myHttpWebRequest.GetRequestStream();
newStream.Write(byte1, 0, byte1.Length);
WebResponse result = myHttpWebRequest.GetResponse();
Stream receiveStream = result.GetResponseStream();
This code was created for Windows mobile 5. when I run the application
I get an exception at the moment when
WebResponse result = myHttpWebRequest.GetResponse();
gets executed:
An unhandled exception of type 'System.Net.ProtocolViolationException'
occurred in System.dll
No additional informtation available for the exception
Any idea what is wrong here? Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77263
Keep the light on
As discussed here:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_frm/thread/8c1207578fa7db7c/de0dcfdfd113ab3b?#de0dcfdfd113ab3b
I am able to prevent my Windows Mobile device from going into suspend
mode, but the light goes off. Is there a way to keep the light on
indefinitely? Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77259
z-order with DX and CF
Hi,
I have the following problem with DirectX (CF) that I'm still trying to
figure out...
The thing is that I need to draw a lot of (dynamic) sprites, but I was
used to (in other languages) the fact that the latter sprites you draw
are placed in front of the others.. This is not the case of DXCF, since
(I'm guessing for optimization reasons) the order in which you draw the
sprites is not related to the order in which they will appear in the
screen...
So, is there someway to change the z-index ?(meaning the index of a
sprite in the z-buffer)...any thoughts/walkarounds?? Or maybe a way of
forcing that the order you draw the sprites is the same that the order
they will appear?? (even if this implies a performance drop down)
Thanks you very much in advance.
Miguel. Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77253
DataGrid from bindingSource collumn width
Hi,
I can't make this style visible. I'm new in coding but I readed every
post about that and have still problem.
My code looks like this:
DataGridTableStyle myGridStyle = new DataGridTableStyle();
myGridStyle.MappingName = "lineBindingSource";
DataGridTextBoxColumn idColumn = new DataGridTextBoxColumn();
idColumn.MappingName = "ID";
idColumn.HeaderText = "Test";
idColumn.Width = 240;
myGridStyle.GridColumnStyles.Add(idColumn);
dataGrid1.TableStyles.Add(myGridStyle);
Any idea what is wrong? Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77250
Help?
I've posted something very similar to this in the SQLServer CE area but but
just am not getting any response over there so I figured I'd tap the brain
trust over here!
Recently ported my VB.NET PPC app to VS2005. Also replaced my database (SQL
Server 2000) with the SQL Server 2005. I knew I'd probably have to install
a new server agent for the SQLserver2005 database to still be able to RDA
Pull from it.
Welp I tried and did not succeed in pulling using the new syntax (really I
just changed the agent dll name that was in the newly created IIS virtual
directory SSCE30.) Did any of the calling code change?
With rda
.InternetLogin = String.Empty
.InternetPassword = String.Empty
.InternetUrl = _strInternetURL
.LocalConnectionString = g_strlocalDataSource
.Pull("Users", strSQL, _strRemoteConnect,
System.Data.SqlServerCe.RdaTrackOption.TrackingOff)
End With
Anyway I went back to the old SSCE20 pointer and THAT actually works with
the new SQLServer 2005 database!!
Weird eh?
My general question is this: Apparently in debug run mode via ActiveSync,
it IS possible to use the old agent DLL sscesa20.dll to Pull data from a
SQLServer 2005 database. I've not been able to do this from the ethernet
cradled device running the same code. If my app might be paired with either
Windows 2000 SP3 OR SQLServer 2005, must I right different code to branch to
the appropriate agent? or is there an agent that I should use that is
compatible backwardly?
TIA
Harry Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77244
coredll winCE exception occurs randomly while using the openNetCF connectionManager
hi there,
i use the opennetcf connection manager class to make a connection to "the
internet" with whatever is available on the pda (wifi, activesync, gprs).
Randomly and i cant figure out when exactly, when i call the code, it
crashes my program and returns a windows error, and this is the error
details:
Error:
---------------------------
EvntType:WinCE50lbException
ModName:coredll.dll
ModVer: 5.1.0.0
ModStamp: d600124f
Offset: 00053694
---------------------------
My function to connect to the internet is as follows:
---------------------------
Private ConnMgr As New ConnectionManager
Private DIF As DestinationInfoCollection
Public Sub Connect(ByVal doconnect As Boolean,)
ConnMgr = New OpenNETCF.NetConnectionManager()
AddHandler ConnMgr.OnConnect, AddressOf Connected
AddHandler ConnMgr.OnConnectionFailed, AddressOf ConnectFailed
AddHandler ConnMgr.OnConnectionStateChanged, AddressOf
ConnectionWaiting
AddHandler ConnMgr.OnDisconnect, AddressOf ConnectionDisconnect
DIF = ConnMgr.EnumDestinations()
is_connected = False
If ConnMgr.Status.ToString() <> "Connected" Then
Try
For Each di As DestinationInfo In DIF
If Trim(LCase(di.description)) = Trim(LCase("the
internet")) Then
If doconnect = True Then
ConnMgr.Connect(di.guid, True,
ConnectionMode.Asynchronous)
Exit Sub
Else
Try
ConnMgr.Disconnect()
Catch ex1 As AdapterException
'error occured in opennetCF.
Catch ex As Exception
'other error occured.
Finally
ConnMgr = Nothing
End Try
End If
End If
Next di
Catch ex As Exception
'error occured.
End Try
End If
End Sub
---------------------------
any advice/help appreciated.
thanks,
Paul Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77239
Emulator Shared Folder problem
Hi,
I'm using the PPC 2003 emulator with C#2005, Sql Mobile 2005 to test my
application. I have a storage card emulated which is part of my c:\ drive
and has a sql ce database on it.
When I try to insert records, the record is inserted (Affected records : 1)
and removed right away. No errormessage is returned. Everything works fine
when I move the database to the emulator instead of the storage card.
Does anybody know why this happens ? I found someone that has the same
problem, so I'm sure it has something to do with the shared folder on the
emulator, but no solution or explanation.
Greetings
Xavier Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77238
PsionTeklogix emulator in VS2005
Hi,
I've installed CF2.0 SP1 patch and latest available SDK from
PsionTeklogix (1.09), but for some strange reason I still cannot "see"
the Teklogix emulators in Visual Studio 2005, although I do see Pocket
2003 and Windows CE5.0 emulators. In VS2003 I can see both, but we want
to develop for CF2.0 on CE5.0 (and CE4.2).
Anyone any tips or hints on what I'm missing ?
Thanks in advance for your time.
Joris Spriet
MESware nv - Belgium Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77236
get the forms objects within my project ??
hi there,
can someone give me small example or point me in the right direction to loop
through all the forms objects in my project?
thanks,
Paul. Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77235
Help for Marshalling
Below is the unmanaged code written with evc++
-------------------------------------------------------------------------------------------------------------------------------
#include <windows.h>
#include <windowsx.h>
#include <aygshell.h>
#include <msgqueue.h>
#include <pnp.h>
#include <diskio.h>
#include <Pkfuncs.h>
#include <sdcardddk.h>
extern "C" _declspec(dllexport) void WINAPI OnRawRead(DWORD
memory_location,unsigned char* lpOutBuf)
{
// TODO: Add your control notification handler code here
HANDLE hDevice
=CreateFile(L"DSK1:",GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
SG_REQ lpInBuf;
DWORD dwDummy = 3;
//unsigned char *lpOutBuf;
lpOutBuf = (unsigned char *)malloc(512);
memset(lpOutBuf, 0x00, 512); // only to see the changes
lpInBuf.sr_start = memory_location;//0xFF;//0x0018555; //
physical sector to read
lpInBuf.sr_num_sec = 1; // read 1 sector
lpInBuf.sr_num_sg = 1;
lpInBuf.sr_status = 0; //ERROR_SUCCESS;
lpInBuf.sr_callback =NULL;// callbackDiskRead;
lpInBuf.sr_sglist[0].sb_buf = ((LPBYTE)
MapPtrToProcess(lpOutBuf,GetCurrentProcess()));
lpInBuf.sr_sglist[0].sb_len = 512 * lpInBuf.sr_num_sec;
BOOL bRet=DeviceIoControl(hDevice, // Handle to the device
IOCTL_DISK_READ, // IOCTL for the operation
&lpInBuf, // LP to a buffer (input data)
sizeof(lpInBuf), // Size in Bytes of input data
buffer
lpOutBuf, // LP to a buffer for output data
sizeof(lpOutBuf), // Size in Bytes of output buffer
&dwDummy, // LP to variable (size of data in out
buffer)
NULL);
CloseHandle(hDevice);
}
extern "C" _declspec(dllexport) void WINAPI OnRawWrite(DWORD
memory_location,unsigned char* pBuffer)
{
HANDLE hDevice1
=CreateFile(L"DSK1:",GENERIC_WRITE,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
SG_REQ lpInBuf1;
DWORD dwDummy1 = 3;
char *lpOutBuf1;
lpOutBuf1 = (char *)malloc(512);
memset(lpOutBuf1, 0x00, 512); // only to see the changes
strcpy(( char*)lpOutBuf1,( char *)pBuffer);
lpInBuf1.sr_start = memory_location; //0x0018555; // physical
sector
lpInBuf1.sr_num_sec = 1; // number of sectors sector
lpInBuf1.sr_num_sg = 1;
lpInBuf1.sr_status = 0; //ERROR_SUCCESS;
lpInBuf1.sr_callback =NULL;// callbackDiskRead;
lpInBuf1.sr_sglist[0].sb_buf = ((LPBYTE)
MapPtrToProcess(lpOutBuf1,GetCurrentProcess()));
lpInBuf1.sr_sglist[0].sb_len = 512 * lpInBuf1.sr_num_sec;
BOOL bRet=DeviceIoControl(hDevice1, // Handle to the device
IOCTL_DISK_WRITE, // IOCTL for the operation
&lpInBuf1, // LP to a buffer (input data)
sizeof(lpInBuf1), // Size in Bytes of input data
buffer
lpOutBuf1, // LP to a buffer for output data
sizeof(lpOutBuf1), // Size in Bytes of output buffer
&dwDummy1, // LP to variable (size of data in out
buffer)
NULL);
CloseHandle(hDevice1);
}
-------------------------------------------------------------------------------------------------------------------------------
The functions do some basic rawread and rawwrite on an SD card.
Now how can i use this code in the c# (managed code). Specifically i
need to know how to marshal "char *".
I did try out with the following code (the dll created by evc++ was
SD_card_dll.dll. But it doesnt seam to work.
[DllImport("SD_card_dll.dll")]
public static extern void OnRawRead(int memory_location,ref
IntPtr lpOutBuf);
[DllImport("SD_card_dll.dll")]
public static extern void OnRawWrite(int memory_location,ref
IntPtr lpBuffer);
}
Thanks and Regards,
Rithesh
Student
IIIT, Bangalore Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77234
Cannot overwrite file open with FileShare.ReadWrite
Create a simple test app:
private void Form1_Load(object sender, EventArgs e)
{
FileStream fs = new FileStream(@"\sd card\test.txt",
FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite);
}
Try to copy another test.txt file over \sd card\test.txt and get error
message (file being used by another process).
Any ideas?
Thanks Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77233
CF 2.0 install problem on Handheld device
Hi can anyone please help me out,
i need to install the latest CF2.0 cab files on the Handheld unit, i dont
know where to get those damn cab files, i've been banging my head against the
wall, no success, i had my Symbol 90xx-g working ok 2 months ago, i unplugged
the unit and the stuff went away and today i'm trying to re-install it and
the compact framework seems not to be installing on this unit i try to repair
the framework installer on the computer, it asks me if i want to install it
on the damn handheld i say yes, i pick the applications folder, and then when
i go into that folder the cab files are not there... god why is this
sooooooooooo hard? Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77228
question re: Inputbox function
hi there,
im using the inputbox function for the user to enter a starting number, but
the WM5 keyboard covers the OK and Cancel buttons and the "Enter" button
doesnt work either so i have to hide the SIP and press the OK button
manually.
Is there any workaround this to make it more userfriendly without having to
create a custom form to do this?
thanks,
Paul Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77227
A good place to start?
Hi all,
Is there a good website someone knows of from which I can download
complete CF applications to run/explore and study?
Thanks!
Steve Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77226
Selecting a particular .NET framework version
Hi,
I just started developing applications on the .Net Compact Framework.
I've got .NET 1.1 and 2.0 installed on my machine along with VS 2005.
However, each time I deploy, it deploys it as a .NET 2.0 application.
How can I programmatically check and change the version of the framework
to use on the device. Basically I want to use v1.1. Any help would be
appreciated.
Thanks,
Steve Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77221
Selecting a particular framework
Hi,
I just started developing applications on the .Net Compact Framework.
I've got .NET 1.1 and 2.0 installed on my machine along with VS 2005.
However, each time I deploy, it deploys it as a .NET 2.0 application.
How can I programmatically check and change the version of the framework
to use on the device. Basically I want to use v1.1. Any help would be
appreciated.
Thanks,
Steve Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77220
problem manually adding items to a dropdown list
hi there,
im using a datatable to fill a combo box but when i try "dt.rows.add(new
object(){"",""}) all the items in the combo box say "system.data.datarow[]"
instead of their values.
How can i populate a combo box manually and assign the string and value to
how i want?
thanks,
Paul Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77215
today screen example for visual studio 2005??
Hi there,
Can anyone provide me with some example code/project for adding or creating
a custom today screen item using VS2005 (C++ and vb/c#)?
i've seen the one on MSDN but its for VS2003 and the C++ project is done for
eVC.
thanks,
Paul Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77210
determine if pocket pc 2003 device has been disconnected from the network
I currently have an app running on a pocket pc 2003 that connects to a
webservice to update information. The device is using gprs for
interconnectivity. In one particular module, data is sent to the server and
waits on a feedback from the server. However, sometimes the gprs service is
dropped and then the device hangs waiting on a response. The update is done
in a try catch block but the device apparently gets no error indicating that
the signal has been lost.
How can I prevent the device from freezing when the signal is dropped? Is
there a timeout setting I can set within my code that I can check to see if
a response has failed to come in within that time? If so, how do I do this?
I am using vb.net 2003.
Regards Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77208
determine if a pocket pc device has been disconnected from the network
I currently have an app running on a pocket pc 2003 that connects to a
webservice to update information. The device is using gprs for
interconnectivity. In one particular module, data is sent to the server and
waits on a feedback from the server. However, sometimes the gprs service is
dropped and then the device hangs waiting on a response. The update is done
in a try catch block but the device apparently gets no error indicating that
the signal has been lost.
How can I prevent the device from freezing when the signal is dropped? Is
there a timeout setting I can set within my code that I can check to see if
a response has failed to come in within that time? If so, how do I do this?
I am using vb.net 2003.
Regards Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77207
Predefined preprocessor for C#?
Hi,
are there any predefined preprocessor settings during compilation
of C# code like
CF1
CF2
DOTNET1
DOTNET2
WINCE42
which i can use in C# as
#if CF2
... using callback function pointer
#elif CF1
Uuuh ooh (Windows messages?)
#elif DOTNET2
... using UnmanagedFunctionPointer
#elif DOTNET1
... whatever may work here
#endif
thanks
Marcel Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77205
Wait Cursor
The Wait Cursor is not visible in one of my devices
Can I change it in the settings somewhere
Thank you,
Samuel Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77198
C# IntPtr with moved memory location, how to apply 'fixed'?
Hi,
i have an unmanaged C dll and i call a function from C#
which returns a pointer on a struct inside the C dll:
// C# code:
//member variable
IntPtr intPtr;
someMethod() {
intPtr = getStruct(); // calls C dll
}
when i later use the intPtr (passing it to C dll) it seems to point to another
memory location.
I have tried something like
fixed (void *p = intPtr.ToPointer()) {
...
}
but this does not compile:
"You cannot use the fixed statement to take the address of an already fixed expression"
How can i fix my memory location?
Thanks
Marcel Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77196
How to open an email message
How can I open an email message?
I have tried using MessagingApplication.DisplayMessage() but it seems
like nothing is happening even though I'm getting the right ItemId.
Thanks! Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77188
MessageBox .NET Compact Framework version 1.1
I want to associate mobile device ENTER key to "Yes" button and ESC key to
"No" button in a MessageBox with YesNo buttons. Can somebody provide a sample
code on how to do it?
Thanks, Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77185
RDA Pull SQL Server versions
I've posted something very similar to this in the SQLServer CE area but but
just am not getting any response over there so I figured I'd tap the brain
trust over here!
Recently ported my VB.NET PPC app to VS2005. Also replaced my database (SQL
Server 2000) with the SQL Server 2005. I knew I'd probably have to install
a new server agent for the SQLserver2005 database to still be able to RDA
Pull from it.
Welp I tried and did not succeed in pulling using the new syntax (really I
just changed the agent dll name that was in the newly created IIS virtual
directory SSCE30.) Did any of the calling code change?
With rda
.InternetLogin = String.Empty
.InternetPassword = String.Empty
.InternetUrl = _strInternetURL
.LocalConnectionString = g_strlocalDataSource
.Pull("Users", strSQL, _strRemoteConnect,
System.Data.SqlServerCe.RdaTrackOption.TrackingOff)
End With
Anyway I went back to the old SSCE20 pointer and THAT actually works with
the new SQLServer 2005 database!!
Weird eh?
My general question is this: Apparently in debug run mode via ActiveSync,
it IS possible to use the old agent DLL sscesa20.dll to Pull data from a
SQLServer 2005 database. I've not been able to do this from the ethernet
cradled device running the same code. If my app might be paired with either
Windows 2000 SP3 OR SQLServer 2005, must I right different code to branch to
the appropriate agent? or is there an agent that I should use that is
compatible backwardly?
TIA
Harry Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77183
File.Copy() crashes with very large files
When I try to copy a very large file (>8mb) using File.Copy() I get the
following error (may contain spelling errors, I typed it over):
=============================
OutOfMemoryException
IOException
at System.IO.__Errot.WinIOError()
at System.IO.File.InternalCopy()
=============================
How can I prevent those exceptions? What is sane to do? First check the
file size before copying? But what would be the maximum possible size?
I'm using:
WM5 PPC
.Net CF 2.0 Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77177
Prevent light-off/key-lock/suspend/standby
My application has to upload quite some data, which takes a long time.
In the meantime the device goes into 'suspend' mode (at least the light
turns off and the keypad gets locked). The side-effect is that the
network connection is broken as well (at least the WiFi connection).
How to prevent 'suspend' can be found here:
http://msdn2.microsoft.com/en-us/library/z4k4wb9k(VS.80).aspx
But that didn't solve my problem. How can I prevent the screen from
going black and the keys from becoming locked? Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77176
KeyPreview?
Hi,
We are developing a WinCE app for PocketPC 2003 (.net 2).
I am using KeyPreview = True in my forms to be able catch some keys and do
special processing in the forms (like shortcuts).
We have a main menu form that uses those shortcuts to call other forms. If
we have keypreview = true in the children forms when they are activated the
KeyUp event is called in the form (like the key was pressed for them, ie:
like pressing the key twice).
Any ideas?
Thanks... José Araujo Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77169
CE5.0 poor Sql performance
Hi to all,
i have a CE5.0 device with CF 2.01 and SQL Mobile 5.0 (ce 3.0).
The SDF is located on a integrated Flash Fx disk and the initial size
is 57kb
I use a TableAdapters & XML typed dataset to queryng my database.
The insert time of 1 record in 1 table is 1/2 seconds !!!!
The same application, same database on a CE4.2 device with a Diskonchip
integrated device the insert time of 1 record in 1 table is 0.04
seconds !!!
Why this ?
Thanx in advance! Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77166
CE 5.0 Video and Animation
I've searched this and other groups and haven't come up with an
acceptable solution.
We need to be able to display animated gifs and video (avi,wmv,mov...
any single format will be fine) within a control on a form.
We have Windows CE 5.0 platform with windows media player 9. It is not
pocket pc or windows mobile.
1. For the gifs, I've looked at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/animationcontrol.asp
and don't want to have to convert all of our gifs to this storyboard
format. Actually I don't know of a program that will do this for me.
Has anyone found a solution for this?
2. For the video, I understand that for WMP 10, I could build an
activex wrapper and use the activex version of WMP, but we currently do
not have WMP 10 available and I'm not sure if our supplier would be
able to add it to our devices.
Has anyone found/developed a non-wmp solution for diplaying video
within the compactframework? or are there other 3rd party solutions
available that I'm not finding?
Thanks, Tag: BUG? How send params in WebMethod from PocketPC? Tag: 77165
BUG? How send params (DataSet or string) in WebMethod from PocketPC?