This One for Darrel Taylor. My question is how did you get on modifying the USBDemo program from VB to Delphi. I am much more comfortable working in Delphi than VB and would be really interested in any examples of Delphi Code for this project. I found a good component at http://www.soft-gems.net/index.php?o...d=14&Itemid=33 and have had some success in using it to connect to my PIC but my limited programming ability slows me down a fair bit, although I am learning a lot. If I had a working example in Delphi I am sure it would help me understand what is going on much better.

A second question is how do you put a serial number into the program. I have been playing around with the DESCUSBDemo.asm
file and tried to put a serial number into the code. Here is what I did:

; serial number
String3
retlw (String4-String3)/2
retlw DSC_STR

retlw '4'
retlw 0x00
retlw '3'
retlw 0x00
retlw '2'
retlw 0x00
retlw '0'
retlw 0x00
retlw '8'
retlw 0x00
retlw '8'
retlw 0x00
retlw '8'
retlw 0x00

Not working. Any suggestions.