ACAPI_Element_Delete issue
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-10-06
01:06 PM
- last edited on
2023-08-03
10:55 AM
by
Doreena Deng
2010-10-06
01:06 PM
Hello,
i'm trying to use the ACAPI_Element_Delete function which requires an "ACAPI_Elem_Head **" value as first parameter in order to delete the right element (as written in the Database Overview).
In my code, i first set the variable "API_Element *currentElement;" which contains my element's adress :
"currentElement = &element;"
I then try to use the "ACAPI_Element_Delete" function :
"ACAPI_Element_Delete(*currentElement->header, 1);"
But i've got C2100 error : illegal indirection.
Do you see where is my mistake ?
Thanks a lot.
i'm trying to use the ACAPI_Element_Delete function which requires an "ACAPI_Elem_Head **" value as first parameter in order to delete the right element (as written in the Database Overview).
In my code, i first set the variable "API_Element *currentElement;" which contains my element's adress :
"currentElement = &element;"
I then try to use the "ACAPI_Element_Delete" function :
"ACAPI_Element_Delete(*currentElement->header, 1);"
But i've got C2100 error : illegal indirection.
Do you see where is my mistake ?
Thanks a lot.
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-10-06 03:54 PM
2010-10-06
03:54 PM
atila-diffusion wrote:You're trying to dereference a variable that isn't a pointer, i.e. currentElement->header is a ACAPI_Elem_Head structure (not a pointer to one). Even if it was, you need to provide a pointer to a pointer (a handle) to the data. Try something like this:
i'm trying to use the ACAPI_Element_Delete function which requires an "ACAPI_Elem_Head **" value as first parameter in order to delete the right element (as written in the Database Overview).
In my code, i first set the variable "API_Element *currentElement;" which contains my element's adress :
"currentElement = &element;"
I then try to use the "ACAPI_Element_Delete" function :
"ACAPI_Element_Delete(*currentElement->header, 1);"
API_Elem_Head* head = &element.header; GSErrCode err = ACAPI_Element_Delete(&head, 1);
Ralph Wessel BArch
Central Innovation
Central Innovation