Welcome, Guest. Please login or register.

Author Topic: ANSI C++ forbids declaration `res' with no type  (Read 3759 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Heinz

  • Full Member
  • ***
  • Join Date: Nov 2005
  • Posts: 154
    • Show all replies
    • http://amidevcpp.amiga-world.de
Re: ANSI C++ forbids declaration `res' with no type
« on: April 29, 2009, 07:46:21 AM »
Quote

EDanaII wrote:


And, c'mon guys, gimmee a break. :-) It's not like I can go out and buy a book on this stuff. Believe me, I'd love to, but all the different (and meager) sources I can find don't clue me in on a whole lot, otherwise I wouldn't be buggin' you here.


ZUNE Application Development Manual

It is not really a book, but could be a starting point.
This will compile for AROS but only for C.

For C++ you will need some changes.

set(...) and get(...) will conflict with c+ set and get methods.
For AROS you can do that at the beginning of your main.c:

#undef set(copy and paste from your libraries/mui.h) #define ZUNESET(copy and paste from your libraries/mui.h)

and do the same for get(...).

You may also look at this zune c++ example:


http://amidevcpp.amiga-world.de/Examples/info/TextEditorExample.zip.php

or this more recent one:

http://archives.aros-exec.org/index.php?function=showfile&file=utility/text/edit/simpleeditor-i386.zip