<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'programming problem (again) - Win32 api function failed' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'programming problem (again) - Win32 api function failed' posted on the 'C++ Builder' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 03:12:58 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 03:12:58 -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>programming problem (again) - Win32 api function failed</title>
      <link>http://www.programmersheaven.com/mb/bcbuilder/331599/331599/programming-problem-again---win32-api-function-failed/</link>
      <description>Thanks for answering my questions.  I don't program very often, but when I do it can become quite messy.  I was able to produce a stand-alone executable with Borland c++ builder, but when executing it on another machine, I receive this Windows error:&lt;br /&gt;
&lt;br /&gt;
ComboBox82-&amp;gt;Items.Strings: A Win32 API function failed.&lt;br /&gt;
&lt;br /&gt;
I looked over the program, and can't find any coding errors. Due to my limited programming experience, this Windows error is a complete mystery to me.  Please help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/bcbuilder/331599/331599/programming-problem-again---win32-api-function-failed/</guid>
      <pubDate>Thu, 09 Mar 2006 08:39:11 -0700</pubDate>
      <category>C++ Builder</category>
    </item>
    <item>
      <title>Re: programming problem (again) - Win32 api function failed</title>
      <link>http://www.programmersheaven.com/mb/bcbuilder/331599/333450/re-programming-problem-again---win32-api-function-failed/#333450</link>
      <description>Instead of&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
: ComboBox82-&amp;gt;Items.Strings: A Win32 API function failed.
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
use&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
#include &amp;lt;assert&amp;gt;
assert(ComboBox82!=0); //Just a check

const int maxIndex = ComboBox82-&amp;gt;Items-&amp;gt;Count;
const int index = std::rand()%maxIndex;
ComboBox82-&amp;gt;Items-&amp;gt;operator [](index);
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Have fun,&lt;br /&gt;
bilderbikkel&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/bcbuilder/331599/333450/re-programming-problem-again---win32-api-function-failed/#333450</guid>
      <pubDate>Wed, 29 Mar 2006 09:00:30 -0700</pubDate>
      <category>C++ Builder</category>
    </item>
  </channel>
</rss>