Click here to Skip to main content
15,895,423 members

Comments by udayRBA (Top 5 by date)

udayRBA 1-Mar-12 7:50am View    
Thanks a lot Fredik. This has solved my problem. But I didn't understand why the error was there even if I was using same connection strings as you. The only change I did in my code is I changed the connection strings with yours and its working now.
udayRBA 27-Feb-12 1:26am View    
Thanks Martin. Bu t in this code too we need to include xsd file in the project and then it will genrate the class file in C#. But my problem is I dont know the xsd file in advance, user will provide the xsd file at runtime. And depending on the schema I have to generate XML file.
udayRBA 24-May-11 1:30am View    
Hi Espen,
problem has been solved. The problem was because of the difference in behavior of BinayWriter and CArchive class when the string is of length more than 128 chars or 255 chars. if the string is of length more than 255 chars then BinaryWriter writes the length in number of bytes.e.g. if length is 355 then it first writes 255(as byte) and the 100(another byte). but CArchive class works differently. It writes or reads length as 255(as byte) and then 355(as unsigned short). It was causing problem. Now I am able to read/write successfully.

Thanks once again.
udayRBA 18-May-11 9:50am View    
Thank you for the solution.
Actually the VC++ application in which I am reading this file is fixed and it reads the string. So I must have to write a string only. I can not write it in form of character array. Is length of the string causing any problem? Please suggest me any other solution.
udayRBA 5-May-11 2:20am View    
Can you please tell me how to implement this? how to write length of string as 32-bit integer?