Hello,
I am having problems with the IVRMLEventCallback object with the Vb.Net platform.
This code:
1 listsr = New cls_Listener
2 Engine.Nodes.Item("my_touch_sensor").Fields.Item("touchTime").Advise(listsr)
Where cls_listener implements the IVRMLEventCallback interface, returns a "Specified cast is not valid" error at line 2.
Is there a workaround solution to this problem, or is IVRMLEventCallback object not supported anymore on the VB.net platform?
Thanks
Dan
Have you tried to delete the VRMLAutomation interop and recreate it? (The Interop.VRMLAutomation.dll file that may be found in the 'obj' subfolders and in the 'bin' subfolders.)
You could also try to remove the reference to the VRML Automation, then add it to project again.