E2316 'identifier' is not a member of 'struct' *kriese*
-
Nabend beisammen,
ich bekomm bei dem Aufruf einer Methode von meiner Klassen
SndCtrl.PlaySound (0);den Fehler
E2316 'PlaySoundA' is not a member of 'SoundControl'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 ?
Danke schonmal

#ifndef SoundControlH #define SoundControlH #include "fmod.h" //--------------------------------------------------------------------------- typedef struct my_struct { int myChannel; FSOUND_STREAM * myStream; } myAudioStreams; class SoundControl { private: /*** Eigenschaften ***/ bool myPathStatus; DynamicArray <AnsiString> Sounds; DynamicArray <MyAudioStreams> 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 & Destruktor***/ SoundControl(); ~SoundControl(); }; //--------------------------------------------------------------------------- #endif
-
Wie sieht denn deine Implementierung von PlaySound() aus?
Ansonsten: versuch's doch mal mit einem anderen Namen für die Funktion. PlaySound bzw. PlaySoundA 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.
-
Ah, das wars, danke Jansen

Habs umbenannt und nun klappts