Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
VB OpenMaple Code Examples
Description
To use the VB OpenMaple code and examples shown in these help pages you must first add the extern/include/maple.bas file to your project. See your Maple installation for the file.
The maple.bas module is designed to work with Visual Basic 6.0. It will not work with VB7 (or VB.NET), primarily because the Long datatype is 32-bits in VB 6, and 64-bits in VB 7. Long is used as the Maple Object data-type (which is a 32-bit pointer).
Most examples refer to a variable kv, usually as a parameter to a sample subroutine. This variable is assumed to be assigned the value returned by StartMaple. To refer to kv from callbacks, this variable must be made global.
VB often does not release the Maple dll when it is interrupted during a computation. When working on a project in the VB IDE, Maple might not be in a recoverable state suitable for restarting after an arbitrary stoppage. This can lead to occasional crashes, which are not reproducible after restarting the IDE.
There is additional source code for more complicated examples in the samples directory of your Maple installation.
See Also
OpenMaple, OpenMaple/VB/API
Download Help Document