Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
|
|
|
|
Poster | Thread | jonssonj
 |  |
where is the definition to the function "ClickTabs("One","Two","Three",NULL);" Posted on 10-Jul-2023 23:25:19
| | [ #1 ] |
| |
 |
Regular Member  |
Joined: 1-Mar-2004 Posts: 299
From: Sweden, Bjärred | | |
|
| Hello all!
My program is localized with catcomp and so on. I'm using the GetString() function to get my strings from the localized file.
The GetString function is returning a STRPTR (string pointer).
I was trying to use this in the ClickTabs function that returns a struct List, but this does not seem to work.
I was trying this:
extern struct List *tabnames = ClickTabs( GetString(&li, MSG_ONE_GAD), GetString(&li, MSG_TWO_GAD), GetString(&li, MSG_THREE_GAD), NULL);
this gives me invalid constant expression. I tried to look up the function ClickTabs() to see how it works, but I can't find the definition of the ClickTabs() function in the Autodocs for NDK3.2R4. I can't find it in the 3:rd ed. Amiga RKRM Libraries and not in the 3:rd ed. Amiga RKRM Autodocs either.
Where is the function ClickTabs described?
Does anyone have a suggestion on how to get the string from the localized file and put it in the ClickTabs() function?
Maybe I can convert the returned value from GetString to the right one, but which would it be in that case?
BR JJ
_________________ A1 X1000 is here !!! |
| Status: Offline |
| | olsen
|  |
Re: where is the definition to the function "ClickTabs("One","Two","Three",NULL);" Posted on 11-Jul-2023 8:55:56
| | [ #2 ] |
| |
 |
Cult Member  |
Joined: 15-Aug-2004 Posts: 774
From: Germany | | |
|
| @jonssonj
Quote:
jonssonj wrote: Hello all!
My program is localized with catcomp and so on. I'm using the GetString() function to get my strings from the localized file.
The GetString function is returning a STRPTR (string pointer).
I was trying to use this in the ClickTabs function that returns a struct List, but this does not seem to work.
I was trying this:
extern struct List *tabnames = ClickTabs( GetString(&li, MSG_ONE_GAD), GetString(&li, MSG_TWO_GAD), GetString(&li, MSG_THREE_GAD), NULL);
this gives me invalid constant expression. I tried to look up the function ClickTabs() to see how it works, but I can't find the definition of the ClickTabs() function in the Autodocs for NDK3.2R4. I can't find it in the 3:rd ed. Amiga RKRM Libraries and not in the 3:rd ed. Amiga RKRM Autodocs either.
Where is the function ClickTabs described?
|
This is a reaction.lib function and the function prototype declarations can be found in the "reaction_lib_protos.h" file, which would be found under "clib/reaction_lib_protos.h". It is part of the NDK 3.5 and should be part of NDK 3.9, too, as well as the reaction.lib to link your program with.
|
| Status: Offline |
| | tygre
|  |
Re: where is the definition to the function "ClickTabs("One","Two","Three",NULL);" Posted on 11-Jul-2023 14:23:23
| | [ #3 ] |
| |
 |
Regular Member  |
Joined: 23-Mar-2011 Posts: 281
From: Montreal, QC, Canada | | |
|
| | Status: Offline |
| |
|
|
|
[ home ][ about us ][ privacy ]
[ forums ][ classifieds ]
[ links ][ news archive ]
[ link to us ][ user account ]
|