Hi all,
Sorry for the off-topic and sorry for my low C level...
I saw that __GETMESSAGE in classes.c is defined as:
HB_FUNC( __GETMESSAGE )
{
hb_retc(
hb_stackItem(hb_stackBaseItem()->item.asSymbol.stackstate->lBaseItem
)->item.asSymbol.value->szName );
}
Then, in my proyect I want to integrate that piece of code. I do this:
#pragma BEGINDUMP
#include "hbapi.h"
#include "hbstack.h"
HB_FUNC ( __MYFUNCTION )
{
char * cMessage = (hb_stackItem(
hb_stackBaseItem()->item.asSymbol.stackstate->lBaseItem
)->item.asSymbol.value->szName) ;
/* My code will go below */
}
#pragma ENDDUMP
But when compiling this little example I have these messages error:
tdatabase.c
tdatabase.prg(220) : error C2223: left of '->item' must point to struct/union
tdatabase.prg(220) : error C2198: 'hb_stackItem' : too few actual parameters
tdatabase.prg(220) : error C2223: left of '->item' must point to struct/union
And this is my problem: I cannot understand these errors and also I cannot
understand why in classes.c compile OK whilst in my project throws these errors.
If someone could light me I shall appreciate too much.
Thanks for your help.
Regards,
José Luis Capel
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour