To copy a file from an archive to the clipboard Topic is solved

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
mick009
Earned a small fee
Earned a small fee
Posts: 13
Joined: Sun Aug 10, 2008 10:13 am

To copy a file from an archive to the clipboard

Post by mick009 » Mon Aug 11, 2008 7:05 pm

Hello,
Fistly, I'm french, so if I do mistakes don't be evil ^^ !
I write this topic to know how can I copy a file rom an archive to the clipboard ?

The file's archive must be extract to be copied ?
Thank you very much for your answers ^^ !
PS : don't hesitate to correct my mistakes !!

timg
Earned some good credits
Earned some good credits
Posts: 148
Joined: Mon Jan 23, 2006 6:52 pm

Post by timg » Mon Aug 11, 2008 8:29 pm

If it's a .zip file, you could look into wxZipInputStream for reading the data, then just copy it to the clipboard as needed.

mick009
Earned a small fee
Earned a small fee
Posts: 13
Joined: Sun Aug 10, 2008 10:13 am

Post by mick009 » Mon Aug 11, 2008 9:28 pm

But how can I copy a file without extracting this ?
I know the class wxFileDataObject but I don't think it's the best class for my situation !

Can you help me ?

FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

Post by FlyingIsFun1217 » Tue Aug 12, 2008 3:10 pm

Never done anything like this personally, but get a data stream of it's contents and store it, then move it over to the system clipboard, I would imagine.

FlyingIsFun1217

Post Reply