home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 November
/
Chip_2002-11_cd1.bin
/
zkuste
/
vbasic
/
Data
/
Utils
/
WME71SDK.exe
/
RCDATA
/
CABINET
/
towm_main.bas
< prev
next >
Wrap
BASIC Source File
|
2001-03-02
|
937b
|
41 lines
Attribute VB_Name = "TOWM_Main"
Option Explicit
Sub Main()
Dim Success As Boolean
Dim InputFile As String
Dim OutputFile As String
Dim ProfileName As String
Dim Enc_Class As TOWM_ENCODER
' Create encoder class
Set Enc_Class = New TOWM_ENCODER
' Get the command line arguments
Success = Enc_Class.GetCommandArgs(Command, InputFile, OutputFile, ProfileName)
' If there was a problem, exit with usage message
If Success = False Then
MsgBox "TOWM Usage:" + Chr(13) + Chr(13) + "TOWM -in ""<filename>"" [-out ""< FileName >""] -p ""< ProfileName >"""
Exit Sub
End If
' Configure the encoder
Success = Enc_Class.ConfigEncoder(InputFile, OutputFile, ProfileName)
' If there was a problem, exit with a message
If Success = False Then
MsgBox "Error configuring encoder"
Exit Sub
End If
' Run the encoder
Enc_Class.RunEncoder
End Sub