Drag files from explorer to VS2005 on Vista?
-
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
I simply opened Visual Studio and then tried to drap a .CPP file onto it without creating a project. This works in MSVC6.
Steve
-
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
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 -
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 milkI 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
-
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
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?
-
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?
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
-
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
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?
-
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?
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 theWM_DROPFILES
message but this had no effect.Steve
-
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
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!
-
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?
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
-
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?
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