Error Compiling Under PBWin 8

Started by David Martin, February 21, 2005, 07:33:59 PM

Previous topic - Next topic

David Martin

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

Jose Roca

If it is a parameter you need to add BYVAL. Pointers aren't allowed to be passed by reference.

TechSupport

I will double check all the code generating to ensure that pointers get generated with a ByVal.

David Martin

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

TechSupport

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.

David Martin

Thanks Paul,

As always, looking forward to the next update.