Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Ultima SDK

Ultima SDK Support for the Ultima SDK.

Closed Thread
 
Thread Tools Display Modes
Old 11-24-2003, 04:23 PM   #1 (permalink)
 
Join Date: Nov 2003
Posts: 27
Default How do I make a VB6 program for UO using ultima.dll?

How do I make a VB6 program for UO using ultima.dll?
superjake88 is offline  
Old 11-24-2003, 07:40 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

You wouldn't.

I don't think you can use a .NET dll with VB 6
Phantom is offline  
Old 11-24-2003, 07:58 PM   #3 (permalink)
 
Join Date: Oct 2002
Age: 22
Posts: 4,689
Default

You can use it with VB.NET but not VB 6.
XxSP1DERxX is offline  
Old 11-24-2003, 08:01 PM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Like I said:

I don't think, infact I know for a fact you can't, use a .NET dll with VB 6. Now you could use it with C++ if you compiled it with the .NET compiler.

Thats what razor has done. .NET applications can also use non-.NET dll's but VB 6 can't support .NET

Reason they made VB .NET
Phantom is offline  
Old 11-25-2003, 02:42 PM   #5 (permalink)
 
Join Date: Nov 2003
Posts: 27
Default

But VB.NET is like a whole different language isnt it.. Oh well, thanks anyways!
superjake88 is offline  
Old 11-25-2003, 05:48 PM   #6 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Yes

VB.NET is VB .NET it is updated with types of things, alot of the old methods still work, some don't.

Really depends on the subject.
Phantom is offline  
Old 11-26-2003, 09:54 AM   #7 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 485
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

Quote:
Originally Posted by Phantom
You wouldn't.

I don't think you can use a .NET dll with VB 6
You can, but it's not very easy. What you have to do is create a wrapper class around the DLL, and expose that wrapper class as a COM component. Then from VB6 you need to use the create object command to create an instance of your wrapper class. The computer will still need to have the .NET framework installed for this to work.

For those of you who will doubt me on this, please see http://msdn.microsoft.com/chats/vstu...dio_091002.asp and http://msdn.microsoft.com/library/de...nentstocom.asp
Bradley is offline  
Old 11-26-2003, 11:56 AM   #8 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Why I said "Don't" "think" "so"

I figured it most likely was possible, but I knew nobody here would be able to do it, hell I wouldn't do it, learning VB.NET is easier then doing it that way
Phantom is offline  
Old 11-26-2003, 12:27 PM   #9 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 485
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

Quote:
Originally Posted by Phantom
Why I said "Don't" "think" "so"

I figured it most likely was possible, but I knew nobody here would be able to do it, hell I wouldn't do it, learning VB.NET is easier then doing it that way
I believe your exact words were:

Quote:
Originally Posted by Phantom
I don't think, infact I know for a fact you can't, use a .NET dll with VB 6.
Bradley is offline  
Old 11-26-2003, 01:20 PM   #10 (permalink)
psz
UO Gamers: Demise Administrator
 
psz's Avatar
 
Join Date: Oct 2002
Location: Swamp
Age: 28
Posts: 10,649
Default

Which is technically true: By default you CAN'T. You have to "create a wrapper class around the DLL", as you said.
__________________
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)
psz is online now  
Old 11-26-2003, 01:27 PM   #11 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 485
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

Quote:
Originally Posted by psz
Which is technically true: By default you CAN'T. You have to "create a wrapper class around the DLL", as you said.
Nope. The wrapper class is written in .NET and compiled into a DLL and exposed to COM. The VB6 application uses that wrapper class. Since the wrapper class is written in .NET and IS a DLL you have now used a .NET DLL in a VB6 application. And that proves that Phantom is wrong in this case, which was my whole point.

Infact, the only reason you have to create the wrapper class in this case is because the UOSDK isn't exposed to COM (at least i don't think it is). If the SDK was exposed to COM as an object the wrapper wouldn't even be needed, you could call the SDK directly from VB6 using the COM interface IUnknown.
Bradley is offline  
Old 04-07-2004, 03:40 PM   #12 (permalink)
 
Join Date: Apr 2004
Age: 25
Posts: 8
Default

Hi all,

If you like VB and UO go to my web page... i make some mul decode

samples... on VB for all+)

http://mudator.by.ru/UoHuffman.zip - NON CRYPT UO CLIENT ....
http://mudator.by.ru/vbSpeed.zip - 100% ASM +) Add to VB some function as

vbShl vbShr vbSar vbSal vb16to32

http://mudator.by.ru/index_old.html - mul decode function...
http://mudator.by.ru/index_new.html - update for some mul samples.... but not for all +)


decode samples consist : Animation, Gump Art, Multi Map, Light Map, Art Land, Art Static, Textures, Fonts, Skills, Hues, Speech, Sound, TileData,
UniFont, RadarCol, Map, Palette and other....
Fallout is offline  
Old 04-07-2004, 04:43 PM   #13 (permalink)
 
Mifune's Avatar
 
Join Date: Dec 2003
Age: 23
Posts: 430
Send a message via ICQ to Mifune Send a message via AIM to Mifune Send a message via Yahoo to Mifune
Default

Wow, those look like some very useful tools... and just when I thought I had uploaded all the mul editing tools in existence to my web server... but this is a good kind of problem.

Is there perhaps a chance that you could make an English version of your website?
__________________


I guess I wouldn't want to be exposed as a forum nazi for deleting a 20-page thread either.
Mifune is offline  
Old 04-08-2004, 09:01 AM   #14 (permalink)
 
Join Date: Apr 2004
Age: 25
Posts: 8
Default

From Russia with love +)

Go to my page http://mudator.by.ru .... then CLICK on link "All samples (ENG)"


P.S: My English not so good +) so it is +)
Fallout is offline  
Old 04-09-2004, 01:33 PM   #15 (permalink)
 
Mifune's Avatar
 
Join Date: Dec 2003
Age: 23
Posts: 430
Send a message via ICQ to Mifune Send a message via AIM to Mifune Send a message via Yahoo to Mifune
Default

I encountered an error while using MulMultiProjet(Animation). I'm trying to set the path for anim.idx, and when I click on Get Id, the numbers appear on the righthand side, but then it gives me the following error and crashes:

Quote:
Run-time error '5';

Invalid procedure call or argument
Also, just a thought, but have you ever thought about putting all those single-function programs together into one program?

Another thought, you may want to program some sort of "Loading..." throbber while the program is loading mul data, such as when I clicked Get Id in the Anim program.
__________________


I guess I wouldn't want to be exposed as a forum nazi for deleting a 20-page thread either.
Mifune is offline  
Old 04-09-2004, 05:51 PM   #16 (permalink)
 
Join Date: Apr 2004
Age: 25
Posts: 8
Default

Hm... all samles... from my web .... is worked....

set paths .... to your
anim.mul
anim.idx

then push "Set Path's" button .... and then push "Get Id" ... and all work fine.... look at screenshot ... it get from this samle...


My project must show your how to decode UO FORMATS .... in VB6.... if your know VB6 .... make your own program .... based on this samles.... use decode classes from samples... and create your program
Fallout is offline  
Old 04-09-2004, 11:17 PM   #17 (permalink)
 
Mifune's Avatar
 
Join Date: Dec 2003
Age: 23
Posts: 430
Send a message via ICQ to Mifune Send a message via AIM to Mifune Send a message via Yahoo to Mifune
Default

I can't really explain it, except perhaps that I'm using Windows 98, but Anim won't work for me.

Anyway... sorry for misunderstanding your project's goals.

Still, I think it would be an improvement if it were all one program. It would basically be the VB6 InsideUO.
__________________


I guess I wouldn't want to be exposed as a forum nazi for deleting a 20-page thread either.
Mifune is offline  
Old 04-10-2004, 11:31 AM   #18 (permalink)
 
Join Date: Apr 2004
Age: 25
Posts: 8
Default

1) Examples should work on Windows 98 100 %
2) Try to start an example in VisualBasic 6 SP5 this method help with your problem (in archive with an example his source code)
3) If to do analogue InsideUO that will be easier to understand in what is necessary to do better than InsideUO =) And time at me not so much = (
Fallout is offline  
Old 05-24-2004, 03:17 PM   #19 (permalink)
 
ainis's Avatar
 
Join Date: Jun 2003
Age: 38
Posts: 54
Default

Well ... it would be nice to have only one program that "decode" and "encode" too. Opensource could be a dream.
__________________
We all live in a yellow subroutine
ainis is offline  
Old 07-10-2004, 10:45 PM   #20 (permalink)
Newbie
 
Join Date: Apr 2004
Location: Alabama
Age: 19
Posts: 91
Send a message via ICQ to weaselboy246 Send a message via AIM to weaselboy246
Default

may i change the subject a bit, how would i make this so called program using SharpDevelop?

EDIT: Sorry for the bump, didn't notice the time diff. since the topic is on the same pages as the last post
weaselboy246 is offline  
Old 07-12-2004, 11:04 PM   #21 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by weaselboy246
may i change the subject a bit, how would i make this so called program using SharpDevelop?

EDIT: Sorry for the bump, didn't notice the time diff. since the topic is on the same pages as the last post
Start making the program, by having a form class.
Phantom is offline  
Old 02-24-2005, 07:57 AM   #22 (permalink)
Forum Novice
 
Join Date: Mar 2004
Location: Czech Republic
Age: 28
Posts: 109
Send a message via ICQ to RadstaR
Default

Fallout > Your homepage does not work
Can you help me .. how resolution have char in unifont ... unifont2.mul ? Your editor is realy simple, but only one for this
RadstaR is offline  
Old 02-24-2005, 08:02 AM   #23 (permalink)
Master of the Internet
 
Quantos's Avatar
 
Join Date: Apr 2003
Location: Edmonton, AB
Age: 41
Posts: 6,867
Send a message via ICQ to Quantos Send a message via AIM to Quantos Send a message via MSN to Quantos Send a message via Yahoo to Quantos
Default

Quote:
Originally Posted by RadstaR
Fallout > Your homepage does not work
Can you help me .. how resolution have char in unifont ... unifont2.mul ? Your editor is realy simple, but only one for this
Read the RULES. Do NOT revive old threads.

*Thread Closed*

If you need support, start your own thread.
__________________
Paranoia is what happens when you finally have all of the facts.
Quantos is offline  
Closed Thread

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