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. Windows API
  4. Drag files from explorer to VS2005 on Vista?

Drag files from explorer to VS2005 on Vista?

Scheduled Pinned Locked Moved Windows API
12 Posts 5 Posters 13 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.
  • H Hari Om Prakash Sharma

    i tested by draging xml file..it works! what type of file u want to drag.related to project

    Lxcite's Planet [~COMING SOON:~] lxcite.com lxcitesplanet.com

    S Offline
    S Offline
    Stephen Hewitt
    wrote on last edited by
    #3

    I simply opened Visual Studio and then tried to drap a .CPP file onto it without creating a project. This works in MSVC6.

    Steve

    1 Reply Last reply
    0
    • S Stephen Hewitt

      I think I've seen this topic discussed before but my Google Fu is failing me and I can't find any info. I've been giving Visual Studio 2005 a test run on Vista but when I try to drag a file from explorer to the IDE it will not accept the drop! To me this is a BIG thing! Anyone know what's going on here? How do I fix it?

      Steve

      D Offline
      D Offline
      David Wulff
      wrote on last edited by
      #4

      I've never experienced that, but AFAIK it is being you are not running VS as an administrator (i.e. 'run as administrator') and explorer is, or some combination to similar effect. In Vista they can't talk to each other.


      Ðavid Wulff What kind of music should programmers listen to?
      Join the Code Project Last.fm group | dwulff
      I'm so gangsta I eat cereal without the milk

      S 1 Reply Last reply
      0
      • D David Wulff

        I've never experienced that, but AFAIK it is being you are not running VS as an administrator (i.e. 'run as administrator') and explorer is, or some combination to similar effect. In Vista they can't talk to each other.


        Ðavid Wulff What kind of music should programmers listen to?
        Join the Code Project Last.fm group | dwulff
        I'm so gangsta I eat cereal without the milk

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #5

        I am runnting VS as admin; explorer is being run whatever it runs as when you log in as an administrator. I have applied SP1 and the Vista update for SP1. MSVC6 works just fine in this regard on Vista.

        Steve

        M P 2 Replies Last reply
        0
        • S Stephen Hewitt

          I am runnting VS as admin; explorer is being run whatever it runs as when you log in as an administrator. I have applied SP1 and the Vista update for SP1. MSVC6 works just fine in this regard on Vista.

          Steve

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #6

          Drag/drop will never work in that case, because Vista blocks communication from a lower-integrity process (Explorer, running medium) to a higher-integrity process (VS, running high). It won't work with VC6 either.

          --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

          S 1 Reply Last reply
          0
          • M Michael Dunn

            Drag/drop will never work in that case, because Vista blocks communication from a lower-integrity process (Explorer, running medium) to a higher-integrity process (VS, running high). It won't work with VC6 either.

            --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

            S Offline
            S Offline
            Stephen Hewitt
            wrote on last edited by
            #7

            Michael Dunn wrote:

            It won't work with VC6 either.

            Just that second I done it in VC6 and it worked. If I right click on the VC6 shortcut and run as admin it doesn't work however. Either way I run 2005 it will does not work however. Given that WM_DROPFILES simply transfers filenames from one app to another I fail to see the security risk. One of Windows' greatest features was the integration of applications with the shell; I am at a loss that the absence of this is acceptable to Microsoft - it's not to me. Is there any kind of work-around? I am willing to remove UAC (if it will help) and never look back to work around this one "feature".

            Steve

            M 1 Reply Last reply
            0
            • S Stephen Hewitt

              Michael Dunn wrote:

              It won't work with VC6 either.

              Just that second I done it in VC6 and it worked. If I right click on the VC6 shortcut and run as admin it doesn't work however. Either way I run 2005 it will does not work however. Given that WM_DROPFILES simply transfers filenames from one app to another I fail to see the security risk. One of Windows' greatest features was the integration of applications with the shell; I am at a loss that the absence of this is acceptable to Microsoft - it's not to me. Is there any kind of work-around? I am willing to remove UAC (if it will help) and never look back to work around this one "feature".

              Steve

              M Offline
              M Offline
              Michael Dunn
              wrote on last edited by
              #8

              Stephen Hewitt wrote:

              One of Windows' greatest features was the integration of applications with the shell

              That integration also created attack vectors like malicious browser plugins and the shatter attack[^]. There's always a trade-off between security and convenience. UIPI puts up a security layer between processes, with the loss of the convenience of some features based on drag and drop and message passing.

              --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

              S 3 Replies Last reply
              0
              • M Michael Dunn

                Stephen Hewitt wrote:

                One of Windows' greatest features was the integration of applications with the shell

                That integration also created attack vectors like malicious browser plugins and the shatter attack[^]. There's always a trade-off between security and convenience. UIPI puts up a security layer between processes, with the loss of the convenience of some features based on drag and drop and message passing.

                --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

                S Offline
                S Offline
                Stephen Hewitt
                wrote on last edited by
                #9

                Yes, I understand the motivation behind UIPI and even approve. Still, there should be some way around the problem such as putting an application on some kind of list to allow the interaction on a per application basis. I tried writing an add-in that called the ChangeWindowMessageFilter function inside Visual Studio for the WM_DROPFILES message but this had no effect.

                Steve

                1 Reply Last reply
                0
                • S Stephen Hewitt

                  I am runnting VS as admin; explorer is being run whatever it runs as when you log in as an administrator. I have applied SP1 and the Vista update for SP1. MSVC6 works just fine in this regard on Vista.

                  Steve

                  P Offline
                  P Offline
                  preludeoflight
                  wrote on last edited by
                  #10

                  Following up with what Mr. Dunn said, UAC is the culprit. I had this same problem, as well as one other funny little problem: the 'scroll' ability of my touch pad wouldn't function in VS. It would not move the mouse, but the document would never scroll, but I could scroll in Non-administrator apps. I disabled UAC and restarted, both problems resolved. Sad, because I like UAC, but I'd need explorer to talk to VS2005. Hope this helps!

                  1 Reply Last reply
                  0
                  • M Michael Dunn

                    Stephen Hewitt wrote:

                    One of Windows' greatest features was the integration of applications with the shell

                    That integration also created attack vectors like malicious browser plugins and the shatter attack[^]. There's always a trade-off between security and convenience. UIPI puts up a security layer between processes, with the loss of the convenience of some features based on drag and drop and message passing.

                    --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

                    S Offline
                    S Offline
                    Stephen Hewitt
                    wrote on last edited by
                    #11

                    I've just noticed that double clicking on a file (.cpp file) in explorer opens VS2005 but no file opens. If I run explorer elevated drag and drop works but double clicking on a file still fails. I'm all for security but more important is having things work; secure broke is just broke. Is this "normal" for Vista? It seems VS2005 is not Vista compatible even after installing SP1 and the SP1 update for Vista. This whole situation is really disappointing. If MS can't make stuff work on Vista who can?

                    Steve

                    1 Reply Last reply
                    0
                    • M Michael Dunn

                      Stephen Hewitt wrote:

                      One of Windows' greatest features was the integration of applications with the shell

                      That integration also created attack vectors like malicious browser plugins and the shatter attack[^]. There's always a trade-off between security and convenience. UIPI puts up a security layer between processes, with the loss of the convenience of some features based on drag and drop and message passing.

                      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

                      S Offline
                      S Offline
                      Stephen Hewitt
                      wrote on last edited by
                      #12

                      In the end I just enabled the Administrator account (which has no UAC and such) and I use that for development. It’s a pain but better than any other solution or workaround I’ve heard of so far. Hopefully Microsoft will make VS2005 more tolerable in a future SP.

                      Steve

                      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