Error Request For Member Which Is Of Non-class Type Struct
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
Request For Member Which Is Of Non Class Type Int
of this site About Us Learn more about Stack Overflow the company Business request for member which is of non class type c++ Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Request For Member Push_back In Which Is Of Non Class Type
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: request for member size which is of non-class type Sign up C++ request for member, which is of non-class type up vote 0 down vote favorite I have a simple program. The main is provided by my professor. We're to write 3 functions called enter, simplify, display. main #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Request For Member Which Is Of Non Class Type Char
workings and policies of this site About Us Learn more about Stack c++ request for member which is of pointer type Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Request For Member Which Is Of Non-class Type Template
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join http://stackoverflow.com/questions/14390043/c-request-for-member-which-is-of-non-class-type them; it only takes a minute: Sign up Request for member ______ which is of non-class type up vote 0 down vote favorite Good Day wonderful computer people of the planet Earth! Here is the struct in a file called AudioQueue.h: typedef struct AudioQueueBuffer { const UInt32 mAudioDataBytesCapacity; void * const mAudioData; UInt32 mAudioDataByteSize; void * mUserData; const UInt32 mPacketDescriptionCapacity; http://stackoverflow.com/questions/4885915/request-for-member-which-is-of-non-class-type AudioStreamPacketDescription * const mPacketDescriptions; UInt32 mPacketDescriptionCount; #ifdef __cplusplus AudioQueueBuffer() : mAudioDataBytesCapacity(0), mAudioData(0), mPacketDescriptionCapacity(0), mPacketDescriptions(0) { } #endif } AudioQueueBuffer; /*! @typedef AudioQueueBufferRef @abstract An pointer to an AudioQueueBuffer. */ typedef AudioQueueBuffer *AudioQueueBufferRef; And then later on there is this in the header of AudioPlayer.h: AudioQueueBufferRef mBuffers[kNumberBuffers]; And then what I'm trying to do: for (int i = 0; i < kNumberBuffers; ++i) { printf("%i\n", &mBuffers[i].mAudioData ); XThrowIfError(AudioQueueAllocateBufferWithPacketDescriptions(mQueue, bufferByteSize, (isFormatVBR ? mNumPacketsToRead : 0), &mBuffers[i]), "AudioQueueAllocateBuffer failed"); Basically I'm trying to access the information in mAudioData, but get the error: request for member 'mAudioData' in '((AQPlayer*)this)->AQPlayer::mBuffers[i]', which is of non-class type 'AudioQueueBuffer*' Any help greatly appreciated! c++ share|improve this question edited Feb 3 '11 at 12:16 kriss 13.7k105694 asked Feb 3 '11 at 12:06 Eric Brotto 25.9k1690152 Maybe it's an operator precedence error? Try -> instead of . to access mAudioData. –The-Kenny Feb 3 '11 at 12:11 add a comment| 2 Answers 2 active oldest votes up vote 7 down vote accepted AudioQueueBufferRef is an AudioQueueBuffer pointer. mBuffers is an array of these. So whe
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://stackoverflow.com/questions/10558156/error-request-for-member-which-is-of-non-class-type and policies of this site About Us Learn more about Stack https://bytes.com/topic/c/answers/907794-how-fix-error-request-member-non-class-type Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; request for it only takes a minute: Sign up error: request for member which is of non class type up vote 0 down vote favorite I am using forward declaration and now I am getting an error referring to the class that uses the forward declaration...so fInstance forward declares fConfig and then the Helper class (a namespace - used for global access request for member to functions) - getting t fConfig.h #ifndef FCONFIG_H #define FCONFIG_H #include
Ask a Question Need help? Post your question and get tips & solutions from a community of 418,544 IT Pros & Developers. It's quick & easy. How to fix error: "request for member which is of non-class type"? P: 19 kino Hello, I am getting the following error 25 C:\Dev-Cpp\main.cpp request for member `no' in `one', which is of non-class type `box[12]' in the code Expand|Select|Wrap|Line Numbers while(!myfile.eof()) { for(inti=0;i<12;i++) { myfile>>one.no[i]; } } where 'one' is an object of struct type 'box' and 'no' is the variable inside the struct. The above bit of code is just the simplified version of my complete code but basically I declared an array of struct type 'box' (size=12) , named it 'one', and am currently reading some numbers from a file into the variable 'no' of the struct. I would be grateful if someone could let me know the source of the error. Thanks. Feb 7 '11 #1 Post Reply ✓ answered by newb16 this .... here 'one' is an object of struct type 'box' and this... I declared an array of struct type 'box' (size=12) , named it 'one', ... are different things. The first one has the member 'no' that can be accessed as one.no ; the second is an array and has to be accessed like one[1].no Share this Question 2 Replies 100+ P: 687 newb16 this .... here 'one' is an object of struct type 'box' and this... I declared an array of struct type 'box' (size=12) , named it 'one', ... are different things. The first one has the member 'no' that can be accessed as one.no ; the second is an array and has to be accessed like one[1].no Feb 7 '11 #2 reply P: 19 kino Oh! Thanks a lot! :) Feb 7 '11 #3 reply Message Cancel Changes Post your reply Join Now >> Sign in to post your reply or Sign up for a free account. Similar topics Getting Error(#Error) in Report ... after converting Access2003 to 2007 Getting error 500 internal server error Trying to mount windows folder on Linux - getting error getting error when calculating total using unbound text field in subform Getting Error when Service account of WCF Service is a new account Getting error while setting session value Went from using Visual Web Develop express to Visual Studio 2005 and getting error when trying to open project Getting error 'The underlying connection was closed: The server committed an HTTP protocol violation' Error: Request timed out. Getting error message 'HTTP/1.1 500 Internal Server Error' on development machine Browse more C / C++ Questions on Bytes Question stats viewed: 4293 replies: 2 da