How to build a project that includes Serial Port

I made a project that involves using inputs from an accelerometer sensor through the Serial port, by following examples on this thread link text, and it works okay. Now I built it and noticed it seems not to be getting/using inputs from the serial port.
Is there a specific way to build such kind of projects?
Please, help!

if you are using C# for typing you can use .net 2.0 socket library for reading&writing to serial port

Yes, I did that and it worked fine. Now, I build it and found out it didnt read from the serial port at all.