CompuServe Messages

#2.04 Tags confusion

    06-Feb-92 00:04:38
Sb: #2.04 Tags confusion
Fm: Harry Callesis 72025,117
To: All
Desperation time … I'm trying to define a window using tags (under 2.04). I want to associate it with a custom screen (which I have been able to figure out how to do with tags). The declaration of the screen pointer is: struct Screen *myscreen; When I build the window tag list, I include the entry { WA_CustomScreen, (ULONG) myscreen }, I try to compile (using SAS/C 5.10b) and it tells me "invalid constant expression". I use the ULONG cast in other places, so I'm sure it's not that. Can someone tell me what I'm doing wrong? "Includes & Autodocs" seems to say that the WA_CustomScreen tag replaces the NewWindow.Screen field, which is a Screen * type, so that's why I assumed I could plug the pointer into there. Thanks … Harry