VBBR
Moderator
Brazil
617 Posts |
Posted - Jun 15 2004 : 2:39:02 PM
|
In VB6: - Integer: 2 bytes - Long: 4 bytes
In VB.NET: - Short: 2 bytes - Integer: 4 bytes
So that's just a name exchange basically. It screws up file reading because you could be reading 4 bytes in a row instead of 2 or something like that, so the numbers end up mixed up or half their original bytes.
|
Whatever. Who knows... |
|
|
game_maker
Knave
Saudi Arabia
83 Posts |
Posted - Jun 15 2004 : 4:42:55 PM
|
and Long in VB.Net = 8 bytes
that's why
if you compute your file from vb.6 and read it from VB.Net here is the problem but if you compute from VB.Net and read it from VB.Net you won't face any problem with Variable Types |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - Jun 15 2004 : 5:58:26 PM
|
Okay, I always learned that 32 bit machines (like all of the currect PC's) can process a 32 bit number (long/single in VB6) faster than another type (integer, byte, double in VB6). Does this mean I should use integers in VB .NET since they are 32 bit? |
Edited by - Sr. Guapo on Jun 16 2004 12:22:36 AM |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - Jun 16 2004 : 12:33:32 AM
|
OK, new problem. I have been attempting to make this work in VB .NET and DX9. I am trying to load the data into a 2D array of vertices. Should I just use the PositionTextured vertices? Also, should I use a vertex buffer, or just load the straight vertex data when rendering? Sorry, I am really confused... DX9 (and VB .NET for that matter) is different from what I am used to, so it is giving me headaches.
PS - these are very DX9 specific questions, if anyone is familiar with it... |
|
|