PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: David Martin on February 21, 2005, 07:33:59 PM

Title: Error Compiling Under PBWin 8
Post by: David Martin on February 21, 2005, 07:33:59 PM
I have a project that compiles fine under 7.04 but under 8 gets the following error:

Error Number = 414
Error Description = ")" expected
       lpNMHDR       AS NMHDR PTR _

FORM = MAINFORM
CONTROL = GENERAL
MESSAGE = OTHER_CODE
Title: Error Compiling Under PBWin 8
Post by: Jose Roca on February 21, 2005, 07:37:17 PM
If it is a parameter you need to add BYVAL. Pointers aren't allowed to be passed by reference.
Title: Error Compiling Under PBWin 8
Post by: TechSupport on February 21, 2005, 07:41:04 PM
I will double check all the code generating to ensure that pointers get generated with a ByVal.
Title: Error Compiling Under PBWin 8
Post by: David Martin on February 21, 2005, 07:46:01 PM
I compiled 8 different projects.  Only two came up with the error.

Here is the code section where the problem is:

Function VALIDFORM_LISTVIEW1_LVN_BEGINLABELEDIT ( _
                                            ControlIndex  As Long,            _  ' index in Control Array
                                            hWndForm      As Dword,           _  ' handle of Form
                                            hWndControl   As Dword,           _  ' handle of Control
                                            lpNMV         As NM_LISTVIEW Ptr  _  ' pointer to NM_LISTVIEW
                                            ) As Long


and here is the other one:

Function MAINFORM_MAINTABS_TCN_SELCHANGE ( _
                                        ControlIndex  As Long,      _  ' index in Control Array
                                        hWndForm      As Dword,     _  ' handle of Form
                                        hWndControl   As Dword,     _  ' handle of Control
                                        lpNMHDR       As NMHDR Ptr  _  ' pointer to NMHDR
                                        ) As Long


FF generated code.  Something else for Paul to do ... :D
Title: Error Compiling Under PBWin 8
Post by: TechSupport on February 21, 2005, 10:19:42 PM
Yes, it is definately the BYVAL pointer issue that is the problem. I have fixed it for the next update, but that update is a few days away at the earliest. I am not sure, but maybe you can try manually adding the ByVal to the function.

e.g.
ByVal lpNMV         As NM_LISTVIEW Ptr

I would send you an update, but the new version of FireFly is substantially different (internally) then the version that you are using now so in order to avoid further complications you should either wait, or continue to use 7.04 compiler until the update is released.
Title: Error Compiling Under PBWin 8
Post by: David Martin on February 22, 2005, 12:08:17 AM
Thanks Paul,

As always, looking forward to the next update.