The above function behaves differently for a clipboard format of text type. This freates a CFile object of CSharedFile in 2k and xp ahere as it creates COleStreamFile in 9x and NT. Also in 2k/xp the file size becomes 4 times the number of characters oyu copy to clipboard but in 9x/nt the file size is same as the number of characters.

Could anybody help me to guide how to solve this problem for all OSs in generic?

I will be thankful for all gurus for their replys.

Best Regards
s.k.pradhan