|
||
|
|||||||
| Third Party Program Support Misc support forum and advertisment forum for all RunUO related third party Utilities. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | |
|
Forum Expert
Join Date: Oct 2002
Posts: 508
|
Does anyone have any tips on how I'd go about making a shard connection utility using UOG.DLL in Visual Basic 6 instead of C#? This is what it says in the info. file...
Quote:
.... [code:1]Private Sub Command1_Click() UOG_Client_Launch Client(0) End Sub[/code:1] ? Thanks all
__________________
Fueled by Bawls :cool: |
|
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Posts: 508
|
Oh yeah, and I tried the following, to no avail:
[code:1]Option Explicit Private Declare Function Patch Lib "uog.dll" (ByVal UOG_Client_Patch As Integer) As Integer Private Declare Function Launch Lib "uog.dll" (ByVal UOG_Client_Launch As Integer) As Integer Private Sub Command1_Click() UOG_Client_Launch (1) End Sub[/code:1]
__________________
Fueled by Bawls :cool: |
|
|
|
|
|
#3 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,870
|
There was a C# file packaged with the latest UOG version (written by me) you can use that without much effort in VB.net, 6 on the other hand... well... why are you using vb 6 anyway.
__________________
Zippy, Razor Creator and RunUO Core Developer The RunUO Software Team "Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal." ~The Cryptonomicon |
|
|
|
|
|
#5 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
|
Why not use the Framework? All new versions of Windows come with it preinstalled, it's included in all current Service Packs, and it's portable...
Besides, anyone running RunUO or Razor will already have it ;->
__________________
psz Demise' Creator (Retired) The RunUO.com Forum Moderator Team Former Official RunUO Scripter (Retired) Websites: My 360 Blog My Gaming Site(Old Link) My Gaming Site(New Link) |
|
|
|
|
|
#8 (permalink) | |
|
Forum Expert
Join Date: Oct 2002
Posts: 508
|
Quote:
__________________
Fueled by Bawls :cool: |
|
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
|
Most new windows versions already have it and its not too hard to install it on a win98 OS or whichever ones didn't come with it...
but heres an answer i guess... you have to import the method from the .dll look at the UOGDLL.cs and see how C# does it. Translate it to VB |
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Posts: 508
|
I have tried that but I can't get it to run correctly. I'm not good at getting DLL functions.
This is how they did it in the example: [code:1] [DllImport( "uog.dll", EntryPoint="UOG_Client_Launch", ExactSpelling=true, CallingConvention=CallingConvention.StdCall)] public static extern int Launch( int client ); [DllImport( "uog.dll", EntryPoint="UOG_Client_Launch", ExactSpelling=true, CallingConvention=CallingConvention.StdCall)] public static extern int Launch( string clientPath ); [DllImport( "uog.dll", EntryPoint="UOG_Client_Terminate", ExactSpelling=true, CallingConvention=CallingConvention.StdCall)] public static extern int Terminate(); [DllImport( "uog.dll", EntryPoint="UOG_Client_Patch", ExactSpelling=true, CallingConvention=CallingConvention.StdCall)] public static extern int Patch(); [DllImport( "uog.dll", EntryPoint="UOG_Client_Resume", ExactSpelling=true, CallingConvention=CallingConvention.StdCall)] public static extern int Resume();[/code:1]
__________________
Fueled by Bawls :cool: |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|