![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Quote:
Arrays are reference-type, in other words directories is a pointer to an array of strings. The "= new string[10000]" part creates an array of ten thousand references to empty strings. http://msdn.microsoft.com/msdnmag/issues/02/02/NET/
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
|
#12 |
|
Expert Programmer
|
Damn you reference types, I want real array pointers back.
Here's your thousand real strings. Dim PointlessPointer As IntPtr = IntPtr.Zero
For I As Int32 = 1 To 1000
PointlessPointer = System.Runtime.InteropServices.Marshal.StringToBSTR("Dameon")
Next |
|
|
|
|
|
#13 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Exhuming the corpse of a long dead thread, are we Rory?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|