Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / tier 2 class struct error

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 23rd May 2017 02:50
I thought ide convert an agk program to tier 2 for some extra frame rates but my c++ is very rusty
I am getting the error message left of WaveWidth must have class/struct/union

declarations


the error occurs here


thanks any help would be appreciated
fubar
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 24th May 2017 00:40 Edited at: 24th May 2017 00:40
Personally I'd just declare it like so


Although I'd be careful using "strlen" as the array size, since that is a function in C++.
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 24th May 2017 01:07
your right about strlen being a problem as changing it to strLength fixed the errors I had, I didn't expect that as I wasn't using string.h
fubar

Login to post a reply

Server time is: 2024-03-29 09:33:11
Your offset time is: 2024-03-29 09:33:11