Fax Software

Community Forums

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2615
    Anonymous
    Member

    I’m using the Image Conversion object in the SDK to convert from WinFax format to TIFF, in a Windows Script Host VBScript. The ConvertFromFX method, according to the docs, returns an SCODE – ‘S_OK on success or one of the error codes shown under “Result Codes” on page 9-9’. However, every attempt to use this return value results in a ‘Type Mismatch’ message – CStr(result), for example. It is as if it is not in reality an SCODE. Is this a documentation fault? If so, what is the real result type, and if not, how can I test it with WSH?

    TIA

    #4422
    JohnD
    Participant


    ‘ 32 bit error values as per Win32 standard (see winerror.h)

    ‘ Use CLng(result) to convert error codes returned from the Conversion interface
    ‘ into values that can be compared to these constants.



    Public Const errFxconvertFileInfo As Long = &HE0040101 ‘ Failed to fetch file information
    Public Const errFxconvertInitBitmap As Long = &HE0040102 ‘ Failed to initialize file read structure
    Public Const errFxconvertSetPageToRead As Long = &HE0040103 ‘ Unable to set number of page to be read from file
    Public Const errFxconvertCantWriteDest As Long = &HE0040104 ‘ Unable to save file to disk in indicated format
    Public Const errFxconvertCantReadSrc As Long = &HE0040105 ‘ Unable to read file from disk
    Public Const errFxconvertBadPageNumber As Long = &HE0040106 ‘ Invalid page number
    Public Const errFxconvertBadFxFormat As Long = &HE0040107 ‘ Invalid FX format code
    Public Const errFxconvertBadBitsPerPixel As Long = &HE0040108 ‘ Invalid bits per pixel
    Public Const errFxconvertBadFormat As Long = &HE0040109 ‘ Invalid format code
    Public Const errFxconvertDescriptionTooLong As Long = &HE004010A ‘ Description string is too long

    Public Const errFxconvertUnknown As Long = &HE0040120 ‘ Unexpected error code
    Public Const errFxconvertCantCreate As Long = &HE0040121 ‘ Unable to create file
    Public Const errFxconvertFailedToOpen As Long = &HE0040122 ‘ Unable to open file
    Public Const errFxconvertBadWrite As Long = &HE0040123 ‘ Error writing to file
    Public Const errFxconvertBadRead As Long = &HE0040124 ‘ Error reading file
    Public Const errFxconvertNotOpen As Long = &HE0040125 ‘ File was expected to be open
    Public Const errFxconvertBadSeek As Long = &HE0040126 ‘ Error seeking in file
    Public Const errFxconvertLineCount As Long = &HE0040127 ‘ Unable to determine image linecount
    Public Const errFxconvertNotFxFormat As Long = &HE0040128 ‘ File is not a proper FX? format file

    this is from
    http://www.getfaxing.com/downloads/ifxconv.bas

    hope that helps

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.