Re: Using DSM API

Jon Paris <[email protected]> Fri, 12 Mar 2021 09:23:06 -0500
Newsgroups gmane.comp.lang.as400.c
Message-ID <[email protected]>
The number of parts used by RPG will be the same as in C.  The only real difference in languages at this level is that RPG prototypes have no way of indicating that the parameter repeats ad nadeem (sprintf for example).

What have you tried?


> On Mar 12, 2021, at 8:26 AM, Alexandre Bencz <[email protected]> wrote:
> 
> I am studying the DSM APIs and I am trying to understand how to use the API, QsnWrtSFMaj, to create checkbox, pushbuttons and etc ...
> 
> Based on this example, I tried to understand how the API works, but it was not clear how it works, because apparently in RPG less parameters are sent to the function, already in C, there are N parameters that are not clear what they are
> 
> 
> This is function prototype:
> 
>     Q_Bin4 QsnWrtSFMaj(const char *,
>                        Q_Bin4,
>                        Q_Bin4,
>                        Q_Bin4,
>                        Q_Bin4,
>                        Qsn_Cmd_Buf_T,
>                        Qsn_Env_T,
>                        Q_Fdbk_T *);
> 
> This is the function prototype, defined on QSNAPI.H
> In the manual informs to check the tables in document SC30-3533, I found the table that contains the necessary information for the structure, but I still don't know exactly how to use this information ...
> ( manual: http://www.aibobar.de/file/SC30-3533-04.pdf , go to page 140 section "15.6.13.5 DEFINE SELECTION FIELD Structured Field")
> 
> -- 
> Alexandre S. Bencz
> 
> +55 {15} 997-980-511
> 
> -- 
> This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
> To post a message email: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/c400-l
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/c400-l.
> 
> Help support midrange.com by shopping at amazon.com with our affiliate
> link: https://amazon.midrange.com

-- 
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/c400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com