vb.net / ce 5.0 / cf 2.0 / and questions

  • Thread starter Thread starter R
  • Start date Start date
R

R

Hello all,
I've been working in VS2008 Pro and Psion Workabout CE 5.0 with CF 2.0
developing an application with sqlserver and our legacy MRP applications.

Things are working well but there are a few issues that I'd certainly
appreciate some pointers on. I tend to do a fair amount of research but have
yet to find these.

1. Is there any good way to obtain a unique device identification. Mobile
has a way, but I can't find one for CE. Any thoughts or suggestions?
2. Working with INI files on CE. CF doesn't seem to like/allow
privateprofilestring. Other than writing my own, is there something out
there?
3. I can connect to my corporate sql server but would like to be able to
access a file on my network. CE cannot become part of the domain, but can I
at least "see" or open a simple text file *on* the network?

Any help will be most appreciated.
Thank you,
Rich
 
1. Is there any good way to obtain a unique device identification. Mobile
has a way, but I can't find one for CE. Any thoughts or suggestions?

Depends on the device. I've done things like getting the serial number from
on-board flash before, but this is going to be very hardware-specific and
probably require input from the OEM. Have you asked them if there's any
unique ID their devices supply?
2. Working with INI files on CE. CF doesn't seem to like/allow
privateprofilestring. Other than writing my own, is there something out
there?

Does it have to be INI files? The SDF has a complete SettingsFile set of
classes for reading/writing settings to an XML-based file that I often use
for writabel app settings.
3. I can connect to my corporate sql server but would like to be able to
access a file on my network. CE cannot become part of the domain, but can
I at least "see" or open a simple text file *on* the network?

Yes, if it's shared, you can enter the path to it (e.g.
\\remotepc\\sharename\folder\file.txt) to it and it should provide an
authentication dialog. You can call the NTML authentication APIs via
P/Invoke if you want to avoid the dialog. I blogged the procedure in C++ -
you'd have to convert to managed code.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
Hello all,
I've been working in VS2008Proand PsionWorkaboutCE 5.0 with CF 2.0
developing an application with sqlserver and our legacy MRP applications.

Things are working well but there are a few issues that I'd certainly
appreciate some pointers on. I tend to do a fair amount of research but have
yet to find these.

1. Is there any good way to obtain a unique device identification. Mobile
has a way, but I can't find one for CE. Any thoughts or suggestions?
2. Working with INI files on CE. CF doesn't seem to like/allow
privateprofilestring. Other than writing my own, is there something out
there?
3. I can connect to my corporate sql server but would like to be able to
access a file on my network. CE cannot become part of the domain, but canI
at least "see" or open a simple text file *on* the network?

Any help will be most appreciated.
Thank you,
Rich

Hi Rich,

1) Install the PsionTekloigix Mobile SDK (I've got V2.02 installed )
using class: PsionTeklogix.SystemPTX.SystemInformation (ms-help://
MS.VSCC.v80/PTX.MobileDevices/PTX.MobileDevices/NET_01-18-13.html
FWIW)
call public static string MachineUID() of that class
2) Don't know, sorry. I used CSV files and the SDFs CSVDataAdaptor
3) Again, don't know.

Regards,

James.
 
Back
Top