Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from MailMan.LoadMbx to MailMan.LoadMbxFile
Provides instructions for replacing deprecated LoadMbx method calls with LoadMbxFile.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oMailman
LOCAL cFilePath
LOCAL oBundleObj
LOCAL oBundleOut
nSuccess := 0
oMailman := CreateObject("Chilkat.MailMan")
// ...
// ...
cFilePath := "c:/test/example.mbx"
// ------------------------------------------------------------------------
// The LoadMbx method is deprecated:
oBundleObj := oMailman:LoadMbx(cFilePath)
IF (oMailman:LastMethodSuccess == 0)
? oMailman:LastErrorText
oMailman:destroy()
RETURN
ENDIF
// ...
// ...
oBundleObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using LoadMbxFile.
// Your application creates a new, empty EmailBundle object which is passed
// in the last argument and filled upon success.
oBundleOut := CreateObject("Chilkat.EmailBundle")
nSuccess := oMailman:LoadMbxFile(cFilePath, oBundleOut)
IF (nSuccess == 0)
? oMailman:LastErrorText
oMailman:destroy()
oBundleOut:destroy()
RETURN
ENDIF
oMailman:destroy()
oBundleOut:destroy()