PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Christian Weilguny on April 14, 2018, 09:16:45 PM

Title: FireFly 3 ctl-files
Post by: Christian Weilguny on April 14, 2018, 09:16:45 PM
Hello,

I have a new problem width building a ctl-file.

I have to make the following definition:

prop_action = USER32.DLL|SendMessage|SendMessageA|BYVAL LONG //CTRL_HWND//|BYVAL LONG MESSAGE|BYVAL LONG //PROP_VALUE//|BYVAL LONG %null

where the PROP_VALUE is a string and I have to put the pointer to this string.

How can I do this?

Thanks in advance
Christian
Title: Re: FireFly 3 ctl-files
Post by: Paul Squires on April 17, 2018, 08:59:14 AM
Hi Christian,

It's been a long, long, long time since I've done any work in this area. You could try the following and see if it works:

prop_action = USER32.DLL|SendMessage|SendMessageA|BYVAL LONG //CTRL_HWND//|BYVAL LONG MESSAGE|BYVAL ASCIIZ //PROP_VALUE//|BYVAL LONG %NULL

Title: Re: FireFly 3 ctl-files
Post by: Christian Weilguny on April 17, 2018, 11:37:36 AM
Hello Paul,

this way I tried first.
The control loads correct in Firefly and I can change the value.
Then a compiletime error  occured, because the type is not long.

kind regards
Christian
Title: Re: FireFly 3 ctl-files
Post by: Christian Weilguny on April 17, 2018, 12:31:38 PM
Now I have figured out if I use 'BYVAL VARPTR //PROP_VALUE//' I can compile the program and the value is correct used.
Unfortunatly every formatting after this in code (WM_Create) is not processed.
If I format the string in code I have to use STRPTR, but in the ctl-file this crashes Firefly loading the project.

Kind regards
Christian