| starla 2004-01-29, 9:33 pm |
| I need to animate a vrml world, taken from a file.
So I create a string, and i read it with Cortona Visual Basic Control,
like this:
code:
Dim stream As TextStream
Dim fso As New FileSystemObject
Set stream = fso.OpenTextFile("c:\myPath\file.wrl", ForReading)
Dim str As String
str = stream.ReadAll
Dim eng As VRMLEngine
Set eng = Cortona1.Engine
eng.AutoRefresh = True
eng.CreateVrmlFromString (str)
eng.Refresh
I expected to see my control filled with the wrl world taken from
file.
Coul anyone help me understand why this doesn't work? I've tried to
find somwthing on the web about vrml and vb, but it seems that
everybody acces vrml from client scripting like Javascript, VBScript
or other languages like Java. I must use Visual Basic, because i'm
doing it for thesis (help me finishing University *'_'* )
|