Thread

MrGrimm's OCX and VBA (Sdk)

MrGrimm's OCX and VBA // Sdk

1  |  

mulligan

Apr 30, 2000, 7:05am
Has anyone had any luck utilising the OCX and Type Library under a VBA
environment such as Microsoft Access '97/2000? I use VBA and a number of
ActiveX controls day-in day-out at work, but I'll be damned if I can get the
SDK to work under Access '97. I have the wrapper registered as a control and
included in my list of References. Rather than use the control on a form,
I've declared an object variable of type AwSdkOcx and I'm working with that.
However, my first call to AwCreate throws an illegal operation.

My code works something like this -

Dim SDK As AwSdkOcx ' local to the form class module

Private Sub cmdLogin_Click()

Dim rc As Integer

Set SDK = Me!axSDK.Object ' make explicit reference to object property,
unlike VB

rc = SDK.AwInit(AW_BUILD)
SDK.AwEventSet AW_EVENT_AVATAR_ADD
rc = SDK.AwCreate("0", 0) ' this throws the illegal op

Can anyone cast any light on what I'm doing wrong? My libs are all the
correct versions as I've managed to write a few little apps in C++ quite
happily.

Thanks in advance.

Mulligan.

rick56

May 22, 2000, 10:50pm
Hi, I have the OCX and it works perfectly fine for me except I have VB 6 and
I'm not all that sure that the OCX will work with Access.

[View Quote]

rick56

May 23, 2000, 1:41pm
Of course I could be wrong, I haven't looked at the site for some time.

*scratches head*

[View Quote]

rick56

May 23, 2000, 1:41pm
Of course I could be wrong, I haven't talked to grimm or been to the site
lately, I'll check and if I figure it out I'll tell you...

=D

[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