VB to PB

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 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]
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 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
Post Reply