<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'C++ to VB Conversion please ?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'C++ to VB Conversion please ?' posted on the 'Visual Basic' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 18:46:24 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 18:46:24 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>C++ to VB Conversion please ?</title>
      <link>http://www.programmersheaven.com/mb/VBasic/293913/293913/c++-to-vb-conversion-please-/</link>
      <description>How would&lt;br /&gt;
&lt;pre class="sourcecode"&gt; typedef unsigned char U8
static const U8 SELECT_FILE [] = {0x80, 0xA4, 0x00, 0x00, 0x02};&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
convert to VB ??&lt;br /&gt;
&lt;br /&gt;
I'm thinking :&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Const SELECT_FILE(1 to 5) As String * 2 = "80 A4 00 00 02"&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Am I wrong ???&lt;br /&gt;
Any help appreciated............&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/293913/293913/c++-to-vb-conversion-please-/</guid>
      <pubDate>Fri, 25 Feb 2005 15:10:01 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: C++ to VB Conversion please ?</title>
      <link>http://www.programmersheaven.com/mb/VBasic/293913/293992/re-c++-to-vb-conversion-please-/#293992</link>
      <description>: How would&lt;br /&gt;
: &lt;pre class="sourcecode"&gt; typedef unsigned char U8
: static const U8 SELECT_FILE [] = {0x80, 0xA4, 0x00, 0x00, 0x02};&lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: convert to VB ??&lt;br /&gt;
: &lt;br /&gt;
: I'm thinking :&lt;br /&gt;
: &lt;pre class="sourcecode"&gt;Const SELECT_FILE(1 to 5) As String * 2 = "80 A4 00 00 02"&lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: Am I wrong ???&lt;br /&gt;
: Any help appreciated............&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Constants in VB cannot be arrays, so you are going to have to come up with a different approach.&lt;br /&gt;
&lt;br /&gt;
Greets...&lt;br /&gt;
Richard&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/293913/293992/re-c++-to-vb-conversion-please-/#293992</guid>
      <pubDate>Sat, 26 Feb 2005 11:11:21 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: C++ to VB Conversion please ?</title>
      <link>http://www.programmersheaven.com/mb/VBasic/293913/294010/re-c++-to-vb-conversion-please-/#294010</link>
      <description>: : How would&lt;br /&gt;
: : &lt;pre class="sourcecode"&gt; typedef unsigned char U8
: : static const U8 SELECT_FILE [] = {0x80, 0xA4, 0x00, 0x00, 0x02};&lt;/pre&gt;&lt;br /&gt;
: : &lt;br /&gt;
: : convert to VB ??&lt;br /&gt;
: : &lt;br /&gt;
: : I'm thinking :&lt;br /&gt;
: : &lt;pre class="sourcecode"&gt;Const SELECT_FILE(1 to 5) As String * 2 = "80 A4 00 00 02"&lt;/pre&gt;&lt;br /&gt;
: : &lt;br /&gt;
: : Am I wrong ???&lt;br /&gt;
: : Any help appreciated............&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: Constants in VB cannot be arrays, so you are going to have to come up with a different approach.&lt;br /&gt;
: &lt;br /&gt;
: Greets...&lt;br /&gt;
: Richard&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
:Thanks for your reply Richard.....Whoops ! that do call for a....... reevaluation..........per conversations in other forums I've concluded that a byte array instead of a string would probably be the closest , Since the VB equivalent to an unsigned char is a byte...&lt;br /&gt;
your thoughts ???&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/293913/294010/re-c++-to-vb-conversion-please-/#294010</guid>
      <pubDate>Sat, 26 Feb 2005 14:01:09 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: C++ to VB Conversion please ?</title>
      <link>http://www.programmersheaven.com/mb/VBasic/293913/294183/re-c++-to-vb-conversion-please-/#294183</link>
      <description>: : : How would&lt;br /&gt;
: : : &lt;pre class="sourcecode"&gt; typedef unsigned char U8
: : : static const U8 SELECT_FILE [] = {0x80, 0xA4, 0x00, 0x00, 0x02};&lt;/pre&gt;&lt;br /&gt;
: : : &lt;br /&gt;
: : : convert to VB ??&lt;br /&gt;
: : : &lt;br /&gt;
: : : I'm thinking :&lt;br /&gt;
: : : &lt;pre class="sourcecode"&gt;Const SELECT_FILE(1 to 5) As String * 2 = "80 A4 00 00 02"&lt;/pre&gt;&lt;br /&gt;
: : : &lt;br /&gt;
: : : Am I wrong ???&lt;br /&gt;
: : : Any help appreciated............&lt;br /&gt;
: : : &lt;br /&gt;
:&lt;br /&gt;
: : &lt;br /&gt;
: :Thanks for your reply Richard.....Whoops ! that do call for a....... reevaluation..........per conversations in other forums I've concluded that a byte array instead of a string would probably be the closest , Since the VB equivalent to an unsigned char is a byte...&lt;br /&gt;
: your thoughts ???&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
That would depend on your usage. First let me note that:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim btNumber(1 To 2) As Byte
btNumber(1) = &amp;amp;H8
btNumber(2) = &amp;amp;H40
&lt;/pre&gt;&lt;br /&gt;
Is not the same as:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim sNumber As String * 2
sNumber = "48"
&lt;/pre&gt;&lt;br /&gt;
This is because the numbers stored in string format are not equivalent to bytes.&lt;br /&gt;
&amp;amp;H48 would make 01001000&lt;br /&gt;
While "48" makes Asc("4") and Asc("8")&lt;br /&gt;
Together making 52 and 56 and binary 00110100 00111000&lt;br /&gt;
&lt;br /&gt;
So it is also more bytes as well as being totally different numbers in memory.&lt;br /&gt;
&lt;br /&gt;
Because of this, the way to store the numbers depends on your usage.&lt;br /&gt;
So how are you planning to use them in code?&lt;br /&gt;
&lt;br /&gt;
Greets...&lt;br /&gt;
Richard&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/293913/294183/re-c++-to-vb-conversion-please-/#294183</guid>
      <pubDate>Mon, 28 Feb 2005 08:10:31 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
  </channel>
</rss>