Re: SysTray integration

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Bernie,

Yes, I just thought this morning that the U in UWM_SYSTRAY might mean it
was a user-defined constant.  I should read the examples I work from
more closely in future 8-)

I do have a follow-on Windows question though.  The test app (based on
your DEMO1API.EXW file) no longer has syntax errors, but when I run it I
get the following error:

    Can not store the value of 5851040 into a Structure at offset 7
    Value not within limits of the C_CHAR type

I suspect that this is referring to the way I am setting the tooltip in
the NOTIFYICONDATA structure.

The C example uses this to set the tooltip in the structure:
    char *tooltip= "SysTray Test";
    strcpy(nid.szTip, tooltip);

The Euphoria code I'm using includes:
    atom szTip
    szTip = allocate_string("SysTray Test")
    ...
    Nid = DeclareStructure("NOTIFYICONDATA",{})
    ...
    StoreIn(Nid, 7, szTip)

Obviously this is wrong, but after reading the 'C Structures' section of
the 'Platform-Specific Issues for Euphoria' document, I am still non the
wiser.  Thanks for any help.

Regards,

Dave

--
David M Foulds                     | e: dmfoulds at knowledgeassociates.com
Applications Developer             | t: +44 (0) 1223 421834
Knowledge Associates International | f: +44 (0) 1223 421284
http://www.knowledgeassociates.com |

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu