Welcome, Guest. Please login or register.

Author Topic: Error on DoMethod()  (Read 2500 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: Error on DoMethod()
« on: December 09, 2004, 07:00:11 AM »

What about DoMethod ? Did you include proto/intuition.h and are you compiling with -D__USE_INLINES ?

And what about WinObj ? Usually I'd declare it as Object *WinObj. As such it already is a pointer to an object and you give a pointer to the pointer to DoMethod. You should rather give the pointer itself.

Bye,
Thomas

Offline Thomas

Re: Error on DoMethod()
« Reply #1 on: December 09, 2004, 09:33:36 AM »

nicomen is correct. I remembered that DoMethod has been moved from amiga.lib to intuition.library with OS4.0, but I missed that it was also renamed to IDoMethod.

On OS3.9 you have to include clib/alib_protos.h for the DoMethod prototype.

Sometimes you should look into the include files. If you don't find DoMethod in intuition_protos.h, you know that you missed another include file.

Bye,
Thomas