View Single Post
  #2 (permalink)  
Old 12-05-2008, 8:56 AM
JuggaloBrotha's Avatar
JuggaloBrotha JuggaloBrotha is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jun 2004
Location: Lansing, MI; USA
Age: 25
Posts: 3,631
Reputation: 396
JuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NET
Default

Roughly it's something like this:
Code:
Declare Sub Process Lib "Process.dll" (ByRef sInt As Short, ByRef sString As MemInfo)

Structure MemInfo
    <VBFixedString(100)> Dim sString As String
End Structure

Public Sub test()
    Dim sSize As Integer
    Dim sWord As MemInfo
   
    sSize = 100
    sWord.sString = "Hello: "
    Call Process (sSize , sWord)
   
    Messagebox.Show(sWord.sString)
    
End Sub
Don't expect this to work 100% right off the bat, I converted it using notepad.
__________________
Currently using: VS 2005 & 2008 Pro w/sp1 on Win7 Ultimate x64.


There are 3 kinds of people in the world: Those who can count and those who can't.
4 out of 3 people have trouble with fractions.

Windows has a 64 bit GUI for a set of 32 bit extensions on a 16 bit shell for an 8 bit OS using a 4 bit kernel made by a 2 bit company that can't stand 1 bit of competition.
Reply With Quote