Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Third Party Program Support

Third Party Program Support Misc support forum and advertisment forum for all RunUO related third party Utilities.

Reply
 
Thread Tools Display Modes
Old 10-09-2003, 11:57 PM   #1 (permalink)
Forum Expert
 
FallsUpStairs's Avatar
 
Join Date: Oct 2002
Posts: 508
Default Any VB Coders Know What's Wrong With This?

Hey all, I have been programming this and I can't get it to work correctly.
I added the "CATCH" messageboxes to see the progress before I get an error, and every time it stops at "CATCH1". Since it gets there that would mean that it would have passed the "UOG_Client_Launch(0)" but the client doesn't start... Do I need to use like "LaunchPatch.Launch" or something for the "Command1_Click event"? If anyone has any info please try and help, thanks! (This is done is VB6 BTW.)
[code:1]'DLL Declarations
Private Declare Function UOG_Client_Launch Lib "uog.dll" (Client As Long) As Long
Private Declare Function UOG_Client_Terminate Lib "uog.dll" () As Long
Private Declare Function UOG_Client_Resume Lib "uog.dll" () As Long
Private Declare Function UOG_Client_Patch Lib "uog.dll" () As Long

Private Sub LaunchPatch()
'Define Local Variables
Dim lProcessID As Long
Dim lPatchesApplied As Long
'Start Client as Suspended Process
lProcessID = UOG_Client_Launch(0)
If lProcessID = 0 Then
UOG_Client_Terminate
MsgBox "CATCH1"
Exit Sub
End If
'Apply Patch To Client
lPatchesApplied = UOG_Client_Patch
If lPatchesApplied = 0 Then
UOG_Client_Terminate
MsgBox "CATCH2"
Exit Sub
End If
'Resume Client
UOG_Client_Resume
End Sub

Private Sub Command1_Click()
'Start Launch/Patch Function
LaunchPatch
End Sub[/code:1]
__________________
Fueled by Bawls :cool:
FallsUpStairs is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5