View Single Post
  #6 (permalink)  
Old 12-08-2008, 4:55 PM
MattP MattP is offline
VB.NET Forum Idol
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Feb 2008
Location: USA
Posts: 874
Reputation: 499
MattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond repute
Default

Visual Studio 2005 converted it to this:

Code:
	Declare Sub Process Lib "Process.dll" (ByRef sInt As Short, ByRef sString As MemInfo)

	Structure MemInfo
		<VBFixedString(100), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst:=100)> Public sString() As Char
	End Structure

	Public Sub test()
		Dim sSize As Short
		Dim sWord As MemInfo

		sSize = 100
		sWord.sString = "Hello: "
		Call Process(sSize, sWord)

		MsgBox(sWord.sString)

	End Sub
Reply With Quote