WIKI & SDK AutoDocs error

This forum is for general developer support questions.

WIKI & SDK AutoDocs error

Postby xenic » Sun May 15, 2016 8:13 pm

The ObtainDataType() example in the datatypes autodoc (datatype.doc) contains this line:

Printf("%s\n", dt->dtn_Name);

The "dt" is "struct datatype *" and there is no dtn_Name element in the datatype structure. In fact I can't find "dtn_Name" anywhere in the SDK.

Can someone fix this in the WIKI and SDK autodocs?
Last edited by xenic on Sun May 15, 2016 10:15 pm, edited 2 times in total.
AmigaOne X1000 with 2GB memory - OS4.1 FE
xenic
 
Posts: 1148
Joined: Sun Jun 19, 2011 1:06 am

Re: WIKI & SDK AutoDocs error

Postby mritter0 » Sun May 15, 2016 8:22 pm

Should be: dt->dth_Name
Workbench Explorer - A better way to browse drawers
User avatar
mritter0
 
Posts: 212
Joined: Mon Aug 25, 2014 10:41 pm
Location: Bettendorf, IA, USA

Re: WIKI & SDK AutoDocs error

Postby xenic » Sun May 15, 2016 9:40 pm

mritter0 wrote:Should be: dt->dth_Name

I edited my post to make it clear that "dt" is "struct DataType *". I think that it should be:
dt->dtn_Header->dth_Name
AmigaOne X1000 with 2GB memory - OS4.1 FE
xenic
 
Posts: 1148
Joined: Sun Jun 19, 2011 1:06 am


Return to General Developer Support

Who is online

Users browsing this forum: Google [Bot] and 8 guests