Board index » Visual Studio » New functions in .NET 2.0 ???

New functions in .NET 2.0 ???

Visual Studio128
Hi All:



I have this line of code, but the syntax check in VB.NET 2003 and also in

VB.NET 2005 Beta 2 shows as unknown:



Dim local4 As Byte



Fixed(local4 = AddressOf dest(offset))



CType(local4, Short) = CType(src, Short)



Return



End Fixed



What is the "FIXED and END FIXED" and how the syntax error can be "fixed"

???



Thx,



Federico


-
 

Re:New functions in .NET 2.0 ???

well as far as i know the fixed keyword is used in C#





"Federico G. Babelis" <federico@gazum.com>wrote in message

Quote
Hi All:



I have this line of code, but the syntax check in VB.NET 2003 and also in

VB.NET 2005 Beta 2 shows as unknown:



Dim local4 As Byte



Fixed(local4 = AddressOf dest(offset))



CType(local4, Short) = CType(src, Short)



Return



End Fixed



What is the "FIXED and END FIXED" and how the syntax error can be "fixed"

???



Thx,



Federico











-

Re:New functions in .NET 2.0 ???

"m.posseth" <michelp@nohausystems.nl>schrieb:

Quote
well as far as i know the fixed keyword is used in C#



ACK, that's a C# feature which VB.NET doesn't contain.



Similar functionality can be archieved using 'GCHandle.AddrOfPinnedObject'.



--

M S Herfried K. Wagner

M V P <URL:dotnet.mvps.org/>">dotnet.mvps.org/>

V B <URL:classicvb.org/petition/>">classicvb.org/petition/>

-