View Single Post
  #1 (permalink)  
Old 12-04-2008, 11:39 PM
casper casper is offline
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Jun 2006
Posts: 10
Reputation: 48
casper is on a distinguished programming path ahead
Default What is the equivalent code in VB.NET ?

Hi There,

I've been trying to convert the below VBA code to VB.NET:

Code:
Option Compare Database

Declare Sub Process Lib "Process.dll" (ByRef sInt As Integer, ByRef sString As MemInfo)

Type MemInfo
    sString As String * 100
End Type

Public Sub test()
    Dim sSize As Integer
    Dim sWord As MemInfo
   
    sSize = 100
    sWord.sString = "Hello: "
    Call Process (sSize , sWord )
   
    MsgBox sWord.sString
    
End Sub
Thanks

Last edited by JuggaloBrotha; 12-09-2008 at 8:34 AM. Reason: Set to resolved based on last OP post
Reply With Quote