• Welcome to PlanetSquires Forums.
 

FireFly 3 ctl-files

Started by Christian Weilguny, April 14, 2018, 09:16:45 PM

Previous topic - Next topic

Christian Weilguny

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

Paul Squires

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

Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Christian Weilguny

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

Christian Weilguny

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