PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marc van Cauwenberghe on April 22, 2008, 11:03:35 AM

Title: Stupid Question Time
Post by: Marc van Cauwenberghe on April 22, 2008, 11:03:35 AM
OK I'm just starting with FF after owning it for a year or so and am wondering why I get this error on such a simple task.

Is there something I'm not doing when I create a new project ?


I create a form with a text box and a command button.
I add the FF_TextBox_SetText function under the click event and get this error:


Error 519 in

C:\PROJECTS\TEST1\TEST1\CODEGEN_TEST1_FORM1_FORM.INC(805:003):

  Missing declaration: FF_TEXTBOX_SETTEXT

Line 805:   FF_TextBox_SetText (HWND_FORM1_TEXT1, "Hello World")



Function FORM1_COMMAND1_BN_CLICKED ( _
                                   ControlIndex     As Long,  _  ' index in Control Array
                                   hWndForm         As Dword, _  ' handle of Form
                                   hWndControl      As Dword, _  ' handle of Control
                                   idButtonControl  As Long   _  ' identifier of button
                                   ) As Long
FF_TextBox_SetText (HWND_FORM1_TEXT1, "Hello World")
End Function

Title: Re: Stupid Question Time
Post by: TechSupport on April 22, 2008, 11:44:38 AM
hmmm, not sure why you would get such an error. I created the exact same type of project and ran it and got no errors. Check the code generated file named CODEGEN_PROJECT1_UTILITY.inc and look for the code for FF_TextBox_SetText (it is probably the last bit of code in that file).

Try changing the code from FF_TextBox_SetText to FF_Control_SetText to see if it makes a difference.

What compiler are you using? I wonder if the "(" parenthesis is making a difference. Try calling it like:


FF_TextBox_SetText HWND_FORM1_TEXT1, "Hello World"


You didn't change the name of the TextBox from TEXT1 to something else did you?

You are compiling and running from inside FireFly right? That is, you're not compiling and trying to run the CODEGEN*.* files from, say, JellyFish or PBEdit are you?

Title: Re: Stupid Question Time
Post by: Marc van Cauwenberghe on April 22, 2008, 03:32:43 PM
I only did that to get a copy  of the error...  ie. run it from PBEdit that is.
Title: Re: Stupid Question Time
Post by: TechSupport on April 22, 2008, 07:42:34 PM
Look for a file in the FireFly installation called "FF_Functions.src". Is it there? That is the file (encrypted) that contains all of the FireFly wrapper functions. If that file is missing then you should re-install FireFly.

Have you tried starting a new project from scratch and recompiling? There certainly sounds like there is something wrong with your project. Did any of my other suggestions in my post make any difference?
Title: Re: Stupid Question Time
Post by: Marc van Cauwenberghe on April 23, 2008, 07:14:36 AM
The problem was having the Option for Force Bypass Checking for FireFly Functions checked.

Don't remember setting that, but at any rate when unchecked both the Control Set and TextBox Set funcitons work fine.

Sorry for the bother... I knew it had to be me :-)
Title: Re: Stupid Question Time
Post by: TechSupport on April 23, 2008, 08:42:35 AM
Hi Jim, I totally forgot about that option  :-[  I never use it.

Happy to hear that you're back up and running.
Title: Re: Stupid Question Time
Post by: Marc van Cauwenberghe on April 23, 2008, 09:18:52 PM
OK I'll bite... what is the purpose for that option?

Title: Re: Stupid Question Time
Post by: TechSupport on April 23, 2008, 09:55:53 PM
Way back in Version 1, a beta tester wanted the option to enable/disable searching for embedded FireFly Functions in their projects. The reason was that the searching process was a little slow - especially for large projects. In FireFly 3 the searching is magitudes faster because of the hashing algorithm that I'm using. So, other than speeding up the code generation process (in cases where the user doesn't use FireFly Functions) the option is not all that useful.