Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Problems parsing the Palm OS SDK
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fspafford
Senior Member

USA
45 Posts

Posted - May 02 2007 :  12:55:55 PM  Show Profile  Reply with Quote
Visual Assist X is having problems parsing some routines from the Palm OS SDK. (I can't see the function signature by clicking on DaysInMonth, and can't alt-g jump to the definition.) Here is a sample:

Int16 DaysInMonth(Int16 month, Int16 year)
SYS_TRAP(sysTrapDaysInMonth);

If I change this to:

Int16 DaysInMonth(Int16 month, Int16 year);

then things work fine. This comes from the DateTime.h file.

SYS_TRAP is defined in PalmTypes.h:

#define SYS_TRAP(trapNum) _SYSTEM_API(_CALL)(_SYSTEM_TABLE, trapNum)

If you need the complete set of files, download the Palm OS SDK v5.3. Goto https://pdn.palm.com/regac/pdn/JoinNow.

Please let me know if you need more information.

Thanks,

Frank

PS: below is a note that shows the list of folders parsed:
--------------------------------------------------------------------------------
Visual Assist custom include directories

Paste the directories below (entire string) into the Visual Assist list of stable include files.

d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\core;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\core\\hardware;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\core\\system;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\core\\ui;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\dynamic;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\extensions;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\extensions\\expansionmgr;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\libraries;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\libraries\\exglocal;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\libraries\\inet;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\libraries\\lz77;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\libraries\\palmosglue;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\libraries\\pdi;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\libraries\\sms;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\libraries\\telephony;d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\libraries\\telephony\\ui;d:\\program files\\metrowerks\\CodeWarrior\\CW for Palm OS Support\\Object Library\\src\\include;d:\\program files\\metrowerks\\CodeWarrior\\CW for Palm OS Support\\Object Library\\src\\target

--------------------------------------------------------------------------------

VA_X.dll file version 10.3.1555.0 built 2007.04.26
Licensed to:
VA X: [email protected] (1-user license) Support ends 2008.03.27
VA.NET 7.1: [email protected] (1-user license)
VAOpsWin.dll version 1.3.2.0
VATE.dll version 1.0.5.4
DevEnv.exe version 7.10.6030.0
msenv.dll version 7.10.6030.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32
Stable Includes:
D:\\Program Files\\Microsoft SDKs\\Windows\\v6.0\\Include;
D:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
D:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
D:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
D:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
D:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\wtl71\\include;
D:\\Program Files\\Windows CE Tools\\wce500\\Windows Mobile 5.0 Pocket PC SDK\\Activesync\\Inc;
D:\\Program Files\\Windows CE Tools\\wce420\\POCKET PC 2003\\Mfc\\Include;
D:\\Program Files\\Windows CE Tools\\wce420\\POCKET PC 2003\\Include;
D:\\Program Files\\Windows CE Tools\\wce420\\POCKET PC 2003\\Activesync\\Inc;
D:\\Program Files\\Windows CE Tools\\wce420\\POCKET PC 2003\\Include\\Armv4;
D:\\Program Files\\Metrowerks\\CodeWarrior\\Palm OS Support\\Incs;
D:\\Program Files\\Metrowerks\\CodeWarrior\\Palm OS Support\\Incs\\Core;
D:\\Program Files\\Metrowerks\\CodeWarrior\\Palm OS Support\\Incs\\Core\\Hardware;
D:\\Program Files\\Metrowerks\\CodeWarrior\\Palm OS Support\\Incs\\Core\\System;
d:\\program files\\metrowerks\\CodeWarrior\\palm os support\\incs\\core\\ui;

Library Includes:
D:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
D:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
D:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;

Other Includes:

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - May 02 2007 :  4:31:02 PM  Show Profile  Reply with Quote
It looks like this macro is confusing VA. Can you try the following please, hopefully this will fix the problem. Edit VA's "StdAfx.h" file as explained in this FAQ entry:

http://docs.wholetomato.com?W302

and add the entry:

#define SYS_TRAP(trapNum)


at the bottom. This file is used to help VA's parser with difficult code, and can be used to work around odd effects. After modifying this file you need to rebuild the VA symbol database for the changes to take effect:

VA Options -> Performance -> General -> Rebuild symbol databases

zen is the art of being at one with the two'ness
Go to Top of Page

fspafford
Senior Member

USA
45 Posts

Posted - May 02 2007 :  5:04:33 PM  Show Profile  Reply with Quote
Thank you. That solved the problem.

Frank
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000