More information is necessary. WHat device, and what are you controlling it with, and exactally what are you trying to do?
RS232 can be converted to IR, but it requires hardware. It's not just a matter of changing something in the software.
Xantech makes a piece, but it may not do what you are trying to do.
[Link: xantech.com]