| From: | |
| Date: | 21 Feb 2001 at 17:30:42 |
| Subject: | Re: Amiga types and strings |
--- Joris Kempen <Trekker@studenten.net> a écrit : >
Hello,
> In want to use them in the part where i init my asl
> struct, it looks like
> this:
> if (fr = (struct FileRequester *)
>
> AllocAslRequest(ASL_FileRequest,
> ASLFR_TitleText, title,
>
> ASLFR_InitialDrawer,
> location, TAG_DONE))
> I first tried it this way, but StormC gave an error:
> title is an illegal
> argument. So i did some sniffing in the includes and
> found out that the two
> items in question should be of the type STRPTR.
> AFAIK this i just an Amiga version of the char *
> type? Or is it something
> else?
No, the problem is all "TAG" are defined as ULONG (or
something like that, i don't have my amis at works :-(
).
So, it title is STRPTR or char *, you are trying to
pass a pointer instead of a ULONG.
So the solution is to cast to a ULONG. It should be
also a typedef for TAG but I don't remember if it
exists and its name :-( Have a look into the AutoDOC.
Bye
Laurent
=====
The misspelling master is on the Web.
_________
/ /(
/ Dico / / 100 % Dictionnary Free !
/________/ /
(#######( /
Quoi, des fautes d'orthographe! Pas possible ;-D.
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
---------------------------------------------------------------------_->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/