Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL-DMO & EventHandler
Message
From
31/01/2003 05:01:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
SQL-DMO & EventHandler
Miscellaneous
Thread ID:
00747580
Message ID:
00747580
Views:
59
I´m trying to do a Backup not attended.

I have this class:
*-- hansqldmo.PRG

DEFINE CLASS hndBackup as Session
IMPLEMENTS BackupSink IN "sqldmo.backup"

PROCEDURE BackupSink_Complete(cmessage as String) as long

PROCEDURE BackupSink_PercentComplete(cmessage as String, percent as Long) as long

PROCEDURE BackupSink_NextMedia(cmessage as String) as long

ENDDEFINE
and my test program are :
SET PROCEDURE TO clas/hansqldmo.PRG
RELEASE h
RELEASE o
o = CREATEOBJECT("sqldmo.backup")
h = CREATEOBJECT("hndbackup")

? EVENTHANDLER(o,h,.t.)
+
EVENTHANDLER() return always .F.

What is wrong in this code.

Regards,
José Luis.

Quidquid latine dictum sit, altum sonatur

Next
Reply
Map
View

Click here to load this message in the networking platform