The information in this article applies to:
- Microsoft Electronic Forms Designer, version 1.0, running with
Microsoft Mail for PC Networks, version 3.0 or 3.2
SUMMARY
Normally, when a user reads or opens an electronic form (E-form) created in
version 1.0 of Microsoft Electronic Forms Designer, Microsoft Mail for PC
Networks directly executes the .EXE file specified in the custom message
declaration in the MSMAIL.INI or SHARED.INI file.
When you debug a Read or Compose form used to display an unsent message, it
is useful to have Mail start Microsoft Visual Basic for Windows in design
mode on the E-form's project so you can set break points and step through
the E-form code.
MORE INFORMATION
The following steps describe how to debug an electronic form in design
mode:
- In the [Custom Messages] section of the MSMAIL.INI file, modify the
command-line parameter of the custom message declaration for the
E-form so it includes the path to VB.EXE, the path to the project
file for the E-form (EFORM.MAK), and a /CMD flag before the other
command-line arguments passed to Visual Basic.
The two sample declarations below show how to modify the
command-line parameter of the custom message declaration for a
sample E-form. The paths specified in the declaration are only
examples; the paths in your declaration will depend on the location
of the files on your machine.
Normal Declaration Example
--------------------------
IPM.VendorName.Sample=3.0;;Sample Form;;C:\WINDOWS\SYSTEM\MEFLIB.DLL;
<MC:IPM.VendorName.Sample>C:\VB\EFORMS\PROJECTS\SAMPLE\SAMPLE.EXE
-MSG <COMMAND><MESSAGEID>;1111111000000000;Sample Form;;;
Debugging Declaration Example
-----------------------------
IPM.VendorName.Sample=3.0;;Sample Form;;C:\WINDOWS\SYSTEM\MEFLIB.DLL;
<MC:IPM.VendorName.Sample>C:\VB\VB.EXE
C:\VB\EFORMS\PROJECTS\SAMPLE\EFORM.MAK /CMD-MSG
<COMMAND><MESSAGEID>;1111111000000000;Sample Form;;;
- Exit and restart Mail.
- Exit Microsoft Visual Basic, if it is running.
- Read or compose a message using the form. Instead of the E-form,
Microsoft Visual Basic appears and you can step through the E-form
code. You must exit Microsoft Visual Basic each time you open a new
message in Mail.
|