How to Use the MinMaxShip Sample
The MinMaxShip sample can be found in the MinMaxShip directory of the Order Processing samples directory. For example, C:\Program Files\Microsoft Commerce Server\SDK\Samples\Order Processing\MinMaxShip. In the MinMaxShip directory, the Visual Basic code is in the folder named VB, and the C++ code is in the folder named ATL.
To build the Visual Basic sample
To build the Visual C++ ATL sample
To run the MinMaxShip sample
To build the Visual Basic sample
Click Start, point to Programs, point to Microsoft Visual Studio, and then click Microsoft Visual Basic.
On the File menu, click Open, and then navigate to the directory that contains the MinMaxShipVB.vbp file. For example, C:\Program Files\Microsoft Commerce Server\SDK\Samples\Order Processing\MinMaxShip\VB. Select the MinMaxShipVB.vbp file.
On the File menu, click Make MinMaxShipVB.dll.
After the project has been built, on the File menu, click Exit.
The Visual Basic MinMaxShip sample is now built on your computer.
To build the Visual C++ ATL sample
Click Start, point to Programs, point to Microsoft Visual Studio, and then click Microsoft Visual C++.
On the File menu, click Open, and then navigate to the directory that contains the MinMaxShip.dsw file. For example, C:\Program Files\Microsoft Commerce Server\SDK\Samples\Order Processing\MinMaxShip\ATL. Select the MinMaxShip.dsw file.
On the Build menu, click Build MinMaxShip.dll.
After the project has been built, on the File menu, click Save Workspace.
To close the program, on the File menu, click Exit.
The ATL MinMaxShip sample is now built on your computer.
Running the Sample
To the MinMaxShip samples, you must first install one of the Commerce Server 2000 Solution Sites. After you have installed one of these sites, go to the directory containing the Business Desk files, and perform the following procedure.
To run the MinMaxShip sample
Copy the file MinMax_edit.asp from the BizDesk directory in the MinMaxShip directory to the Shipping directory in Business Desk on the installed site. For example, copy MinMax_edit.asp from C:\Program Files\Microsoft Commerce Server\SDK\Samples\Order Processing\MinMaxShip\BizDesk to C:\InetPub\wwwroot\RetailBizDesk\Shipping.
Copy the file Shipping_methods.xml from the Business Desk directory in the MinMaxShip directory to the Config directory in Business Desk on the installed site. For example, copy Shipping_methods.xml from C:\Program Files\Microsoft Commerce Server\SDK\Samples\Order Processing\MinMaxShip\BizDesk to C:\InetPub\wwwroot\RetailBizDesk\Config.
If you are running the Visual Basic sample, you must open the file MinMax_edit.asp, and change the following line of code:
g_sProgID = "commerce.minmaxshipatl.1"
to
g_sProgID = "commerce.MinmaxShipVB".
Note
- This step is not required for the Visual C++ ATL sample.
After the custom Shipping Method module is updated, you can use it to configure new shipment methods of type "MinMaxShip."