Jscript executing



Is it posibble to executing JavaScripts from VB6 by MSScriptControl but I want to pass pointer to VB Object???
Anyway my example: (not works, Why? )


Set MyClass = New Class1

    ScriptControl1.AddObject "MyClass", MyClass
    ScriptControl1.ExecuteStatement "MyClass.MyDate = Now()"

    MsgBox MyClass.MyDate

    Set MyClass = Nothing
.



Relevant Pages

  • VB6 and Win32 DLL interaction
    ... I have exposed some classes via a C API to VB. ... I am then wrapping up the exposed function in VB6 classes. ... dim objMyStuff as MyStuff ... The VB6 class will hold the pointer as a private variable - and fre the pointer when the object is going out of scope - in its Terminateevent. ...
    (microsoft.public.vb.enterprise)
  • Howto Write a VB6 Compatible DLL?
    ... figure out how to pass them in and out from VB6. ... Dim userid, latitude, longitude As Long ... It seems to be pointer ... VB compatible DLL? ...
    (microsoft.public.vb.general.discussion)
  • Re: Using the VB/VBA Collection class in C++ code
    ... I am not familar with the O'Reilly's Safari books, ... Presumably that means I take a reference passed in by my VB6 ... ...the reference to store my pointer internally in my ATL/COM object. ...
    (microsoft.public.vc.atl)
  • Re: Use of Mid Statement in VB.Net
    ... The Mid is not a VB6 statement, it is a Visual Basic statement which is in all versions from VB including VBS and VBA. ... All "language" elements from Visual basic are still in Visual Basic language version 9 and will be in language version 10. ... However in Net is the String not very inefficient, which has in fact nothing to do with Visual Basic. ... Mid(buffer, pointer, MyFields.mfRecordType) = "A" ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Translate VC (delegate) to VB6
    ... I have no real idea how to convert this to VB6, in fact it is even unclear ... What's on the left hand is a pointer that points to a location in memory ... Dim ptrValue As Long ... CopyMemory ByVal VarPtr, ByVal ptr, 4 ...
    (microsoft.public.vb.com)