Thanks for your reply. Yes I saw WebbotLib. Its nice. But my target MCU is Mega128, that's why I am trying to use the UART lib from AVRLib, as that's make is for Mega128.
I have tested but if I try to Init both UART0 and UART1 then nothing happens, but code is building without error. I have attached my AVR Studio Project with Proteus 7.1 VSM for your review.
Here the codes for UART1 is commented and UART0 is working. Please un-comment the UART1 lines, then no UART's will work
Any suggestion what I am missing?