Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question
#8
(10-10-2009, 12:06 PM)Vorfin Wrote: Agh, do you guys really not understand him? Or just not understand VB? He is taking about a builder and a stub.

Ok, it is quite simple, the builder and the stub combine their information, and create a new file with it in, called a server. Now they connect together with a few simple lines of code.

Both contain the line
Code:
Const FileSplit = "@vorfin@"

This lets them know that they should work with the other.

They also contain this:

Code:
FileOpen(1, Application.StartupPath & "\Stub.exe", OpenMode.Binary, OpenAccess.Read, OpenShare.Default)

Which lets them know the location of the other, in this case the same directory.

And lastly this:

Code:
If File.Exists("server.exe") Then
            My.Computer.FileSystem.DeleteFile("server.exe")
        End If
        FileOpen(1, Application.StartupPath & "\server.exe", OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.Default)

Which checks to see if an older server exists, if it does it deletes it. Then it will create a new one with the latest information in it.

You know exactly what I mean. And I have more questions. I will PM you now...
Reply


Messages In This Thread
Question - by macdonjo - 10-05-2009, 06:52 PM
RE: Question - by Dimitri - 10-07-2009, 11:29 PM
RE: Question - by macdonjo - 10-09-2009, 04:46 PM
RE: Question - by Dimitri - 10-09-2009, 07:17 PM
RE: Question - by Akshay* - 10-10-2009, 04:42 AM
RE: Question - by Malevolent - 10-10-2009, 09:31 AM
RE: Question - by Vorfin - 10-10-2009, 12:06 PM
RE: Question - by macdonjo - 10-10-2009, 06:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)