EDN Admin
Well-known member
<P>Hi, Im trying to use capicom library in dotnet and and i cant convert a sample code wrote in vb 6.</P>
<P>The code contains this line:</P><FONT size=2>
<P>StrConv(oMsg.BodyPart.GetStream.ReadText, vbFromUnicode)</P>
<P>In the documentation is explaned that this function is not upgrated in dot.net and i must to use this one:</P>
<P>System.Text.Encoding.GetEncoding(1252).GetBytes(SomeString).</P>
<P>Im trying this one but the behavior in not the same because the returned value is not the same as the vb6 function. The code doesnt sign the message. In VB6 it works well.</P>
<P>Someone have suggestion ?</P>
<P>Thanks <IMG src="http://forums.microsoft.com/MSDN/images/emoticons/smile_confused.gif
</P>
<P>Antonio</P></FONT>
View the full article
<P>The code contains this line:</P><FONT size=2>
<P>StrConv(oMsg.BodyPart.GetStream.ReadText, vbFromUnicode)</P>
<P>In the documentation is explaned that this function is not upgrated in dot.net and i must to use this one:</P>
<P>System.Text.Encoding.GetEncoding(1252).GetBytes(SomeString).</P>
<P>Im trying this one but the behavior in not the same because the returned value is not the same as the vb6 function. The code doesnt sign the message. In VB6 it works well.</P>
<P>Someone have suggestion ?</P>
<P>Thanks <IMG src="http://forums.microsoft.com/MSDN/images/emoticons/smile_confused.gif
</P>
<P>Antonio</P></FONT>
View the full article