| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 529.1 | There are no optional arguments | STAR::BRANDENBERG | Intelligence - just a good party trick? | Tue Apr 04 1989 11:02 | 12 | 
|  |     
    Can't say as I can read this macro stuff but :-) ...
    
    you have two problems.  First, XQueryTree's display and window
    arguments are pass-by-value not pass-by-reference so replace
    pushal with pushl.  Second, XQueryTree has six arguments, not
    two and short changing this call isn't going to make you friends.
    Add the remaining arguments (root_return, parent_return,
    children_return, and nchildren_return {all by reference}).
    
    					m
 | 
| 529.2 | It Works, It Works hahahaha | BOOTIS::BAILEY | The Pursuit Of _Knowledge_ | Tue Apr 04 1989 11:53 | 18 | 
|  | >you have two problems.  First, XQueryTree's display and window
>arguments are pass-by-value not pass-by-reference so replace
Well acording to my manual all the arguments are pass-by-reference
> .  Second, XQueryTree has six arguments, not
> two and short changing this call isn't going to make you friends.
Again acording to my manual you must give display & window_id
but the others are  'vax only optional'
Having said that if I do it as suggested it seems to work
Thanks for the answers (thought I was cracking up   :-)
 | 
| 529.3 |  | STAR::BRANDENBERG | Intelligence - just a good party trick? | Tue Apr 04 1989 12:10 | 12 | 
|  |     
    Remember, there are two bindings: C and VAX.  The example you gave used
    C bindings called from Macro so I assumed that's what you wanted.  Your
    comments suggest you meant to use the VAX bindings, easily recognizable
    by that Americentic character: '$'.  I suppose I could agree that an
    argument like  XQueryTree( Display *display ... ) is pass-by-reference
    ( display.mr.r ) but the way it is used in an application is more of an
    address passed by value ( display.ra.v ) and that's why I say
    pass-by-value.
    
    					m
 | 
| 529.4 |  | LESLIE::LESLIE | Andy ��� Leslie, CSSE | Tue Apr 04 1989 12:31 | 3 | 
|  |     If the documentation is unclear, I suggest you submit a QAR and/or post
    a note in BULOVA::VMS_DOCUMENTATION....
 | 
| 529.5 |  | BOOTIS::BAILEY | The Pursuit Of _Knowledge_ | Tue Apr 04 1989 16:23 | 14 | 
|  | >    Remember, there are two bindings: C and VAX.  The example you gave used
>    C bindings called from Macro so I assumed that's what you wanted.  Your
_no_ what I WANTED to do was get my head straight before coding,
take 1000 lines.... read the documentation before coding
Thanks for the help (I think I'am going to need all the help
I can get)
Ta
Peb
 |