ComWrt() writes a string directly. You don't need to know the ASCII codes and your program doesn't need to convert the string to an array of ASCII codes.
/*------------------ Prototype -------------------*/
int ComWrt (int COM_Port, char Buffer[], int Count);
For example, to write all of myString to COM1:
bytesWritten = CmWrt (1, myString, strlen(myString));