1 (edited by weixing1531 2022-10-08 15:23:02)

Topic: How can I use dlgrequestpassword function?

I can not use it in SF3.25!

Error: Function 'dlgrequestpassword' at (1) has no IMPLICIT type; did you mean 'dlgrequesttext_c'?

Re: How can I use dlgrequestpassword function?

Can you provide more details, such as problematic example code?

Jeff Armstrong
Approximatrix, LLC

3 (edited by weixing1531 2022-10-08 15:20:00)

Re: How can I use dlgrequestpassword function?

jeff wrote:

Can you provide more details, such as problematic example code?

Error: Function 'dlgrequestpassword' at (1) has no IMPLICIT type; did you mean 'dlgrequesttext_c'?

Re: How can I use dlgrequestpassword function?

It looks like the routine is only implemented in C.  We'll provide a fix in the next Simply Fortran release.

Jeff Armstrong
Approximatrix, LLC

5 (edited by weixing1531 2022-10-10 16:24:50)

Re: How can I use dlgrequestpassword function?

jeff wrote:

It looks like the routine is only implemented in C.  We'll provide a fix in the next Simply Fortran release.

Thanks,I can use this with the help of iso_c_binding module.But there is a new question.I get wrong password when turn on checkbox "Windows GUI (No Console)".I get correct password when turn off checkbox.

Re: How can I use dlgrequestpassword function?

The dlgrequestpassword function is now properly wrapped in a Fortran API call in Simply Fortran 3.26.  From Fortran, you can also use dlgrequesttext with the password argument set to .true. for the same functionality.

Jeff Armstrong
Approximatrix, LLC