Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return data from activex dll?
Message
 
To
All
General information
Forum:
Visual Basic
Category:
ActiveX controls
Title:
Return data from activex dll?
Miscellaneous
Thread ID:
00460006
Message ID:
00460006
Views:
55
Very new to this so please bear with me...

I'm trying to send and return the text from a textbox control on a form from an
activex dll called from vfp5. My vfp app calls the inits the dll, sends the
string "hello" and creates the form. "hello" appears in the textbox. Then I type "hello again" in the textbox and click a command button (MyButton).
The button click crashes the dll. I'm sure I'm doing something wrong but
don't know what it is.

Here's what I have so far...

rem start of dll class
Public MyText As String

Public Function Start()
MyScreen.Show (1)
MyScreen.Text1.Text = MyText
End Function

Public Function GetMyText()
GetMyText = MyText
End Function

Public Function SetMyText(SomeText As String)
MyText = SomeText
End Function
rem end of dll class

rem start click of command button MyButton on form MyScreen
MyTextUtil.MyText=Text1.text
rem end click of command button MyButton on form MyScreen

* start of vfp call
oVBObj = CREATEOBJECT("MyDll.MyTextUtil")
oVBObj.SetMyText('hello')
oVBObj.Start()
=messagebox(oVBObj.GetMyText)
* end of vfp call
Reply
Map
View

Click here to load this message in the networking platform