Gary,
I'll email you a sample project tomorrow when I get into work. The
documentation isn't exactly forthcoming in how you set the alerts up, but
once you get your head around it its really easy.

Dave Crozier


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Garry Bettle
Sent: 12 February 2008 20:32
To: [email protected]
Subject: VFP Desktop Alerts

Howdy all,

Has anyone used VFP Desktop Alerts from:

http://www.codeplex.com/VFPX/Release/ProjectReleases.aspx?ReleaseId=1644

It looks the biz, but I can't seem to get it to work.

I've downloaded the beta, but when I run the sample Program1.prg, all I get
is:

OLE error code 0x80070002: The system cannot find the file specified.

Here's the program (NB:  It bombs out with the above message at the first
line):

oMgr = CREATEOBJECT("VFPAlert.AlertManager")
oAlert = oMgr.NewAlert()

x=NEWOBJECT("myclass")

oAlert.SetCallback(x)

oAlert.Alert("Hello World")

INKEY(15,"hc")

DEFINE CLASS myclass AS session OLEPUBLIC

        IMPLEMENTS Ialertevents IN "vfpalert.AlertEvents"

        PROCEDURE Ialertevents_AlertResult(tnResult AS Number) AS Number
                ?"You selected: " + TRANSFORM(tnResult)
        ENDPROC

ENDDEFINE


Do I have to register something?

Cheers,

Garry


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to