Page 1 of 1

Posted: Thu Jun 13, 2002 8:23 am
by BackupUser
Restored from previous forum. Originally posted by crono.

Hello folks !
How to translate the following VisualBasic Line in PureBasic?

Private Type LARGE_INTEGER
dwLow As Long
dwHigh As Long
End Type

Private Type SYSTEM_PERFORMANCE_INFORMATION
liIdleTime As LARGE_INTEGER
dwSpare(0 To 75) As Long
End Type



kind regards,
Alexander Schoenfeld

Email: [url]mailto:alexander.schoenfeld@chronologic.de[/url]

Posted: Thu Jun 13, 2002 2:17 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.

plz note, you don't need to declare Large_Integer, it is already declared
but you can do it like so:

Code: Select all

 Structure MyLARGE_INTEGER
dwLow.l
dwHigh.l
EndStructure


Structure SYSTEM_PERFORMANCE_INFORMATION
liIdleTime.MyLARGE_INTEGER
dwSpare.l[76]
EndStructure
Its a long way to the top if you wanna .....CodeGuru