This topic is now archived and is closed to further replies.


TI-89 programming...

Recommended Posts

Hi, I''m TRYING to make some programs to my TI-89... without success... I''m using TI Flash studio, and I try to compile this program: project1.c
#define USE_TI89              // Compile for TI-89
#define USE_TI92PLUS          // Compile for TI-92 Plus
#define USE_V200              // Compile for V200

#define RETURN_VALUE          // Return a Value
#define OPTIMIZE_ROM_CALLS    // Use ROM Call Optimization
#define MIN_AMS 200           // Compile for AMS 2.00 or higher

#include <tigcclib.h>         // Include All Header Files
// Main Function
void _main(void)
  HANDLE menu_handle = MenuNew (2, 240, 18);
  DynMenuAdd (menu_handle, 0, "First", 1, DMF_TEXT | DMF_TOP_SUB);
  DynMenuAdd (menu_handle, 1, "Subitem 1.1", 5, DMF_TEXT | DMF_CHILD_SUB);
  DynMenuAdd (menu_handle, 5, "Subitem 1.1.1", 8, DMF_TEXT | DMF_CHILD_SUB);
  DynMenuAdd (menu_handle, 5, "Subitem 1.1.2", 9, DMF_TEXT | DMF_CHILD);
  DynMenuAdd (menu_handle, 8, "Subitem", 10, DMF_TEXT | DMF_CHILD);
  DynMenuAdd (menu_handle, 1, "Subitem 1.2", 6, DMF_TEXT | DMF_CHILD);
  DynMenuAdd (menu_handle, 0, "Second", 2, DMF_TEXT | DMF_TOP_SUB);
  DynMenuAdd (menu_handle, 2, "Subitem 2.1", 7, DMF_TEXT | DMF_CHILD);
  DynMenuAdd (menu_handle, -1, "Third", 3, DMF_TEXT | DMF_TOP);
  DynMenuAdd (menu_handle, -1, "Fourth", 4, DMF_TEXT | DMF_TOP);
  HANDLE exec_handle = MenuBegin (NULL, 0, 0, MBF_HMENU, menu_handle);
  short result;
  do {
    result = MenuKey (exec_handle, ngetchx ());
  } while (result == M_NOTMENUKEY);    
  MenuEnd (exec_handle);
  MenuUpdate ();
  push_shortint (result);
which is copy-paste from a site on the web... However I get tens of errors such like undefined stuff or syntax errors... Does anyone have a bet for what might be the problem? Oh... I have all header files included correctly... Thanks REALLY a lot

Share this post

Link to post
Share on other sites
already did it... THANKS TIGCC!

another thing: can anyone show me some code of how to, in a TI-89, solve an equation where one of the variables is given by the user (in TI)?

Thanks again

Share this post

Link to post
Share on other sites