Thread

3.6 VB SDK in creation! (Sdk)

3.6 VB SDK in creation! // Sdk

1  |  

r i c h a r d

Jul 24, 2004, 9:58am
Im currently in the process of creating a class file that will be able to
use the 3.6 sdk features of Aw.dll in VB.

It's quite simple if you want to create your own class though, simpley use
this as a template.

Private Declare Function aw_init Lib "aw.dll" (ByVal build As Integer) As
Integer
Private Declare Function aw_create Lib "aw.dll" (ByVal universe_domain As
String, ByVal universe_port As Integer, ByVal instance As Integer) As
Integer
Private Sub Form_Load()
rc = aw_init(39)
MsgBox rc
rc = aw_create("auth.activeworlds.com", 5670, 0)
MsgBox rc
End Sub

You'll notice both RC's will be 0. Now change the host to
www.nosuchuniverse.com and ull find youll get the unable to connect RC.

Only problem with this is i am still unsure how to impliment the event
handlers in VB though im sure ill get there!

r i c h a r d

Jul 24, 2004, 10:35am
Public Declare Function aw_string_set Lib "aw.dll" (ByVal a As AW_ATTRIBUTE,
ByVal Value As String) As Integer

Public Declare Function aw_string Lib "aw.dll" (ByVal a As AW_ATTRIBUTE) As
String

Public Declare Function aw_int_set Lib "aw.dll" (ByVal a As AW_ATTRIBUTE,
ByVal Value As Long) As Integer

Public Declare Function aw_int Lib "aw.dll" (ByVal a As AW_ATTRIBUTE) As
Integer



I am able to get these to work on VB.NET but if I use them in VB6 it wont
actually change the attrib?

r i c h a r d

Jul 24, 2004, 10:38am
Oh well ill continue on the VB.NET for now though if anyone knows how to
solve the problem please let me know.

http://www.xeonsoft.co.uk/awsdk.jpg

strike rapier

Jul 24, 2004, 11:44am
Already have this lot somewhere... problem is distinct lack of the events,
although VarPtr may help...

- MR

[View Quote]

strike rapier

Jul 26, 2004, 3:17pm
o_0 thats going to blow up rather quickly on VB6 for anyone trying it....

VB.NET int = VB6 Long
VB.NET short = VB6 Int

- MR

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn