If you formerly used the Spread version 3.0 DLL control and now want to use the Spread version 8.0 DLL control, complete the following steps.
![](images/hs-note.gif) |
Note: Back up your project before making any changes. |
- Open your existing project.
- Update the include path so that the new version of SSDLL.H is included in the project.
- Update the include path so that the new versions of SSDLLMFC.H and SSDLLMFC.CPP are included in the project.
- If you used the LoadLibrary function, make the following change:
Change: LoadLibrary("SPR32D30.DLL")
To: LoadLibrary("SPR32D80.DLL")
- If you hard coded the class name of the Spread control in your project, make one of the following changes:
Use the define (SS_CLASSNAME)
Make the following change:
Change: fpSpread30
To: fpSpread80
- If you used the SSSetTypeComboBoxEx function you need to add a new parameter (bAutoSearch) to the end of the function.
The following settings are available:
Setting |
Description |
0 - None |
Removes the searching capability |
Constant: SS_COMBO_AUTOSEARCH_NONE |
1 - Single Char (Default) |
Lets the user type a single search character |
Constant: SS_COMBO_AUTOSEARCH_SINGLECHAR |
2 - Multiple Char |
Lets the user type more than one search character |
Constant: SS_COMBO_AUTOSEARCH_MULTIPLECHAR |
3 - Single Char (Greater or Equal) |
Lets the user type a single search character or, if the search character is not found, the next item starting with a greater character |
Constant: SS_COMBO_AUTOSEARCH_SINGLECHARGREATER |
- If you are working in C++ and your project used the ExportToExcel function you might need to remove the hWnd parameter from the beginning of the function in your code. Some previous versions of Spread erroneously included an hWnd parameter in the ExportToExcel function provided in the SSDLLMFC.H file. That parameter has been removed in the ExportToExcel function provided with Spread 8.0.
- If your project links to SS32D30.LIB, load the SPR32D80.LIB file instead.
- Review the changes in Changes to DLL Components and update your project to replace Obsolete Functions.
- Rebuild your project and run it.
![](images/hs-note.gif) |
Note: To find the class name for the controls, search for the define SS_CLASSNAME in the SSDLL.H file. |