CompuServe Messages

main(argc,argv)

    27-Jun-93 16:33:18
Sb: #35610-main(argc,argv)
Fm: Freddy Potargent 100272,2050
To: Bart Mathias 72017,1005
Bart, Looking at your codefragment I believe I know the solution to your problem. First, the AllocAslRequest() function needs the address of the taglist so you should use 'lea aslreqtag,a1' instead of 'movea.l aslreqtag,a1'. The move instruction will put the contents at address 'aslreqtag' into a1 and you really need the address in a1 :-). The second problem is in the taglist itself. aslreqtag: dc.l ASL_Hail,frtit dc.l ASL_Window,NWptr <—– dc.l TAG_DONE frtit: dc.b "…title…",0 The problem is in the marked line, NWptr is some storage where the address of the OpenWindow() call is stored as I understand from your explanation. The above code will store the address of 'NWptr' into the taglist *not* the address of the windowstructure which should be put there. There are two solution: copy the contents of 'NWptr' to the correct position in the taglist or more neatly, place the NWptr storage directly into the taglist: aslreqtag: dc.l ASL_Hail,frtit dc.l ASL_Window NWptr: dc.l 0 dc.l TAG_DONE If you store the address of the windowstructure returned by OpenWindow() in NWptr it will be in the correct place. I tried both solutions and they work fine. Hope this solves your problem, Freddy. [On manual from Bilzen, Belgium]