First, the production of GL Studio model, named Dragon3dobject.gls.
Second, in VC + + 7.1 (8.0 and 6.0 also the same) using unlimited live Component Debug or unlimited live Component release compiler.
Compile the build. DLL file, such as the following figure: "DragOn3DObject.dll".
Third, the production of. cab files. Use the Make_cab.bat program provided by GL Studio to package the compiled DLL file, which includes two files: 1, the results of the second step compilation success: Dragon3dobject.dll;2, GL Studio provided VC associated files, The version of the VC associated file is the same as the version of GL Studio you use and the VC + + version. The following figure is the Make_cab.bat program provided by GL Studio:
The following figure is the VC associated file provided by GL Studio:
The following figure is a make_cab.bat program that rewrites the Make_cab.bat program according to its own file path and filename. The following figure is the. cab file that was generated when the Make_cab.bat program was successfully run.
Iv. installation of Glsplayer_4_0_5_0.exe. Load controls in MFC. Loads an ActiveX control named Glsplayer in an MFC program to load a. cab file.
Vi. copy the. cab files generated after the third step Make_cab.bat program is successfully run to the MFC project directory. and set the property page properties of the loaded Glsplayer. Set the component to the name of the file you want to load. cab.
Save and run, the following figure shows the results of the operation:
Attention: 1, use the Make_cab.bat program packaging, use GL Studio to provide VC associated file version and you use the GL Studio version and VC + + version of the same. 2. When you use the Make_cab.bat program to package, the generated. cab file name is the same as the model DLL file name in the. cab package. 3, use. CAB file, you must set the. The CAB file is placed in the directory where your project resides. |
3.jpg (31.46 KB, download times: 28)
Build DLL file