Compiler Error C2223 left of '->identifier' must point to struct/union

131 views
Skip to first unread message

alex;

unread,
Mar 6, 2024, 1:39:46 PM3/6/24
to Harbour Users
Hello.
What could be the problem?
Error in the code
#pragma BEGINDUMP
#include "hbapi.h"
#include "hbapiitm.h"

HB_FUNC( INC )
{
PHB_ITEM pItem = hb_param( 1, HB_IT_INTEGER );
pItem->item.asInteger.value++;
hb_retni( 0 );
}
#pragma ENDDUMP

antonio....@gmail.com

unread,
Mar 7, 2024, 2:24:29 AM3/7/24
to Harbour Users
To manage the internals you have to #define _HB_API_INTERNAL_

#pragma BEGINDUMP
#define _HB_API_INTERNAL_
#include "hbapi.h"
#include "hbapiitm.h"

HB_FUNC( INC )
{
PHB_ITEM pItem = hb_param( 1, HB_IT_INTEGER );
pItem->item.asInteger.value++;
hb_retni( 0 );
}
#pragma ENDDUMP

regards

alex;

unread,
Mar 7, 2024, 4:24:00 AM3/7/24
to Harbour Users
Hi, Antonio.
Thank you.
WBR, alex;
четверг, 7 марта 2024 г. в 10:24:29 UTC+3, antonio....@gmail.com:
Reply all
Reply to author
Forward
0 new messages