Re: Invalid Prototype error

483 views
Skip to first unread message

Jernej Simončič

unread,
Feb 3, 2022, 11:14:00 AM2/3/22
to Dave Arndt on [innosetup]

On Thursday, February 3, 2022, 15:27:49, Dave Arndt wrote:


function MyFunc(): String;    <---- "Invalid prototype for 'MyFunc' (Column 10)

I assume you're trying to use a {code:MyFunc} constant. The function prototype for functions used in {code:…} constants must be

 

function MyFunc(Param: String): String

 

(the function must take 1 string parameter).

 

-- 
< Jernej Simončič ><><><><>< https://eternallybored.org/ >


An original idea can never emerge from committee in the original.
       -- Boyle's Fifth Law

Dave Arndt

unread,
Feb 3, 2022, 3:35:32 PM2/3/22
to innosetup
Yes!   I figured that out eventually.   Thanks!
Reply all
Reply to author
Forward
0 new messages