Structure Question

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by dmoc.

Scenario...

Structure MyStructure1
SomeLongs[2]
EndStructure

Structure MyStructure2

MyVar.MyStructure1
EndStructure

BigVar.MyStructure2

AddOfLong = @BigVar/MyVar/SomeLongs[0]

...what's wrong with the last part? I have tried without the [].
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

I guess you mean to use '\' instead of '/', which by the way is the division operator...

Code: Select all

Structure MyStructure1
  SomeLongs.l[2]
EndStructure

Structure MyStructure2
;
  MyVar.MyStructure1
EndStructure

BigVar.MyStructure2

AddOfLong = @BigVar\MyVar\SomeLongs[0]
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by dmoc.

Yeah, thanks, I've just spotted this. However the real problem turns out to be that the DLL has no export table. I had this problem a few weeks ago and had to rebuild the file piece-by-piece. Ugghhhh!
Post Reply