<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Guardant &mdash; GrdFormatMessage + GrdLNG.Russian = "?????"]]></title>
	<link rel="self" href="https://forum.guardant.ru/feed/atom/topic/122" />
	<updated>2011-11-02T14:18:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.guardant.ru/topic/122/</id>
		<entry>
			<title type="html"><![CDATA[Re: GrdFormatMessage + GrdLNG.Russian = "?????"]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/551/#p551" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Антон Тихиенко пишет:</cite><blockquote><p>ANSI</p></blockquote></div><p>GrdApi.GrdFormatMessage и GrdApi.PrintResult возвращают System.String, которая Represents text as a series of Unicode characters.<br /><a href="http://msdn.microsoft.com/ru-ru/library/system.string.aspx">http://msdn.microsoft.com/ru-ru/library … tring.aspx</a></p><p>У вас (Вас) есть рецепт, как из того, что возвращают GrdApi.PrintResult и GrdApi.GrdFormatMessage достать текст с русскими буквами?<br />Это вообще возможно? Или нужно перед вызовом функции установить правильный язык текущей локали?</p><p>Или может быть есть шанс, что Вы были правы в своем первом ответе?</p>]]></content>
			<author>
				<name><![CDATA[mamitko]]></name>
				<uri>https://forum.guardant.ru/user/112/</uri>
			</author>
			<updated>2011-11-02T14:18:21Z</updated>
			<id>https://forum.guardant.ru/post/551/#p551</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: GrdFormatMessage + GrdLNG.Russian = "?????"]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/550/#p550" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>mamitko пишет:</cite><blockquote><p>В той сборке API, которую я использую, у метода GrdFormatMessage второй параметр имеет тип GrdLNG (не GrdLng). <br />У перечисления GrdLNG два значения: GrdLNG.English и GrdLNG.Russian (не GrdLng.ENG и GrdLng.RUS).<br />Я что-то не то подключил и использую?</p></blockquote></div><p>В данном случае нужно обратить внимание на то, что данные функции (<strong>GrdApi.GrdFormatMessage</strong> и <strong>GrdApi.PrintResult</strong>) формируют в качестве сообщения строку символов в ANSI - кодировке, а консоль (или любой другой интерфейс вывода) может по умолчанию использовать другую кодировку (например, DOS в командной строке Windows).<br />Таким образом, необходимо конвертировать строку содержащую сообщение в нужный формат для конкретного интерфейса вывода.</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2011-11-02T12:59:36Z</updated>
			<id>https://forum.guardant.ru/post/550/#p550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: GrdFormatMessage + GrdLNG.Russian = "?????"]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/540/#p540" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Антон Тихиенко пишет:</cite><blockquote><p>Для функции <strong>GrdFormatMessage</strong> параметр идентификатора языка должен указываться как <strong>GrdLng.ENG</strong> или <strong>GrdLng.RUS</strong>.</p></blockquote></div><p>В той сборке API, которую я использую, у метода <strong>GrdFormatMessage</strong> второй параметр имеет тип <strong>GrdLNG</strong> (не <strong>GrdLng</strong>). <br />У перечисления GrdLNG два значения: <strong>GrdLNG.English</strong> и <strong>GrdLNG.Russian</strong> (не <strong>GrdLng.ENG</strong> и <strong>GrdLng.RUS</strong>).<br />Я что-то не то подключил и использую?</p><div class="quotebox"><cite>Антон Тихиенко пишет:</cite><blockquote><p>Каким будет результат, если попробовать использовать английский (<strong>GrdLNG.English</strong>) язык вывода сообщений?</p></blockquote></div><p>GrdE.DongleNotFound --&gt; Dongle with specified search conditions not found</p>]]></content>
			<author>
				<name><![CDATA[mamitko]]></name>
				<uri>https://forum.guardant.ru/user/112/</uri>
			</author>
			<updated>2011-10-31T15:22:21Z</updated>
			<id>https://forum.guardant.ru/post/540/#p540</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: GrdFormatMessage + GrdLNG.Russian = "?????"]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/539/#p539" />
			<content type="html"><![CDATA[<p>Здравствуйте.<br /></p><div class="quotebox"><cite>mamitko пишет:</cite><blockquote><p>После вызова&nbsp; GrdApi.GrdFormatMessage(nRet, GrdLNG.Russian, out msg)<br />при nRet == Guardant.GrdE.DongleNotFound<br />в msg оказывается &quot;???? ? ????????? ????????? ?????? ?? ??????&quot;.</p></blockquote></div><p>Для функции <strong>GrdFormatMessage</strong> параметр идентификатора языка должен указываться как <strong>GrdLng.ENG</strong> или <strong>GrdLng.RUS</strong>.<br /></p><div class="quotebox"><cite>mamitko пишет:</cite><blockquote><p>GrdApi.PrintResult(...) делает то же самое.<br />Что я неправильно делаю?</p></blockquote></div><p>Каким будет результат, если попробовать использовать английский (<strong>GrdLNG.English</strong>) язык вывода сообщений?</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2011-10-31T13:56:24Z</updated>
			<id>https://forum.guardant.ru/post/539/#p539</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: GrdFormatMessage + GrdLNG.Russian = "?????"]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/516/#p516" />
			<content type="html"><![CDATA[<p>C# .Net Framework 2.0</p>]]></content>
			<author>
				<name><![CDATA[mamitko]]></name>
				<uri>https://forum.guardant.ru/user/112/</uri>
			</author>
			<updated>2011-10-29T14:25:05Z</updated>
			<id>https://forum.guardant.ru/post/516/#p516</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[GrdFormatMessage + GrdLNG.Russian = "?????"]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/515/#p515" />
			<content type="html"><![CDATA[<p>После вызова&nbsp; GrdApi.GrdFormatMessage(nRet, GrdLNG.Russian, out msg)<br />при nRet == Guardant.GrdE.DongleNotFound<br />в msg оказывается &quot;???? ? ????????? ????????? ?????? ?? ??????&quot;.</p><p>GrdApi.PrintResult(...) делает то же самое.</p><p>Что я неправильно делаю?</p>]]></content>
			<author>
				<name><![CDATA[mamitko]]></name>
				<uri>https://forum.guardant.ru/user/112/</uri>
			</author>
			<updated>2011-10-29T13:53:29Z</updated>
			<id>https://forum.guardant.ru/post/515/#p515</id>
		</entry>
</feed>
