Changing DSP from console to Windowed form
Re: Changing DSP from console to Windowed form
Windows 7 Ultimate. Even turning off UAC gives this error, but ideally, I want to be able to release for others to use, so turning off UAC is not really an option, since the system cannot turn off and turn on without a system restart. Honestly, unsure if it is a UAC issue, but based on working with my batch file, which had the same results, I assume this is the issue. Yeah, I started programming with Windows 3.1 with Networking. I haven't done any programming since Windows 95, so since the UAC adoption in Vista, I have always ran into strange problems around the UAC environment. Vista almost flew out my window on more than one occasion, and that was just running normal programs, not trying to create my own...
Re: Changing DSP from console to Windowed form
Care to post the source to the application you have issues running your stuff with? I can take a look at it locally and see if I spot any issues and try to help you out.Delaide wrote:Windows 7 Ultimate. Even turning off UAC gives this error, but ideally, I want to be able to release for others to use, so turning off UAC is not really an option, since the system cannot turn off and turn on without a system restart. Honestly, unsure if it is a UAC issue, but based on working with my batch file, which had the same results, I assume this is the issue. Yeah, I started programming with Windows 3.1 with Networking. I haven't done any programming since Windows 95, so since the UAC adoption in Vista, I have always ran into strange problems around the UAC environment. Vista almost flew out my window on more than one occasion, and that was just running normal programs, not trying to create my own...
Re: Changing DSP from console to Windowed form
Actually, I have almost no source. I have been poking with VB right now, so the code is in VB, but here is the source:
The rest of the code is the default VB code creation from Visual Express.
You can find the program attached. So honestly, no idea what is wrong. It is almost nothing, but not liking the dsp consoles.
This attachment is the one that uses a program launch, since the one where I ran the bat file creates an infinite loop for some reason.
Code: Select all
Public Class Form1
Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Start.Click
Process.Start("D:\PlayOnline\SquareEnix\Final Fantasy XI server\darkstar\DSConnect-server.exe")
End Sub
End Class
You can find the program attached. So honestly, no idea what is wrong. It is almost nothing, but not liking the dsp consoles.
This attachment is the one that uses a program launch, since the one where I ran the bat file creates an infinite loop for some reason.
Re: Changing DSP from console to Windowed form
The issue you have here is due to the base path not being set. So the game servers start assuming the base directory is what your application is currently using. You need to define the working directory like this:
Code: Select all
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Start.Click
Dim proc As New ProcessStartInfo()
proc.FileName = "C:\Users\atom0s\Documents\GitHub\darkstar\DSConnect-server.exe"
proc.WorkingDirectory = "C:\Users\atom0s\Documents\GitHub\darkstar\"
Process.Start(proc)
End Sub
Re: Changing DSP from console to Windowed form
Thanks! I will try this out. Strange that I have not seen this answer in all the stack exchange, MSDN, etc, forums I have combed through.
And, perfect! No more log errors. Many thanks
And, perfect! No more log errors. Many thanks