On Sun, 13 Aug 2006 11:15:31 +0200, av <> wrote:
>On Sat, 12 Aug 2006 15:19:20 +0200, Christoph Schweers wrote:
>>Racaille schrieb:
>>> Ian Collins wrote:
>>>>> static TESTH_STATUS getno ( SMT_HANDLE *Handle)
>>>>> {
>>>>> *Handle->uUnitNumber =1; //This is line giving error.
>>>>>
>>>> Should be
>>>>
>>>> Handle->uUnitNumber =1;
>>>
>>> in fact, that should be (*Handle)->uUnitNumber.
>>
>>no, in fact it then should be (*Handle).uUnitNumber 
>
>it seems to me "Handle->uUnitNumber" too
Try again. Handle is a pointer to SMT_HANDLE (SMT_HANDLE*).
SMT_HANDLE is a pointer to struct (struct*). Therefore Handle is a
pointer to pointer to struct (struct**). The -> operator requires the
left operand to be of type pointer to struct (struct*). Since there
is no implied conversion between struct** and struct*, your code is a
syntax error.
Remove del for email