home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11648 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.5 KB  |  48 lines

  1. Path: sparky!uunet!cbmvax!cbmehq!cbmden!hemmer!hemmer
  2. From: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Need help opening a window on a custom screen.
  5. Message-ID: <hemmer.01cd@hemmer.adsp.sub.org>
  6. Date: 25 Jul 92 02:09:03 GMT
  7. References: <13g4lfINNo64@darkstar.UCSC.EDU>
  8. Organization: InterActivsion
  9. Lines: 37
  10.  
  11. In article <13g4lfINNo64@darkstar.UCSC.EDU> smythe@cats.ucsc.edu
  12. (Brian Matthew Aljian) writes:
  13.  
  14. >struct TagItem main_win_tags[] =
  15. >    {
  16. >    {WA_CustomScreen,    main_screen},
  17. >    ...etc...
  18. >    {TAG_DONE,        NULL},
  19. >    };
  20.  
  21. Declare your tagitem like this instead :
  22.  
  23. struct TagItem main_win_tags [] =
  24. {
  25.    WA_CustomScreen, (ULONG) main_screen,
  26.    ...,
  27.    TAG_DONE
  28. };
  29.  
  30. You don't need a NULL after TAG_DONE, and you don't need to put extra
  31. {} pairs around each tagitem. If you are experiencing warnings during
  32. compile, typecast the ti_Data fields to (ULONG).
  33.  
  34. >Thanks for any help!
  35.  
  36. Welcome...
  37.  
  38. >   Brian M. Aljian
  39.  
  40. --
  41. *-------------------------------------------------------------------------*
  42. |         _   UseNet: (uunet|rutgers|pyramid)!cbmvax!cbmehq!cbmden!hemmer |
  43. |         \\ _                         CBMNET: hemmer@hemmer.adsp.sub.org |
  44. | InterActi\X/ision - The name of precision                               |
  45. | Best regards                         >> Carpe Diem! - Seize the day! << |
  46. | Franz Hemmer - Software Developer.                                      |
  47. *-------------------------------------------------------------------------*
  48.