ducker88
Messages postés277Date d'inscriptionlundi 9 février 2004StatutMembreDernière intervention 4 mai 2008
-
3 mai 2006 à 14:56
Mike Gagnon
Messages postés381Date d'inscriptionvendredi 15 octobre 2004StatutMembreDernière intervention24 octobre 2013
-
4 mai 2006 à 12:57
Bonjour,
Voila je cherche à recuperer des fichiers sur un pocket pc à l'aide d'une appli foxpro.
J'ai integré le code suivant dans mon appli :
CeRapiInit()
CeCopyFile("c:\temp\test.txt", "\temp\test.txt", 1)
Mais cela ne marche pas. Sur internet j'ai trouvé
Parameters:, ----
, ----
lpExistingFileName
[in] Long pointer to a null-terminated string that specifies the name of an existing file.
lpNewFileName
[in] Long pointer to a null-terminated string that specifies the name of the new file.
bFailIfExists
[in] Boolean value that specifies how this operation is to proceed if a file of the same name as that indicated by lpNewFileName already exists.
Mais tous cela ne m'aide pas beaucoup. Quelqu'un a t'il deja fait cela ?
Mike Gagnon
Messages postés381Date d'inscriptionvendredi 15 octobre 2004StatutMembreDernière intervention24 octobre 20132 4 mai 2006 à 12:57
toto = CeRapiInit()
La lgne ci-haut doit surement te donner un erreur, a moins que tu ai la classe CeRapiInit(), que ne semble pas etre le cas. Si c'est le cas, enleve la ligne.
FUNCTION CopyFile(cSourceName, cTargetName) As Boolean
IF CeCopyFile(m.ToUnicode(cSourceName),;
ToUnicode(m.cTargetName), 1) = 0
RETURN .F.
ENDIF
RETURN .T.