<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'String Conversion' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'String Conversion' posted on the 'C/C++ Windows API' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 21:59:15 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 21:59:15 -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>String Conversion</title>
      <link>http://www.programmersheaven.com/mb/Win32API/421251/421251/string-conversion/</link>
      <description>I am currently trying to convert a string that resides in a _bstr_t variable vFieldDate into a char array.  I have found that I can type cast this via the (char *) with a variable I named holder which is a pointer to a char.  The issue I am having a hard time solving is how to convert this to a char that can be stored within the char Date[ARR].  When I attempt the following code I get the compilation error "Cannot Convert From Char * to Char.  How do I extract the value that resides in the holder location and save it into the array?&lt;br /&gt;
&lt;br /&gt;
Date[cyc] = holder;&lt;br /&gt;
&lt;br /&gt;
The below portions of code are a part of an ADO program that is accessing data from a database.&lt;br /&gt;
&lt;br /&gt;
char Date[ARR]     = {};&lt;br /&gt;
_bstr_t                vFieldDate;&lt;br /&gt;
vFieldDate           = rec-&amp;gt;Fields-&amp;gt;GetItem("Date")-&amp;gt;Value;&lt;br /&gt;
char *holder        = (char*)vFieldDate;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Win32API/421251/421251/string-conversion/</guid>
      <pubDate>Tue, 25 Jan 2011 20:20:04 -0700</pubDate>
      <category>C/C++ Windows API</category>
    </item>
    <item>
      <title>Re: String Conversion</title>
      <link>http://www.programmersheaven.com/mb/Win32API/421251/421253/re-string-conversion/#421253</link>
      <description>This question has been anwered with:&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;cstring&amp;gt;&lt;br /&gt;
//...&lt;br /&gt;
strcpy( Date, holder );&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Win32API/421251/421253/re-string-conversion/#421253</guid>
      <pubDate>Tue, 25 Jan 2011 21:30:53 -0700</pubDate>
      <category>C/C++ Windows API</category>
    </item>
  </channel>
</rss>