Serial Port problems when compiling for the PDA device.

pdablue

Active Member
Licensed User
Hi,

I can write a program on the PDA device using Basic4ppc on the device
and the serial port communications will work just fine.

I then move the program over to the desktop and compile the program
for the device.

I then take the compiled (.exe) file and run it through the SetupBuilder
program to generate a (.CAB) file. I list the SerialDevice.dll as one of the
files to be included in the (.CAB) file.

I then take the (.CAB) file and install the program on the PDA device.
When I run the program the serial port communications no longer work.

Does the SerialDevice.dll need to be referenced in some way? Its like
the program can not find the SerialDevice.dll.

Do you have any ideas on how to get the Serial Port communications
working again?

When compiling using the Desktop IDE for the Device, does the SerialDevice.dll
file get embedded in the compiled (.exe) file? Does the SerialDevice.dll file need
to be included as one of the files inside the (.CAB) file when using the SetupBuilder
program?
 
Last edited:

Zenerdiode

Active Member
Licensed User
Try to alter your code to use Serial2.dll instead of SerialDevice.dll. Serial2 (or Agraham's SerialEx.dll) provide better functionallity and both are able to be combined with the .exe when compiled with Optimisation.

You also need to ensure (in the desktop IDE) that Serial2.dll (or SerialEx.dll :)) are first referenced in 'Tools>Components' and your object added thereafter with 'Tools>Add Object'

If (when) you use Serial2.dll, you will need .Net CF 2.0 installed on your device.

One final note, there is a referrence to DBComm.dll having to be used with SerialDevice.dll - but I don't know much about it. :(
If you can load CF2.0 on your device, please use Serial2.dll
 

pdablue

Active Member
Licensed User
Thanks for the information.

I recompiled the program using the Serial2.dll and everything is working perfectly now.

I can now send and receive data across a wireless Bluetooth connection.
 
Top