Why do I receive an error when I try to create the .EXE file in the Magic Square demo of the documentation for MATLAB Builder for COM 1.1.4 (R14SP2)?

1 view (last 30 days)
When I try to create the executable in the Magic Square demo of the MATLAB Builder for COM documentation located at:
web([docroot,'/toolbox/combuilder/ug/f11621.html'])
I receive the following error message from my Visual Basic editor:
Compiler error
Userdefined type not defined

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
There is an error in the documentation for MATLAB Builder for COM 1.1.4 (R14SP2).
The Visual Basic code on the page entitled "Creating the User Interface" contains errors on lines 2 and 7. This page is found by executing the following command at the MATLAB command prompt.
web([docroot,'/toolbox/combuilder/ug/f11930.html'])
The second line::
Private theMagic As magicdemo.magic 'magic object instance
should be replaced with:
Private theMagic As magicdemo.magicdemoclass 'magic object instance
and line 7:
Set theMagic = New magicdemo.magic
should be replaced with:
Set theMagic = New magicdemo.magicdemoclass

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R14SP2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!