Page 903 - ExtendSim User Guide
P. 903

Cross-Platform Considerations 877
Transferring files between operating systems
appear. In the dialog, choose Also save to library. This process is described in “Summary of results of modifying hierarchical blocks” on page 628.
Libraries
The libraries that come with your ExtendSim package are already formatted correctly for your operating system. However, if you build your own libraries, and want to transfer them to a computer running a different operating system, you must convert them to the appropriate oper- ating system format. You do this on the Mac OS computer using the Libraries > Tools > MacWin Conversion command (See “MacWin Conversion (Mac OS only)” on page 823). This converts libraries to the specified operating system format, ensures that the file names are properly formatted, and so forth.
After the libraries have been converted to Windows or Mac OS format, physically transfer them to the target computer (that is, keep them on the Mac OS or transfer them to a Windows computer). Then recompile the libraries under the target computer’s operating system using the Library > Tools > Compile Open Library Windows command.
The MacWin Conversion converts libraries to either Windows or Mac OS format. After con- version, you must recompile the library on the target computer. When you do this, the library will compile to native code for the target system. For example, if you compile on a Windows computer, the library will be in native Windows mode. If you compile on a Power Mac OS computer, the library will be in native Power Mac OS mode.
Blocks that use the equation functions
If you build blocks that use the equation functions, your code needs to detect if the model is being opened on a different platform. See the ExtendSim Developer Reference for more infor- mation.
Extensions
Extensions are files (such as pictures and DLLs) that can be accessed by ExtendSim to fulfill specialized tasks. Like libraries, the extensions that come with your ExtendSim package are formatted correctly for your operating system. However, if you build your own extensions, and you want to transfer your extensions or blocks to a computer running a different operating sys- tem, you will need to do some conversion:
• Pictures:AsdiscussedintheDeveloperReference,ExtendSimforWindowsacceptsthree kinds of pictures: WMF (Windows MetaFiles), BMP (Bitmap), and a Mac OS picture resource file that has been converted to Windows format. ExtendSim for the Mac OS accepts only picture resources. To convert Mac OS picture resource files to Windows format, use ExtendSim’s MacWin Converter utility on the Mac OS. To convert Windows pictures to Mac OS format, use a graphics conversion application.
• Sounds: Shareware utilities are available to convert Mac OS sound resources (SNDs) to Windows sound files (.WAV) and vice versa.
• DLLsandSharedLibraries:OnWindowstheDLLfunctionswillsearchtheExtendSim Extensions folder for a DLL file. For the Mac OS those same calls will search for a Shared Library file.
For more information, see the Developer Reference.
Appendix


































































































   901   902   903   904   905