Structures containing pointers to Structures
Posted: Thu Sep 30, 2004 3:19 pm
Hi all,
I have a procedure that 'creates' and returns a pointer to a structure. I've already tested that and it works fine on its own.
However, I'm having problems using this pointer within another structure. This will come back with syntax errors..(extraneous code snipped):
So what am I doin wrong here? Or is this type of thing just not possible in pure?
Thanks ahead of time.
I have a procedure that 'creates' and returns a pointer to a structure. I've already tested that and it works fine on its own.
However, I'm having problems using this pointer within another structure. This will come back with syntax errors..(extraneous code snipped):
Code: Select all
Structure HTTP_Connection
*next.HTTP_Connection
*prev.HTTP_Connection
;............
*NetBank.Bank
*url.URL
;............
EndStructure
Procedure.l HTTP_Create()
Protected *hc.HTTP_Connection
*hc = AddElement(HTTP_GlobalList())
*hc\*url.URL = URL_Create() ;<= syntax error
*hc\*NetBank.Bank = Bank_Create(#HTTP_NetBankSize);<= syntax error
;...................
ProcedureReturn *hc
EndProcedure
Thanks ahead of time.