<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=5&amp;t=9677" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2013-07-18T12:34:20+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=9677</id>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2013-07-18T12:34:20+01:00</updated>
<published>2013-07-18T12:34:20+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=9677&amp;p=38373#p38373</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=9677&amp;p=38373#p38373"/>
<title type="html"><![CDATA[Qt (MinGW) and Zigbee SDK]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=9677&amp;p=38373#p38373"><![CDATA[
<a href="http://www.robotis.com/xe/qna_en/613047" class="postlink">Javi asked for help in the Robotis forum</a>trying to use Qt Creator (MinGW) with the Zigbee SDK. <br /><br />As I think Qt  is a great (IMHO, the best) alternative to VC++ in Windows and a great tool in Linux (IMHO, also the best for UI development) I have been testing a little and found this solution to the problem opening the Zigbee connection, throw the Zig2Serial:<br /><br />It seems a problem with the char* type when calling CreateFile in zgb_hal.c (from int zgb_hal_open( int devIndex, float baudrate ) ), CreateFile needs a wide char pointer.<br /><br />With these changes, it works to me:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>wchar_t port&#91;20&#93;;<br />swprintf &#40;port, 20, L&quot;%hs&quot;,PortName&#41;;<br />ghSerial_Handle = CreateFile&#40; port, GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL &#41;;</code></dd></dl><br /><br />Probably VC++ does this change automatically.<br /><br />Hope it helps you embracing Qt and Linux!!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Thu Jul 18, 2013 12:34 pm</p><hr />
]]></content>
</entry>
</feed>