VIDEO.LoadFile |
state = VIDEO.LoadFile( BYVAL nControl AS INTEGER, BYVAL filename AS STRING, BYVAL options AS INTEGER = 0 ) AS INTEGER
state = VIDEO.LoadFile( BYVAL nControl AS INTEGER, BYVAL C3DFid AS HANDLE, BYVAL options AS INTEGER = 0 ) AS INTEGER
Loads a file into the Video Control. The file can be a C3D file or an ASCII file. If the ASCII file is a MaxMATE formatted file then loadfile will import automatically. You can also load a previously opened C3D file by supplying the C3D File ID returned from a call to C3D_open
The following constants have been define in MyBASIC2_MaxD3D.BAS
' LoadFile Option Flags CONST MT_OPT_None = 0x00000000 CONST MT_OPT_Use_Wizard = 0x00000004
Example:
IF VIDEO.LoadFile( nControl, file ) <> 0 THEN PRINT "Error Opening C3D File '";file;"'", ENDIF
|