Re: [Dev-C++] syntax error driving me crazy
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-04-04 14:16:01
|
Try something like img.member and see if that works (should be a default of [0]). I'm a bit unsure, unfortunately. >From: "Vlada Djurovic" <dj...@im...> >To: "Daniel Glenfield" ><sp...@ho...>,<dev...@li...> >Subject: Re: [Dev-C++] syntax error driving me crazy >Date: Fri, 4 Apr 2003 14:45:59 +0200 > > >----- Original Message ----- >From: "Daniel Glenfield" <sp...@ho...> >To: <dj...@im...>; <dev...@li...> >Sent: Friday, April 04, 2003 2:25 PM >Subject: Re: [Dev-C++] syntax error driving me crazy > > > > > > > > > > Have you defined imgs ? Does the compiler know what members are inside >imgs? > > > >I'm not sure what you mean. imgs is declared as array of TBBUTON >structures, >and if I'm right, TBBUTTON is defined in commctrl.h, which is included in >my >source file. The compiler didn't complain about TBBUTTON being undefined. I >also linked comctl32 library. The code is the same as I found on MSDN, so >I >think it should work. > > > > >From: "Vlada Djurovic" <dj...@im...> > > >To: "'DevC++ help'" <dev...@li...> > > >Subject: [Dev-C++] syntax error driving me crazy > > >Date: Fri, 4 Apr 2003 13:27:37 +0200 > > > > > >Hi. > > >Can somebody please tell me what is wrong with this peace of code? I >get > > >"syntax error before '.'" in every line and can't figure out what's >wrong. > > > > > >TBBUTTON imgs[2]; > > > > > >imgs[0].iBitmap=STD_FILENEW; > > >imgs[0].idCommand=ID_FILE_NEW; > > >imgs[0].fsState=TBSTATE_ENABLED; > > >imgs[0].fsStyle=BTNS_BUTTON; > > >imgs[0].dwData=0; > > >imgs[0].iString=0; > > > > > >imgs[1].iBitmap=STD_FILEOPEN; > > >imgs[1].idCommand=ID_FILE_OPEN; > > >imgs[1].fsState=TBSTATE_ENABLED; > > >imgs[1].fsStyle=BTNS_BUTTON; > > >imgs[1].dwData=0; > > >imgs[1].iString=0; > > > > > >Thanks. > > >------------ > > >Vlada > > > > > > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: ValueWeb: > > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > >No other company gives more support or power for your dedicated server > > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > >_______________________________________________ > > >Dev-cpp-users mailing list > > >Dev...@li... > > >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > _________________________________________________________________ > > On the move? Get Hotmail on your mobile phone >http://www.msn.co.uk/mobile > > > _________________________________________________________________ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile |