<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Aug 2017 18:34:00 Z</lastBuildDate><pubDate>5 Aug 2017 09:54:00 Z</pubDate><description>I'm trying to do a filecopy in a Windev program, where I can display the copy progress with a standard Windev Progressbar.&#13;
This should be possible using the API function with CopyFileExA. The WDAPI application shows me the syntax how to do it, but I must be really stupid, because I'm not able to get it running. Mostly because of lack of knowledge from my side I think...&#13;
&#13;
The syntax should be (according to WDAPI)&#13;
&#13;
FunctionReturn is boolean // C type:BOOL&#13;
lpExistingFileName is system int // C type:LPCSTR, this is the address of a string, you also have the ability to specify a string directly&#13;
lpNewFileName is system int // C type:LPCSTR, this is the address of a string, you also have the ability to specify a string directly&#13;
lpProgressRoutine OPTIONAL is LPPROGRESS_ROUTINE //*********** TYPE NOT FOUND ***********&#13;
lpData OPTIONAL is system int // C type:LPVOID&#13;
pbCancel OPTIONAL is system int // C type:LPBOOL&#13;
dwCopyFlags is int // C type:DWORD&#13;
&#13;
FunctionReturn=API("KERNEL32","CopyFileExA",lpExistingFileName,lpNewFileName,lpProgressRoutine OPTIONAL,lpData OPTIONAL,pbCancel OPTIONAL,dwCopyFlags)&#13;
&#13;
For the sourcefile and destination a system int is used, but it should be possible to use a string directly also. But I can't figure out what I have to change in the code.&#13;
It would be nice to get the copy working, and then I need to be able the copyprogress with a progressbar. I suppose this has to be done by the lpProgressRoutine. But I don't have any clue on how to do it.&#13;
&#13;
In other words.... HELP !&#13;
&#13;
grtz&#13;
&#13;
Patrick</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62098-could-use-some-help-with-copyfileexa-api/read.awp</link><title>I could use some help with CopyFileExA API</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62098-could-use-some-help-with-copyfileexa-api-62113/read.awp</comments><pubDate>5 Aug 2017 18:34:00 Z</pubDate><description>Hello Fabrice,&#13;
&#13;
thank you for your answer, I will have a look at it.&#13;
&#13;
I know that frProgress option of the fCopyFile command…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62098-could-use-some-help-with-copyfileexa-api-62113/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62098-could-use-some-help-with-copyfileexa-api-62113/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62098-could-use-some-help-with-copyfileexa-api/read.awp">I could use some help with CopyFileExA API</source><title>Re: I could use some help with CopyFileExA API</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62098-could-use-some-help-with-copyfileexa-api-62112/read.awp</comments><pubDate>5 Aug 2017 13:25:00 Z</pubDate><description>Hi Patrick,&#13;
&#13;
I've never used this particular api, so what I'm telling you is generic.&#13;
&#13;
AFAIK, a callback function is passed …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62098-could-use-some-help-with-copyfileexa-api-62112/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62098-could-use-some-help-with-copyfileexa-api-62112/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62098-could-use-some-help-with-copyfileexa-api/read.awp">I could use some help with CopyFileExA API</source><title>Re: I could use some help with CopyFileExA API</title></item></channel></rss>
