Building Mailbox Agent Elements

Files necessary to create the mailbox agent can be built as a set by executing the makefile under \BKOFFICE\SAMPLES\EXCHANGE, or each individual sample application can be built.

    To build all the files necessary to create a mailbox agent
  1. Change to the directory that contains the source code for the sample applications:

    \BKOFFICE\SAMPLES\EXCHANGE

  2. Type NMAKE.

    This process takes 45 minutes or more, depending on the performance of your computer. At least 12 MB of disk space is required.

    To build SMBAGENT.EXE
  1. Change to the directory containing the SMBAGENT source files:

    \BKOFFICE\SAMPLES\EXCHANGE\SMBAGENT

  2. Type NMAKE.
    To build SMBADMIN.DLL
  1. Change to the directory containing the SMBADMIN source files:

    \BKOFFICE\SAMPLES\EXCHANGE\SMBADMIN

  2. Type NMAKE.

    If you have not changed the SMBAGENT or SMBADMIN source files, you can prepare your files for the MBSETUP install program by executing the makefile in the MBSETUP directory.

    To prepare files for MBSETUP install using MBSETUP makefile
  1. Change to the MBSETUP directory:

    \BKOFFICE\SAMPLES\EXCHANGE\MBSETUP

  2. Run the NMAKE command using the /F flag and the MBSETUP.MAK input file:

    NMAKE /F MBSETUP.MAK

The process will use the default settings for the BLDTYPE and TARGETDIR environment variables unless you include these parameters on the command line. To view the environment variables, type SET at the command prompt.

Executing this makefile will automatically change the MBSETUP.INF file and move your files from their present directory location to the directory from which they are to be installed.

If you have changed any of the files or if your directory structure is not standard, you may want to move the files to the target directory individually and edit the MBSETUP.INF file. In that case, change the MBSETUP.INF file by following the steps in the following procedure.

    To change file sizes and move files for the MBSETUP setup utility
  1. Examine the MBSETUP.INF file.

    \BKOFFICE\BIN\SAMPLEMB\MBSETUP.INF contains the following lines:

    [Local] 
    1, smbagent.exe,,,, 1996-06-29, !DECOMPRESS,,, !READONLY,,,,,, 
    876444,,,,, !VITAL
    
    [Server] 
    1, smbadmin.dll,,,, 1996-06-29, !DECOMPRESS,,, !READONLY,,,,,, 
    23484184,,,, !VITAL
     

    The numbers 876444 and 23484184 are the file sizes of SMBAGENT.EXE and SMBADMIN.DLL, respectively, in this example file. The numbers will vary for different versions of the MBSETUP.INF file. If these numbers do not match the actual sizes of the files on disk, errors will occur when you attempt to install SMBAGENT.

  2. Find the actual file sizes. Change to the directory containing the file:

    \BKOFFICE\SAMPLES\SMBAGENT\WIN32\DEBUG

    Type DIR to list the files in this directory. Check the size of SMBAGENT.EXE and change the MBSETUP.INF file if the numbers do not match. Then find the actual file size for the SMBADMIN.DLL file by changing to the directory containing the file:

    \BKOFFICE\SAMPLES\SMBADMIN\WIN32\DEBUG

    Type DIR. Note the file's size and change the size in the MBSETUP.INF file if needed. If the numbers in the MBSETUP.INF file do not match the actual sizes of the files on disk, errors will occur when you try to install SMBAGENT.

  3. Move the SMBADMIN.DLL and SMBAGENT.EXE files to the \BKOFFICE\BIN\SAMPLEMB directory. Replace files of the same name located in the directory. You may wish to keep a copy of the replaced file in case you need to build and run it later.