<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[E2316 &#x27;identifier&#x27; is not a member of &#x27;struct&#x27; *kriese*]]></title><description><![CDATA[<p>Nabend beisammen,</p>
<p>ich bekomm bei dem Aufruf einer Methode von meiner Klassen</p>
<pre><code class="language-cpp">SndCtrl.PlaySound (0);
</code></pre>
<p>den Fehler</p>
<pre><code class="language-cpp">E2316 'PlaySoundA' is not a member of 'SoundControl'
</code></pre>
<p>Ich vermute mal es liegt an der Struktur, aber mich würd jetzt interessieren warum (oder woran liegts wirklich) und wie mach ich es richtig ?</p>
<p>Danke schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<pre><code class="language-cpp">#ifndef SoundControlH
#define SoundControlH

#include &quot;fmod.h&quot;

//---------------------------------------------------------------------------

typedef struct my_struct {
  int myChannel;
  FSOUND_STREAM * myStream;
} myAudioStreams;

class SoundControl
{
  private:
    /*** Eigenschaften ***/
      bool myPathStatus;

      DynamicArray &lt;AnsiString&gt; Sounds;
      DynamicArray &lt;MyAudioStreams&gt; AudioStreams;

    /*** Methoden ***/
      bool CheckPath ( int );
      void CheckAll  ( void );

      /*** Getter ***/
        bool GetPathStatus ( void );

  public:
    /*** Eigenschaften ***/
      __property bool PathStatus = { read = GetPathStatus };

    /*** Methoden ***/
      void PlaySound ( int );
      void ConfigureSounds ( void );

      /*** Ini ***/
        void ReadFromIni ( AnsiString );
        void WriteToIni  ( AnsiString );

      /*** Konstruktor &amp; Destruktor***/
        SoundControl();
        ~SoundControl();
};

//---------------------------------------------------------------------------
#endif
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/75147/e2316-identifier-is-not-a-member-of-struct-kriese</link><generator>RSS for Node</generator><lastBuildDate>Sun, 28 Jun 2026 07:21:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/75147.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 May 2004 16:46:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to E2316 &#x27;identifier&#x27; is not a member of &#x27;struct&#x27; *kriese* on Thu, 27 May 2004 16:48:36 GMT]]></title><description><![CDATA[<p>Nabend beisammen,</p>
<p>ich bekomm bei dem Aufruf einer Methode von meiner Klassen</p>
<pre><code class="language-cpp">SndCtrl.PlaySound (0);
</code></pre>
<p>den Fehler</p>
<pre><code class="language-cpp">E2316 'PlaySoundA' is not a member of 'SoundControl'
</code></pre>
<p>Ich vermute mal es liegt an der Struktur, aber mich würd jetzt interessieren warum (oder woran liegts wirklich) und wie mach ich es richtig ?</p>
<p>Danke schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<pre><code class="language-cpp">#ifndef SoundControlH
#define SoundControlH

#include &quot;fmod.h&quot;

//---------------------------------------------------------------------------

typedef struct my_struct {
  int myChannel;
  FSOUND_STREAM * myStream;
} myAudioStreams;

class SoundControl
{
  private:
    /*** Eigenschaften ***/
      bool myPathStatus;

      DynamicArray &lt;AnsiString&gt; Sounds;
      DynamicArray &lt;MyAudioStreams&gt; AudioStreams;

    /*** Methoden ***/
      bool CheckPath ( int );
      void CheckAll  ( void );

      /*** Getter ***/
        bool GetPathStatus ( void );

  public:
    /*** Eigenschaften ***/
      __property bool PathStatus = { read = GetPathStatus };

    /*** Methoden ***/
      void PlaySound ( int );
      void ConfigureSounds ( void );

      /*** Ini ***/
        void ReadFromIni ( AnsiString );
        void WriteToIni  ( AnsiString );

      /*** Konstruktor &amp; Destruktor***/
        SoundControl();
        ~SoundControl();
};

//---------------------------------------------------------------------------
#endif
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/528511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/528511</guid><dc:creator><![CDATA[Galeon]]></dc:creator><pubDate>Thu, 27 May 2004 16:48:36 GMT</pubDate></item><item><title><![CDATA[Reply to E2316 &#x27;identifier&#x27; is not a member of &#x27;struct&#x27; *kriese* on Thu, 27 May 2004 17:08:52 GMT]]></title><description><![CDATA[<p>Wie sieht denn deine Implementierung von PlaySound() aus?</p>
<p>Ansonsten: versuch's doch mal mit einem anderen Namen für die Funktion. <em>PlaySound</em> bzw. <em>PlaySoundA</em> sind Standard-WinAPI-Funktionen (mmsystem.h), ggf. kommt es hier zu Überschneidungen. Eventuell hilf ja auch eine Änderung der Include-Reihenfolge bzw. der Reihenfolge der Include-Pfade.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/528533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/528533</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 27 May 2004 17:08:52 GMT</pubDate></item><item><title><![CDATA[Reply to E2316 &#x27;identifier&#x27; is not a member of &#x27;struct&#x27; *kriese* on Thu, 27 May 2004 17:11:42 GMT]]></title><description><![CDATA[<p>Ah, das wars, danke Jansen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Habs umbenannt und nun klappts</p>
]]></description><link>https://www.c-plusplus.net/forum/post/528535</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/528535</guid><dc:creator><![CDATA[Galeon]]></dc:creator><pubDate>Thu, 27 May 2004 17:11:42 GMT</pubDate></item></channel></rss>