PPC 2003 Emulator Shortcomings?

  • Thread starter Thread starter KRoy
  • Start date Start date
K

KRoy

Can the emulator do everything the actual device can do?
I have read some post which say things work when run on
the device, but not on the emulator. Things like the
CryptoAPI for example.

If so, is there a list or something which shows what can't
be run on the emulator?
 
Hi! Mine vs.net Pro 2003 has the old 2002 emulator, are you sure you have
2003 emulator?

Regards, Mika Nihtilä
 
off the top of my head ...
-cannot listen. i.e. you cant write a server using it.
-2003 emulators can do GAPI, 2002 ones couldn't.
-CryptoApi DOES work, else I could not have written this:
http://www.brains-N-brawn.com/spCrypt
-you cant share a folder with hard drive like eVC++ can
-there is a powerToy to ActiveSync with;
it works for me, depending on which computer i use
-not great for testing speed on
i.e. sometimes speed on device and emulator will be radically diff
-i dont think you can hook it to record audio,
you can do mappings of serial ports though

in general, the emulators are great for getting started;
but at some point you need an actual device to test against.

Thanks,
casey
http://www.brains-N-brawn.com
 
I am using VS .Net 2003 to develop an VB.net Pocket PC
application which encrypts connection string information
for a SQL Server Database. I have copied the Crypto Class
code from the Pocket PC Signiture Application Sample into
my project
(http://msdn.microsoft.com/mobility/understanding/articles/
default.aspx?pull=/library/en-
us/dnnetcomp/html/ppcsignatureapp.asp).

I can not get the text I send it, to be decrypted. I
error out with an 'unhandled exception'. This is when
using the PPC 2003 emulator (My device is only on PPC 2002
in which I just get a deployment error). One thing I
notice is that I get different hProv, hHash, and hKey
values when running the CryptoSvc2.Decrypt function versus
the CryptoSvc1.Encrypt function (this may be correct, I
don't know). The following is my code:

Dim EncryptString As String
Dim DecryptString As String
Dim CodedArray() As Byte
Dim EncryptArray As Byte()
Dim DecryptArray As Byte()
Dim CryptoSvc1 As New Security.Crypto

CodedArray = System.Text.Encoding.ASCII.GetBytes("AnyText")
EncryptArray = CryptoSvc1.Encrypt("123456789", CodedArray)
EncryptString = System.Text.Encoding.ASCII.GetChars _
(EncryptArray)
MsgBox("Encrypted Data: " & EncryptString)

Dim CryptoSvc2 As New Security.Crypto
CodedArray = System.Text.Encoding.ASCII.GetBytes _
(EncryptString)
DecryptArray = CryptoSvc2.Decrypt("123456789", CodedArray)
DecryptString = System.Text.Encoding.ASCII.GetChars _
(DecryptArray)
MsgBox("Decrypted Data: " & DecryptString)

Any help would be greatly appreciated!!
..
 
err, umm ... use my crypto library instead :)

I am using VS .Net 2003 to develop an VB.net Pocket PC
application which encrypts connection string information
for a SQL Server Database. I have copied the Crypto Class
code from the Pocket PC Signiture Application Sample into
my project
(http://msdn.microsoft.com/mobility/understanding/articles/
default.aspx?pull=/library/en-
us/dnnetcomp/html/ppcsignatureapp.asp).

I can not get the text I send it, to be decrypted. I
error out with an 'unhandled exception'. This is when
using the PPC 2003 emulator (My device is only on PPC 2002
in which I just get a deployment error). One thing I
notice is that I get different hProv, hHash, and hKey
values when running the CryptoSvc2.Decrypt function versus
the CryptoSvc1.Encrypt function (this may be correct, I
don't know). The following is my code:

Dim EncryptString As String
Dim DecryptString As String
Dim CodedArray() As Byte
Dim EncryptArray As Byte()
Dim DecryptArray As Byte()
Dim CryptoSvc1 As New Security.Crypto

CodedArray = System.Text.Encoding.ASCII.GetBytes("AnyText")
EncryptArray = CryptoSvc1.Encrypt("123456789", CodedArray)
EncryptString = System.Text.Encoding.ASCII.GetChars _
(EncryptArray)
MsgBox("Encrypted Data: " & EncryptString)

Dim CryptoSvc2 As New Security.Crypto
CodedArray = System.Text.Encoding.ASCII.GetBytes _
(EncryptString)
DecryptArray = CryptoSvc2.Decrypt("123456789", CodedArray)
DecryptString = System.Text.Encoding.ASCII.GetChars _
(DecryptArray)
MsgBox("Decrypted Data: " & DecryptString)

Any help would be greatly appreciated!!
.
 
Hi,

Serial communications does not work reliably under the emulator.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Back
Top