Closing a serial port
Hi.
I have a project on which I use SPP.
I open a serial port that is actually a BT serial port.
Since moving to standby mode kill the connection, I have to reinitiate it by
closing and reopening the port.
All this is quite messy since it take ages to detect that comm was lost,
close the port and reopen it.
(Not to talk about pairing loss that occur from time to time, but this is
another topic...).
My question is, is there a way to make the close port faster?
It takes about 14 seconds to finish...
I use
[DllImport ("coredll.dll")]
private static extern int CloseHandle(int hObject);
To close it.
Am I doing anything wrong?
Should I flush first?
Kill my object and recreate it?
Thank you very much.
Empi Tag: spam post deleted Tag: 89352
Today - "Calendar" and "Contacts" button replace possible?
Hello,
Where are this buttons "calendar" "contacts" from the today screen stored? I
want to get the current options for these buttons and backup this, because
then I would like to add my own button assignment to my application.
If I remove my application it should replace the buttons back to old values...
Hope this is possible
thx
juvi Tag: spam post deleted Tag: 89351
where could i find the help document about mscomm in vb6.0?
Where could I find the help document or technology manual about how to use
mscomm in vb6.0, in the website of microsoft or anywhere else? I'm eager for
that!(if in the website ,i wonder the exact url) Tag: spam post deleted Tag: 89344
SqlCE Debugging/Troubleshooting
Hi all,
I'm having an issue when executing an RDA pull and then creating a
secondary key from certain situations. Does anybody know of a good
tool that might help me track down this issue?
Pocket PC 2003 SE
C# Compact Framework 2.0
SQL Server 2005 CE
The issue occurs after an RDA pull does not finish successfully. One
way I get this to happen is if the device is rebooted in the middle of
the RDA pull. The next time the program is ran the RDA pull finishes
successfully, but then the program crashes when I alter the table to
add a secondary key. The crash is uncatchable neither a
catch(Exception) or generic catch seems to do any good. The weird
thing is that if I change from applying a secondary key to any kind of
data modifying sql statement the program still silently blows up. It
doesn't even matter if I use the same table that was being pulled!!!
Thanks in advance,
Jerod Tag: spam post deleted Tag: 89342
DATK and Windows CE 5.0
We are using a Symbol device running Windows CE 5.0. We would like find
automated functional test tool that can run on the device.
I have been reading about DATK and have installed the Platform Builder for
Microsoft Windows CE 5.0 that has the CETK so I could use the DATK however
the tool is not available in the Help or under the Tools dropdown. Per the
setup instruction online, the MtkKit directory is needed to install, however
that is not found.
Is the DATK available for Windows CE 5.0?
If so, does any know how to get it install? Tag: spam post deleted Tag: 89338
SQL Mobile 2005 and VS 2005
Hi, i´ve installed on my PC VS 2005, SDK SQL mobile 2005 and SDK SQL Compact
Edition. My problem is that when i create a new db from VS 2005 (Data Source
Toolbox) i´ve only the Sql Compact Edition option, i haven´t the SQL 2005
Mobile Edition...
I need to reinstall anything ?
Thanks a lot. Tag: spam post deleted Tag: 89329
how to control serial port of client in asp.net
please help me! I come across a problem.
Now I develop a finger print management system which is based on B/S.When
users click a button in the web pages, a device connected to the COM1 serial
port of the client machine starts to work.
Now I wrote the code which is in charge of serial communication in the
.aspx.cx pages, but then I found that when uses click the button, it is the
server's serial port that starts to work,not the clients!!
who can tell me how I could control the serial port communication in client
through asp.net?
I am very nervous about it now!
Thank you very much!!! Tag: spam post deleted Tag: 89328
ANN: Smart Device Development Chat, July 16.
The next Smart Device Development Chat will take place on MSDN at 10am
PST on Wednesday, July 16.
Please join experts from the Windows Mobile, Windows CE, SQL Server CE
and .NET Compact Framework communities in a chat around application
development for smart devices. These chats are a great opportunity to
have your questions answered by experts from around the world.
Add to Calendar
--
Neil Cowburn MVP
Principal Partner
OpenNETCF Consulting Tag: spam post deleted Tag: 89326
The SCAN_SetReaderParams Error occured when using SMDK (Symbol
hi experts,
We are using the Symbol MC9090G scanners, and use the symbol SMDK 1.5
for .NET to develop the WinCE form application, the tools we are using
is VS2005 professional and C#.
We are using Symbol.Barcode namespace class to read barcode and do
some logic etc. the code just like:
Symbol.Barcode.Reader _MyReader = new Reader();
...
_myReader.Actions.Enable();
...
_myReader.readNotify += (Some EventHanlder)
...
_myreader.Actions.Read();
the code above is very similar with the SMDK 1.5 sample
CS_ScanSample1. all is ok on one scanner, but, on the other scanner
it always prompt the error:
"Error
<AppName>
OperationFailureException
SCAN_SetReaderParams
At
Symbol.Barcode.ReaderParams.SetReaderParams()
At Symbol.Barcode.Actions.Read()
At <AppName>.sunWMSCycleCountDirectives.selScanLocation()
At System.Windows.Forms.Control.OnGotFocus()
At System.Windows.Forms.Control.WnProc()
At System.Windows.Forms.Control_InternalWnProc()
At Microsoft.AGL.Forms.WL.SetFocus()
At System.Windows.Forms.Control.Focus()
At <AppName>.sunWSCycleCountDirectives.selAsile_Modified()
At System.Windows.Forms.ListControl.OnSelectedValueChanged()
At System.Windows.forms.ListControl.OnSelectedIndexChanged()
At System.Windows.Forms.ComboBox.onSelectedIndexChanged() "
I don't know why this come up. there is some differences between two
scanners.
the good one 's OS Version: 05.01.0476, OEM name: SYMBOL MC9090G, OEM
Version: 01.35.0002, IPL version:01.43.441; and other one's OS
version: 05.00.000 , OEM Version:01.20.0000, IPL Version:01.42.440;
I'm not sure if this system little difference make it.
Any help is highly appreciated!! and sorry for some rusty english.
Thanks,
Andy Tag: spam post deleted Tag: 89325
WPF for .net compact framework
Hi Everyone,
Does someone knows if microsoft is going to implement WPF in the .net
compact framework in a near future ? If a partial implementation is
comming what's going to be cut off ?
Thanks in advance.
Marcos Tag: spam post deleted Tag: 89322
Calling stored procedures
I must be missing something simple, but being new to .Net I wouldn't
be surprised. I'm using CF 2.0. I keep getting error 66 invalid syntax
near "mrs..." when the ExecuteNonQuery fires. I've tried "dbo." in
front of the sproc name also.
Using conSql As New SqlConnection(strConnString)
Using sqlUpdateOrder As New
SqlCommand("mrs_update_order", conSql)
sqlUpdateOrder.Parameters.AddWithValue("@char_user", strUsername)
sqlUpdateOrder.Parameters.AddWithValue("@char_order",
lstOrders.SelectedItem.ToString)
Try
conSql.Open()
Dim intCnt As Integer =
sqlUpdateOrder.ExecuteNonQuery()
If intCnt = 0 Then lblStatus.Text = "This
order was already accepted by someone else."
Catch errSql As SqlException
DisplaySQLErrors(errSql)
Finally
conSql.Close()
End Try
End Using
End Using
I had been using the actual SQL command (see sproc code below) that
was made with the above 2 parameter values, which worked just fine,
and then just started moving them to stored procedures. This was the
first one and I haven't had any success yet.
The sproc is very simple:
procedure [dbo].[mrs_update_order]
(
@char_user varchar(50),
@char_order varchar(815)
)
as
begin
UPDATE rawmaterial
SET status = 'A', acceptdate = getdate(), acceptedby = @char_user
WHERE status = 'O' AND orderdetail = @char_order
end
Do I HAVE to use an adapter when using parameters or something? Tag: spam post deleted Tag: 89316
Detect device Powered off
Hi folks,
As you probably know you can configure a device settings to automatically
Turn off after a period of inactivity. Is there anyway we can monitor within
an application for this change in state? I've been having a look at the
SystemState property in WindowsMobile.Status, but cant see any SystemProperty
which monitors for changes in this state?
Any ideas?
Thanks again,
David Tag: spam post deleted Tag: 89314
Serialport issue?
Hi,
VS2008, .net3.5
I have this simple test application running on my iPaq to test reading
serial data from a bluetooth device.
My bluetooth device sends about 7 bytes pr 22ms continously. The bluetooth
device is some in-house electronics, and it should be ok as it has been used
and tested for several years:)
After every Serialport.Open() it takes about 10s !!!! before the first
SerialPort_DataReceived event is fired. The first time the event is fired, I
*always* get 1694 bytes?? After this the event is fired like expected: about
1 time for every 7 bytes (ex. @0A3C + CRLF)
Can anyone advice on how to prevent, or at least reduce, the 10 sec delay
before the first SerialPort_DataReceived ???
My simple test program uses one SerialPort class with settings :BaudRate
9600, DataBits 8, Handshake None, Parity None, StopBits One, ReadBufferSize
4096
string InData;
public Form1()
{
InitializeComponent();
}
private void pbOpen_Click(object sender, EventArgs e)
{
serialPort1.PortName = "COM6";
serialPort1.Open();
}
private void pbClose_Click(object sender, EventArgs e)
{
serialPort1.Close();
}
public delegate void InvokeDelegate();
public void InvokeMethod()
{
int aLen = InData.Length;
listBox1.Items.Add(aLen.ToString() + " : " + InData);
}
private void serialPort1_DataReceived(object sender,
System.IO.Ports.SerialDataReceivedEventArgs e)
{
InData = serialPort1.ReadExisting();
listBox1.BeginInvoke(new InvokeDelegate(InvokeMethod));
}
private void button1_Click(object sender, EventArgs e)
{
serialPort1.WriteLine(textBox1.Text);
}
private void Form1_Closing(object sender, CancelEventArgs e)
{
if (serialPort1.IsOpen)
serialPort1.Close();
}
Thanks in advance,
Leo Tag: spam post deleted Tag: 89313
Remote Performance Monitor - Vista and Studio 2005
Remote Performance Monitor won't see my device...
I'm running Vista and WMDC sees my device (BitsyXb from Eurotech connected via USB). Visual Studio also communicates quite nicely with it.
However RPM won't list my device.
Any thoughts on getting RPM to see my device? Tag: spam post deleted Tag: 89303
Serialport example?
Hi,
Using VS2008 & .Net 3.5
I'm trying to find a simple example of how to use the SerialPort class. Mabe
I'm blind :) but googling didn't help me much.
Would anyone be kind enough to share a link to some SerialPort sample code,
if such exist?
Thanks,
Leo Tag: spam post deleted Tag: 89299
cut & paste (difference between PPC2002 and WM5 ?)
Hello,
I have a question about the cut & paste functionality. We have created a
software with VS2003 and CF1 for PPC2002. This software is also running on a
newer hardware (WM5). Only one issue is irritating for me:
On the PPC2002 all text boxes can be copied by cut & paste functionality.
Just hold the pen (blue circle comes) and select copy from the PopUpMenue. I
have not coded this in the software!
On the WM5 device this is not working any more. Of course the software runs
well, but this function was gone. No change in the sourcecode!
Is this a difference between PPC2002 and WM5? Or can the vendor of the
hardware define this behavior?
old device CF-P1 (Panasonic), new device Archer (Juniper Systems)
Is there anybody who knows something about this issue?
Thanks for your answers.
Christof Konstantinopoulos
(Dortmund, Germany) Tag: spam post deleted Tag: 89295
Substitute for ComboBox FindString in compact framework?
I have a combobox bound to a dataset containing States and their
corresponding ID's. How would I set the combobox selection to the textvalue
retrieved from the database?
In Windows forms I would do something like this, however my understanding is
that FindString is not available in the compact framework:
cboState.SelectedIndex = cboState.FindString(value)
I have read that an alternative is to iterate through the items collection,
however I can't seem to get this to work. Any sample code to accomplish this
would be much appreciated. Tag: spam post deleted Tag: 89292
Timer-based Animation with g.DrawImage Gives Random Pauses
For my Windows CE 5.0 App (using C# in Visual Studio 2005) I have to create several images (on the fly) and play them back as an animation.
I've created an "Animation Control" which holds an array of images (usually about 18 images) and uses a timer to show them via "DrawImage".
This control loops through the array of images on each counter tick per the following:
private void timerAnimation_Tick(object sender, EventArgs e)
{
if (animationImages.Length <= 0) // no images in the array
return;
if (++nCurrentImageRef >= animationImages.Length)
nCurrentImageRef = 0;
// draw the current image
// gControl is the Graphics object for this control
gControl.DrawImage(animationImages[nCurrentImageRef], ClientRectangle.Left, ClientRectangle.Top);
}
My problem is that this animation runs smoothly for a couple hundred timer ticks, pauses for a few seconds and then continues where it left off.
These pauses are typically for 3 or 4 seconds and they occur somewhat randomly. Is this due to garbage collection or due to my "DrawImage" approach?
I've used other timers in this application (just to test what's going on) and they don't experience these same "pauses" - just this one.
Thanks. Tag: spam post deleted Tag: 89291
How to know the name of StartUp folder on device?
Hello,
I have got a question regarding some special folders like "StartUp". This
folder is named "AutoStart" on german platform.
Or
\Windows\Start Menu\Programs\Games is on german
\Windows\Startmenü\Programme\Spiele
How to get the correct folder names for "StartUp" and for the sample above?
thx
juvi Tag: spam post deleted Tag: 89289
How to get running applications number?
hello,
Is it possible to count not the running processes, but the running
applications? (e.g. like File Explorer, Word, => 2??)
thx
juvi Tag: spam post deleted Tag: 89280
File Transfer
Hi,
I have CASIO IT 600 device which has Windows CE 5.0 installed on it. I
would like to tranfer file/data from the device to a PC on network. I have
set the username, password & domain in ControlPanel-->Owner. If i use the
copy command it works fine. But i would like to do it programmatically using
C#. I used File.Copy. But that ended up with error. Can anyone please let me
know how to specify the credentials and do a file tranfer from my device to
the PC programmatically.
Thanks, Tag: spam post deleted Tag: 89279
How to draw into a bitmap and then display this bitmap?
Hello,
using CF 1.0 how to do the following:
- have some bitmap
- draw lines and text into it
- put it onto screen (as a whole with a fast copy
operation or similar)
- avoid drawing directly on the screen
- with measures available either in CF 1.0 or Win32
directly thus avoiding 3rd party libraries like
OpenNET CF or similar
Greetings
Markus Tag: spam post deleted Tag: 89277
Best way to make screenlock/keylock?
Hello,
Is it possible to lock screen and keys and unlock them with an unlock
method.....have no idea for that.....thx juvi Tag: spam post deleted Tag: 89272
Programmatically change entry mode Smartphone?
Hello,
How can I change the entry mode (ABC, Abc, abc, 123, ...) for specified
textbox on smartphone?
thx
juvi Tag: spam post deleted Tag: 89271
Day/Night mode application
I am developing application which has to be able to change colors and
setting for day and for night....
I have main form and a few sub form (opened on click).
How is the best way to change look of the whole application (different
colors and bitmaps...)? Tag: spam post deleted Tag: 89265
Read SMS through OutlookSession possible?
Hello,
I want to open the SMSFolder through my OutlookSession but do not find it.
Is it possible to open the SMSFolder through OutlookSession and read SMS?
thx Tag: spam post deleted Tag: 89262
Motorola mc9090 programming
Hi Guys,
I have just joined and I am also trying an app on mentioned scanner
which is new.
I have download symbol SDk v1.7.
Scanner is running Windows CE.
My problem is that the datagrid that comes as part of the SDK behaves
different to normal datagridview.
Any idea where I can get some notes on the correct syntax and or code
sample?
regards
Zack
*** Sent via Developersdex http://www.developersdex.com *** Tag: spam post deleted Tag: 89258
Problem installing Windows Mobile 6 SDKs
I am trying to install Windows Mobile 6 Standard & Professional SDKs.
I installed
-- Visual Studio 2005 SP1.
-- Active Synch 4.5
-- .Net Compact Framework 2.0 SP2
When I install either of the Windows Mobile SDKs, it says Visual
Studio 2005 SP1 is not installed and so can't install the SDK.
I tried installing VS 2005 Service Pack 1 twice -- It says: Microsoft
Visual Studio 2005 Standard Edition -- ENU Service Pack 1 (KB926601)
was successfully installed on Microsoft Visual Studio 200 Standard
Edition - ENU. (The second time I installed, it said it was already
installed, do I want to reinstall? and I said yes.)
In Visual Studio, under Help / About / Installed Products, it lists
"Microsoft Visual Studio 2005 Standard Edition - ENU Service Pack 1
(KB926601)".
Any ideas how to resolve this? Tag: spam post deleted Tag: 89257
Get Vibrate On/Off settings?
Hello,
Is it possible to get the Vibrate On/Off settings on Windows Mobile
Professional Edition and .net cf?
thx Tag: spam post deleted Tag: 89252
How to open built-in call history manager ?
Hello,
Is it possible to open the built-in phone calls history/list through .net cf
on Windows Mobile Professional/Standard?
And what about "Voice Messages" - where to find them??
thx
juvi Tag: spam post deleted Tag: 89249
What's wrong with this drawing code?
Hello,
the following drawing code used inside a BDS2006 for CF application
gives me this stack trace:
Project1.exe
NullReferenceException
Application::Run+0xf
Project1::Project1+0xa
This is the source:
var i,n, z:Integer;
g,g1:System.Drawing.Graphics;
p:System.Drawing.Pen;
t:Integer;
img:System.Drawing.Image;
begin
g:=self.CreateGraphics;
p:=System.Drawing.Pen.Create(System.Drawing.Color.Blue);
z:=0;
for n := 1 to 20 do
begin
for i := 5 to 235 do
begin
g.DrawLine(p, i, 10, i, 270);
inc(z);
Label1.Text:=z.ToString;
end;
Application.DoEvents;
end;
g.Dispose;
PictureBox1.Visible:=true;
p:=System.Drawing.Pen.Create(System.Drawing.Color.Red);
// img:=Bitmap.Create(230,260);
The crash occurs in the course of this, but all functions are (according
to the MS helpfile) supported from CF. I'm using CF 1.0 in the emulator.
g1:=Graphics.FromImage(PictureBox1.Image);
z:=0;
for n := 1 to 20 do
begin
for i := 5 to 235 do
begin
g1.DrawLine(p, i, 10, i, 270);
inc(z);
Label1.Text:=z.ToString;
end;
Application.DoEvents;
end;
// g.Dispose;
So what's wrong with this?
I'm basically trying to replace some direct drawing code with something
which draws into a bitmap first and displays the bitmap then as I feel
this should be faster.
The source above is just a demonstration/test project so the graphic
drawn isn't really usefull.
Greetings
Markus Tag: spam post deleted Tag: 89247
AJAX User Control Event's not firing...
I'm developing an Ajax keypad (C# / ASP.Net 3.5 / VS 2008) using the
updatepanel so that a full visible postback doesn't occur with each button
press.
I've decided to try and wrap the functionality into a user control,
providing events for when ok and cancel is pressed so that the caller (in
this case a page with the control on it) can then query for the keypad's
final value. If I remove the UpdatePanel, the events that the caller
subscribes to are fired and handled correctly, but with the Ajax bit
enabled, the events don't appear to fire.
I'm assuming this is because of the something which exists in the void of my
knowledge regarding Ajax, and the server side interactions that relate to
it.
Any help on how to get this working would be appreciated.
Thanks.
Daniel. Tag: spam post deleted Tag: 89242
Calling WebServices on Background...
Hi,
I need some help to solve a problem..
Im working with an application that invoke an webservice every 5 minutes,
during the routine execution my app "FREEZE", its takes about 20/30 seconds
to complete all process, after that its running normal. There is any way to
call webservice on background, whitout freeze application?
Its important that the final user not realize this situation, must be a
transparent process.
Thanks for any help to solve my problem..
A.Rocha Tag: spam post deleted Tag: 89239
ListView Control
Hi,
I'd like to align the content of a list view control to "center". The
list view control now contains 6 large icons in two columns. The whole
list view control is currenlty left aligned. How can I manage to have
the whole list view control (including all icons) to be centered on
the screen. Any hint?
Thanks
Hannes Tag: spam post deleted Tag: 89237
Looking for Professional Windows Mobile GUI Controls
Hi,
I am looking for commercial GUI control libraries for Windows Mobile
5 / 6. Can you please forward me links to professional GUI libraries
(e.g. list-control, tree-controls, date/time picker). I already found:
http://www.pocketpccontrols.com, www.resco.net
THere has to be more ... please give me hint. Anything welcome
Best regards
Hannes Tag: spam post deleted Tag: 89232
Missing Version Information in VB.Net 2008 Smart Device EXE
Hi!
I installed the Visual Studio Team System 2008 and migrated some VB.Net
2003 CF applications. But the compiled exe files do not consist any
version information.
Even if I create a new VB.Net 2008 Smart Device EXE no version
information is available.
The migrated DLLs all work fine.
I tried
"Device Application PPC 2003 CF 3.5"
"Device Application WM 5.0 CF 3.5"
"Console Application PPC 2003 CF 3.5"
Creating a VB.Net CF 3.5 dll works fine.
Creating a VB.Net Full Framework 3.5 dll works fine.
Creating a VB.Net Full Framework 3.5 exe works fine.
Creating a C# CF 3.5 dll works fine.
Creating a C# CF 3.5 exe works fine.
Only VB.Net CF 3.5 exe files do not work.
Does anyone know more about this issue and probably has a workaround?
I've found posting "Where's the version information?" from 2007-10-02
but there's no solution in its thread.
Regards,
Benjamin Lukner Tag: spam post deleted Tag: 89226
Draw rotated image
hi
How do i draw a rotated image ?
In the full NET FW i used transforms before but in CF i can't.
How do i draw my image rotated (0,90,270) on CF ?
Thanks
Johan Tag: spam post deleted Tag: 89225
"Generic deployment failure (Devices)"
Hi group,
I get an error when deploying my project on a device. there is nothing
else that "incorrect parameter" in the output error list. I press F1,
waow, it is a "Generic deployment failure (Devices)" appends rarely
when there is no other info on the error.
I work with this project since years, on Visual 2005, on WM5 devices.
this device is a Windows CE 4. I suppose it could be the problem. But
i have created lot of other projects on this device, using the exactly
same project parameters, and it works perfectly. the whole rest of all
other project have the same parameters two and works good. But this
one don't want to deploy.
When executing (only deployment crash, i manually deploy) i have'nt
the debug support on this DLL, wich is my real problem.
What i have miss ?
Romain TAILLANDIER
www.romaintaillandier.blogspot.com Tag: spam post deleted Tag: 89221
to qq2440 users
Hi all,
I study on qq2440 sbc.
I try to perform some kinds of functions like controlling serial ports,gpio
etc.
And sometimes i need a person who can success these on the same board too
much.Because of some settings specific for this board.
So is there anyone in this forum who can share his/her experiments about
this sbc,qq2440?
Please, send me your email,could you send? mine:slm_guzel@hotmail.com
Thanks. Tag: spam post deleted Tag: 89219
WM 6.0 CF ActivateDevice API call problem
I have an application that has run swimmingly for a couple years on
previous version of WM. This application uses MSMQ heavily which has
not been a problem until this version of WM. In the past I did not
need to use API calls as I believe that MSMQ ran under its own
context. Now I find it necessary to make a call to ActivateDevice()
with the driver location as per the blogs for MSMQ on this version.
All is well and good, that part works just fine and I follow it with a
call to CloseHandle with returned pointer. Again, no problem that I
can see as this succeeds or at very least does not return a WinError.
The problem is that the code I have that follows goes off and sets up
variables, control state, etc. As soon as I reference a form control
the application crashes though. It only does this the first time after
a warm boot though. Subsequent passes do not crash. I have tried doing
the ActivateDevice on its own thread and nothing changes. I have
removed the CloseHandle call thinking maybe it is closing something
other than what it should (dunno how that would happen though) but the
crash persists. The only thing that prevents the crash is removing the
entire call (ActivateDevice and CloseHandle) but that is my mechanism
for starting MSMQ. Any idea what might be going on here?
TIA Tag: spam post deleted Tag: 89213
Change outgoing phone call number on the fly (add a prefix)
Hi all,
I'm looking for a way to edit on the fly the number for a phone call, eg.
the user calls the number 123456 and my application, in background, actually
put a prefix to that number, eg 555, so that the real number called is
555123456.
Is there any way to do this? Tag: spam post deleted Tag: 89211
DataGrid CurrentCell
I want to change the Text of a particular CELL of DataGrid.and I also want to
maximize/minimize the gaps between the cells . I am unable to find the
classes/methods which support the compact framework... Tag: spam post deleted Tag: 89200
Can I run a CF.NET 2 application built for WM5 on WM6?
Hi,
I've made an application in CF.NET 2 using a Windows Mobile 5 project in
Visual Studio 2005.
Can I run such an application on a Windows Mobile 6 device without doing
anything special? Or do I need to make a new Windows Mobile 6 project in
Visual Studio 2005 and compile the (same) sources in that project?
Do I need to make a CAB file for WM5 and another CAB file for WM6 (with
different compiled executables)?
Hans Tag: spam post deleted Tag: 89171
Need a good book on CE .Net Compact Framework
Hi,
i want to deploy C# .Net application on Win CE.Net 6.0. The books i have
seen yet are on app development wih VC++ for CE. I need reference of a good
book / resources for application developement using .Net Compact Framework
only for Win CE 6.0.
any help will be appreciated.
TIA Tag: spam post deleted Tag: 89169
Datagrid problems
Hi,
I need to put the datagrid scrollbar always visible, and i don't know if its
possible.
I have tryed another aproach but didn't work too, i was trying to shrink
column size every time scroll need to be displayed, the problem is that the
update or refresh method doesn't change the column size. Tag: spam post deleted Tag: 89165
Memory Leaks using Cryptostream
Hi to all,
I know this is an old arguments but I didn't find any solutions on it.
While I use in a loop this simple routine on a Windows CE program:
****
public static string Encrypt(string stringToEncrypt)
{
string strOutput = "";
using (DESCryptoServiceProvider des = new
DESCryptoServiceProvider())
{
des.Mode = CipherMode.ECB; //CBC, CFB
byte[] inputByteArray =
Encoding.Unicode.GetBytes(stringToEncrypt);
byte[] key ={ 1, 2, 3, 4, 5, 6, 7, 8 };
byte[] IV = { 8, 7, 6, 5, 4, 3, 2, 1};
using (MemoryStream ms = new MemoryStream(4096))
{
using (CryptoStream cs = new CryptoStream(ms,
des.CreateEncryptor(key, IV), CryptoStreamMode.Write))
{
try
{
// Write the data to the stream
// to encrypt it.
cs.Write(inputByteArray, 0,
inputByteArray.Length);
cs.FlushFinalBlock();
}
catch (Exception e)
{
Console.WriteLine("An error occurred:
{0}", e.Message);
}
finally
{
// Close the streams and
// close the file.
//calculate the length of the encrypted
data
byte[] bResult = new byte[ms.Position];
ms.Position = 0;
ms.Read(bResult, 0, bResult.Length);
//return bResult
strOutput =
Convert.ToBase64String(bResult, 0, bResult.Length);
cs.Close();
ms.Close();
}
}
}
des.Clear();
}
return strOutput;
}
****
The memory grow up and no Garbage Collector is able to clean it. What
it's wrong? The same code, under XP is running well! Thank you very
much, I'm really on ground..
LF Tag: spam post deleted Tag: 89160
Build application which connect to a sql server 2000/5/8 via GPRS
maybe it's not possible..
but can i build an application which interfaces with a DB server and all did
via GPRS?
(using .net 2.0 or 3.5)
have you some suggest?
thank you all
Fabio Tag: spam post deleted Tag: 89159