Reference methods for using the GL Studio model in MFC

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.