Peace. I had this error
error C2059: syntax error : ')'
in VS with c++ code, and searched the web and forums for a solution but could not find one. Finally I simply typed in the bracket ")" in the "find key" to search for all of the ) in the document to ensure that they were all in the correct places. Well lo and behold they were not...some were way outside of my visual site--so I missed these dangling brackets.
I just wanted to post a solution that worked for me on daniweb--since this is a very professional site, and I want others who search for a similar solution to find it here. ;)
Peace and cheers.