I've already tried the solutions listed on this forum so far, but I'm still getting an error 414 with an old project. This project worked fine with FireFly 1.1, but now won't compile. I get the following:
The PowerBasic Compiler returned an error during compiling:
Error Number = 414
Error Description = ")" expected
ByVal UserData As Long _
FORM = NOTESCLEARDOWN
CONTROL = GENERAL
MESSAGE = OTHER_CODE
As you can see, I've already added the ByVal UserData As Long to the WM_CREATE Message handler for this form. I've checked the generated code (in CODEGEN_NOTESCLEARDOWN_DECLARES.INC), and it looks OK - like this:
Declare Function NOTESCLEARDOWN_WM_CREATE ( _
hWndForm As Dword _ ' handle of Form
ByVal UserData As Long _ ' UserData
) As Long
Which looks OK to me. I've tried, by way of experiment, movnig the closing bracket onto the same line, removing the comments, putting the whole function declare onto one very long line, and generally can't get it to acknowledge that last bracket. It's not happy. :(
The project was converted to FireFly 2's format, and I then switched the Compiler to use to PB Windows 8.0. Foolish me! I didn't even check to see if it first compiled as a PB 7.0 project! However, it doesn't do so now. The same error from both compilers.
What's particularly annoying is that after the error it claims the problem is in a place where I have absolutely no code - the General control, and the Other_Code message. The problem isn't there, because there has never been any code there!
I've done a search for the offending line, and can only see it in the WM_CREATE function and the WM_SHOW function, in the Declares file and the form's own code file. Nowhere else does the line generating the error show up.
I'm now stumped. Any ideas?
Hi,
I don't see the coma , at the end of the first line before the _.
Your code should be :
Declare Function NOTESCLEARDOWN_WM_CREATE ( _
hWndForm As Dword, _ ' handle of Form
ByVal UserData As Long _ ' UserData
) As Long
Hope that's help you !
Jean-Pierre
*checks*
*sighs*
Boy, do I feel like an idiot!
Fixed. Error gone. And I'm feeling very stupid now. :oops:
Thanks for your quick help, Jean-Pierre! I must've gone screen blind... :roll:
Phil