PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Anonymous on March 15, 2006, 05:47:47 AM

Title: Problem with Upgrade between 1.10 and 2.65
Post by: Anonymous on March 15, 2006, 05:47:47 AM
We have recently upgraded our Firefly system from version 1.10 to 2.65.
When i load a project written in Version 1.10 it prompts me to pass it through a converter to take it to 2.65 compatability.
I have done this but when i compile i get the following error...

Error Number = 414
Error Description = ")" expected
FF_nResult = FORM1_WM_CREATE(hWndForm,@FF_UserData)

FORM=FORM1
CONTROL=GENERAL
MESSAGE=OTHER_CODE

This code is inaccessable to me. Please help
Title: Problem with Upgrade between 1.10 and 2.65
Post by: Marc Van Cauwenberghe on March 15, 2006, 09:41:06 AM
Hello,

in the version 2.1 help file there is a new feature:

- Added ability to pass a long value to a Form being shown as modal. The value ("UserData") can be accessed in the WM_CREATE message

Hope this helps.

Marc
Title: Problem with Upgrade between 1.10 and 2.65
Post by: TechSupport on March 15, 2006, 09:48:02 AM
Yes, you need to scan through your code and modify the WM_CREATE message functions. The new function headers should look like the following:

Function FORM1_WM_CREATE ( _
                        hWndForm As Dword, _  ' handle of Form
                        ByVal UserData As Long _  'optional user defined Long value
                        ) As Long

End Function


Notice the new ByVal UserData As Long