Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SHFileOperation and Vista64

SHFileOperation and Vista64

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    khb
    wrote on last edited by
    #1

    Hello! I've developed an MFC application with VC++6.0. It still works for Vista32, but when I try to move a file to the recycle bin using SHFileOperation on Vista64 then I get the error code 120(ERROR_CALL_NOT_IMPLEMENTED). I know for Vista I should use IFileOperation, but I'm still using VC++6.0. Is there any way to move files to the recycle bin on Vista64 using VC++6.0? Kind regards Marcus

    _ 1 Reply Last reply
    0
    • K khb

      Hello! I've developed an MFC application with VC++6.0. It still works for Vista32, but when I try to move a file to the recycle bin using SHFileOperation on Vista64 then I get the error code 120(ERROR_CALL_NOT_IMPLEMENTED). I know for Vista I should use IFileOperation, but I'm still using VC++6.0. Is there any way to move files to the recycle bin on Vista64 using VC++6.0? Kind regards Marcus

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Download the latest Windows SDK from here - http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en[^] Add a reference to the include and lib folders searched for VC6 to the installed SDK. Now you should be able to use IFileOperation.

      «_Superman_» I love work. It gives me something to do between weekends.

      K 1 Reply Last reply
      0
      • _ _Superman_

        Download the latest Windows SDK from here - http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en[^] Add a reference to the include and lib folders searched for VC6 to the installed SDK. Now you should be able to use IFileOperation.

        «_Superman_» I love work. It gives me something to do between weekends.

        K Offline
        K Offline
        khb
        wrote on last edited by
        #3

        Wow! This is unawaited :) A long time ago somebody told me that the PSDKs from 2002 and later don't apply to VC6 any more. Therefore I'm still using the Oct. 2001 version. Does the latest SDK really compile for VC6? Thank you very much for your help! Kind regards Marcus

        _ L 2 Replies Last reply
        0
        • K khb

          Wow! This is unawaited :) A long time ago somebody told me that the PSDKs from 2002 and later don't apply to VC6 any more. Therefore I'm still using the Oct. 2001 version. Does the latest SDK really compile for VC6? Thank you very much for your help! Kind regards Marcus

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          I really don't know. You should try it and let me know. ;P

          «_Superman_» I love work. It gives me something to do between weekends.

          K 1 Reply Last reply
          0
          • _ _Superman_

            I really don't know. You should try it and let me know. ;P

            «_Superman_» I love work. It gives me something to do between weekends.

            K Offline
            K Offline
            khb
            wrote on last edited by
            #5

            Then I fear that it won't work. I'm just reading the release notes and they state that the current SDK only applies for VS2005 and VS2008. Anyway, thanks for the hint. Kind regards Marcus

            _ 1 Reply Last reply
            0
            • K khb

              Then I fear that it won't work. I'm just reading the release notes and they state that the current SDK only applies for VS2005 and VS2008. Anyway, thanks for the hint. Kind regards Marcus

              _ Offline
              _ Offline
              _Superman_
              wrote on last edited by
              #6

              Sorry about that. Didn't see that myself.

              «_Superman_» I love work. It gives me something to do between weekends.

              K 1 Reply Last reply
              0
              • _ _Superman_

                Sorry about that. Didn't see that myself.

                «_Superman_» I love work. It gives me something to do between weekends.

                K Offline
                K Offline
                khb
                wrote on last edited by
                #7

                Doesn't matter. This confirms my feeling again that someday I have to buy VS20xy :| Kind regards Marcus

                1 Reply Last reply
                0
                • K khb

                  Wow! This is unawaited :) A long time ago somebody told me that the PSDKs from 2002 and later don't apply to VC6 any more. Therefore I'm still using the Oct. 2001 version. Does the latest SDK really compile for VC6? Thank you very much for your help! Kind regards Marcus

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  khb wrote:

                  Therefore I'm still using the Oct. 2001 version. Does the latest SDK really compile for VC6?

                  No, I do not recommend trying to use the latest Microsoft SDk with VC6, there are several incompatibilities. The Windows Server 2003 PSDK was the last SDK which was guaranteed to be compatiable with VC6. You can download it here: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm[^] Make sure that you also have Microsoft Service Pack 6 for Visual Studio 6.0.[^] installed. Best Wishes, -David Delaune

                  K 1 Reply Last reply
                  0
                  • L Lost User

                    khb wrote:

                    Therefore I'm still using the Oct. 2001 version. Does the latest SDK really compile for VC6?

                    No, I do not recommend trying to use the latest Microsoft SDk with VC6, there are several incompatibilities. The Windows Server 2003 PSDK was the last SDK which was guaranteed to be compatiable with VC6. You can download it here: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm[^] Make sure that you also have Microsoft Service Pack 6 for Visual Studio 6.0.[^] installed. Best Wishes, -David Delaune

                    K Offline
                    K Offline
                    khb
                    wrote on last edited by
                    #9

                    David, thank you very much for pointing me out that there is a more recent SDK for VC6. The service pack I already have. Kind regards Marcus

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups