IDCBURN

IDCBURN

Postby Silvio » Wed Jan 03, 2007 12:59 pm

I found it but I not Know How call it
http://msdn.microsoft.com/library/defau ... cdburn.asp

please can U help me,
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby HATHAL » Thu Jan 04, 2007 5:56 pm

Welcome Silvio,
I used the following function to View copies Path of CD-ROM
And i copies of the files To Path
Of Windows copies files to cd ROM Auto.
the example WINDOWS XP 2
FUNC MAIN()
LOCAL CDBURN:=CD_Burning()+"\*.*",file_c:="c:\*.*"
COPY file_c TO &CDBURN
RETURN NIL
*******************************************************
func CD_Burning()
LOCAL oReg,uVar:=""
*****************************************
#define HKEY_CURRENT_USER 2147483649
****************************************
oReg := TReg32():New(HKEY_CURRENT_USER,"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",.f.)
uVar := oReg:Get("CD Burning","")
oReg:Close()
RETURN uVar
*******************************************************
Last edited by HATHAL on Thu Jan 11, 2007 7:13 pm, edited 1 time in total.
User avatar
HATHAL
 
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh

Postby Silvio » Thu Jan 04, 2007 10:47 pm

thank but where is the func or command "copy file" ?
Code: Select all  Expand view
Stack Calls
===========
   Called from:  => __COPYFILE(0)
   Called from: test.prg => MAIN(7)


I wanted call the burn xp procedure ...
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Silvio » Thu Jan 04, 2007 11:01 pm

PERHAPS :

Code: Select all  Expand view
#Include "FiveWin.Ch"
FUNCTION MAIN()

    LOCAL oCDBurn := CREATEOBJECT( "IMAPI.ICDBURN" )

             oCDBurn:GetRecorderDriveLetter("E:\")
            *oCDBurn:HasRecordableDrive()
             oCDBurn:Burn()

    RETURN NIL


BUT IT MAKE ERROR

SOME ONE CAN HELP ME PLS?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby HATHAL » Thu Jan 11, 2007 7:15 pm

The amendment is required
LOCAL CDBURN:=CD_Burning()+"\*.*",file_c:="c:\*.*"
COPY file_c TO &CDBURN
:D
User avatar
HATHAL
 
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 38 guests