Pelles C forum

C language => Windows questions => Topic started by: ml1969 on September 29, 2009, 06:39:50 PM

Title: Copy File From Desktop(PC) to PDA/PPC
Post by: ml1969 on September 29, 2009, 06:39:50 PM
Hello,

I collected some experiences in "programming" with PellesC for PNA,
all what I tried works so far....
Now, I begin programming for Desktop Windows (Xp, Vista etc)

I found the rapi.h and it works with CeCopyFile, CeMoveFile and so on....

Waht I want to do is to copy a file from the DesktopPC to the PDA (or from PDA to the DesktopPC)

The application runs NOT on the PDA, only on the DesktopPC... so I hope this is the right forum.


But I did not found anything that helps me.... ok I found something für VB.net but this is NOT the way I wanna go.....


Does anybody has an entrypoint for me?


Michael
Title: Re: Copy File From Desktop(PC) to PDA/PPC
Post by: Stefan Pendl on September 29, 2009, 08:16:10 PM
For PC applications you would use CopyFile or SHFileOperation API functions.

MSDN know all about them, use the definitions for Win32 and COM.
Title: Re: Copy File From Desktop(PC) to PDA/PPC
Post by: ml1969 on September 29, 2009, 09:26:26 PM
Hello Stefan,

sorry if I wrote something wrong.. or misunderstandable..

Copying files on the PC is no problem,
also using CeCopyFile using rapi.h is no problem,

what I tried to ask is, how to copy a file from the  PC to the PDA (PNA, PPC) ir from PD to PC.
I think I have to use also some rapi functions, but I did not find any.

Example I want to copy (desk) c:\test.txt  to  (device) \\storage card\\test.txt
I know the MS-tool cecopy.exe, but I did not want to use an external program.


Michael