Visual Basic Version of ASCII-to-PDU and PDU-to-ASCII Converter Functions

Posted by Daniel - 15,488 Views

ASCII to PDUI had posted related article about ASCII to PDU Conversion but that was written in C language. I got nothing to do today and when I explored my old archives, I found this one. A bundle of Visual Basic Functions to convert ASCII to PDU and vice versa.

I have no idea who is the original coder but as long as I can remember, a friend gave it to me. Never mind that, I’ve search the net and found nothing similar to it so I guess it can be treated as belong to public, or at least I want it that way :D You can let me know if I am wrong. I am not putting it under Software Collections - Free In House category since I am not the original coder.

Same as the C version, this bundle of functions contains two major functions: ASCII2PDU and PDU2ASCII. The first one is to convert ASCII to PDU and I think you can guess what the second one does.

pducodecdemo.jpgCompared to SMSCodec Delphi Component code, this one has different method even both are using high-layer character manipulations.

The demo project is also included with this post and as usual, if you find anything weird in its behaviors, don’t hesitate to let me know. Open the VB6 demo project - the functions bundle is under the [Modules] treeview.

An adaptation from the original VB6 code into VB.Net code is also available along with the demo project for VB.Net.

Available Downloads

Related resources

share this article

Digg del.icio.us Netscape StumbleUpon Yahoo! MyWeb reddit Furl Magnolia Newsvine Technorati SlashDot Blinklist Simpy Google
This post as PDFPosted in: Programming - March 2008 | raw