Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Cut operation with COleDataSource/COleDataObject

Cut operation with COleDataSource/COleDataObject

Cut operation with COleDataSource/COleDataObject

I try to make copy-cut-paste operations on files through an own designed file explorer with drag'n'drop compatible with the file explorer of Windows. For the copy, it work fine by simply using again the source code written for drag'n'drop which create a COleDataSource. I only had to add :


Where pSource is a pointer to the COleDataSource.

For paste, it works only "a half". In fact, I paste the files but if the user previously make a cut operation in the windows explorer, the file are copy but not moved. Pasting method is the same as dropping with the control key pressed.

For cut, well, I don't know how to say "this is a cut operation, not a copy", so I make the same as for the copy...

My problem is that for the drag'n'drop operation, we know if we should make a copy or a paste looking to the keys which are pressed (control and shift). But for cut and paste, I suppose there is a field of the Ole object which indicate what operation to do but I can't find it.

Somebody can help me ?



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close