Drag and Drop in Windows 7 not working in admin mode - visual-studio

Problem
I have a strange problem. I have written an application in MFC(using VS2003) to handle "Drag and Drop" of file/folder. When I run the application in administrator mode, DnD is simply rejected but works in other way (when I don't choose to run in admin mode).
Work around
I have tried several ways :
http://helgeklein.com/blog/2010/03/how-to-enable-drag-and-drop-for-an-elevated-mfc-application-on-vistawindows-7/
http://www.cdartdisplay.com/forum/showpost.php?p=12302&postcount=13
http://forums.codeguru.com/showthread.php?499909-MFC-Drag-and-Drop-works-on-XP-broken-on-Vista-Windows-7-(
None of them worked for me.
Development tool details
IDE : Visual Studio 2003 version 7.1.3088
OS : Windows 7 Professional (64 bit)
Please suggest me a solution to resolve it.
Thanks.

Windows Explorer and Windows does many tricks around. Enable all messages:
ChangeWindowMessageFilter (WM_DROPFILES, MSGFLT_ADD);
ChangeWindowMessageFilter (WM_COPYDATA, MSGFLT_ADD);
ChangeWindowMessageFilter (0x0049, MSGFLT_ADD);
Got it from:
http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/thread/2fa935cf-be57-4bcc-9b96-7ee5a6b2b7a5/

Related

WindowsPE - How to run electron app, missing dll

Hello Computer enthusiasts,
i try to run my electron app on windows pe.
When i try to start the app trough the "startnet.cmd" nothing happens.
If i want to start it over "procex64.exe" (Windows Process Explorer, from Sysinternals) i get the error that some ddl's are missing
msdmo.dll
dxgi.dll
d3d9.dll (DirectX ?)
dxva2.dll
Anyone know what this is, how i can fix that problem ?
Thanks for any advice.
Found a solution:
copy they files from a full windows installation to your windows pe image,
c:\windows\system32:
BCP47Langs.dll
d3d9.dll
d3d11.dll
dxgi.dll
dxva2.dll
msdmo.dll
(Tested/Found on Windows 10 Pro)
Is just a simple electron app with a single page and a few buttons. Perhaps there are other *.dll's if you work with media files or similar.

blank window when installing visual studio on windows 10

I have a Windows 10 64-bit PC (fresh install, not an upgrade).
When I run the setup file (web or offline alike) in order to install Visual Studio (2013 or 2015, Community edition), all I get is a small black rectangle on the screen (which I later found out that this is actually the title of the setup popup window), without the actual window of the installation.
I have tried it also after a reboot, and with various "versions" of the installation files (web, iso, standalone), but it's always the same situation.
What can I do about it? VS is my main development tool and I really need it on this computer as soon as possible.
Similar problem here. Program install ok but display blank screen after launched.
Problem solved when I changed my Nvidia graphics's global 3D setting to integrated graphics.
Right click desktop
Select Nvidia Control Panel
Select Manage 3D Settings
Under preferred graphics processor, select integrated graphics.
Apply.
If you are using a laptop with an external monitor, try unplugging it and using your primary monitor to launch. This worked for me. Laptops often have dual graphics cards and I believe we're hitting some issue with the way the Installer for VS was written (likely WPF)
Once I launced it and started the installation, I could safely plug my monitor in and it kept working properly.
I'm using an AMD GPU, It was a blank white screen but when I hover the mouse over it, I can see the text events
By the way
I went to my AMD Radeon Settings and saw that vs_installershell.exe and vs_setup_bootstrapper.exe were added automatically to the Switchable Graphics list
they were with Not Assigned Option which usually is like High Performace Option
means It would run it with my ATI GPU.
So I clicked on them
Selected Power Saving Option (to work with my Intel GPU)
Which worked and I can see the window of visual studio installer back
after restarting visual studio installer for sure.
whether is your graphics card, just turn on power saving for it.
Had the same issue. Since this topic is not accept any answare, there is one from https://developercommunity.visualstudio.com/content/problem/150888/visual-studio-installer-shows-blank-screen.html
Try to open installer as Admin.
You will probably have blank screen. Do not close it!
Open installer once more.
Hope it help other people with same issue.
the same thing happened to me, i didn't do anything i just waited for it and it started showing it's status, i suggest you close other running programs to avoid conflicts and performance hindering, and try it again.
This seems like a very shoddy issue. I've run into this problem too, and I tested all solutions that I came across online. These all work:
Running the installer as administrator, which is a blank screen. Leave it open and run a second instance of the installer, which will not be blank (doesn't need to be run as administrator the second time.
Changing screen settings so that the laptop screen is not being used.
Downloading the AMD Settings application, and setting vs_installershell.exe to run on powersaving mode. Restart the installer after saving the settings.
Use a default graphics driver instead of the AMD one.
I had the the same problem in my laptop. The temporary solution is: start the installer only without the battery, if installer starts you can connect the cable, it works fine.
I had to run integrated graphics rather than my Nvdia. That solved it for me.
Remember to change it back when programming in OpenGL and DirectX otherwise you may get a list of messages staying that nothing works.
I had the the same problem in my laptop. The work around is, in device management, remove the amd graphics or start the installer only with battery.

Windows 8.1 Task Bar Context Menu Error

I'm sorry if this is the wrong place but I really don't know where to go for something like this.
I did a fresh install of Windows 8.1 on my new SSD and the context menus for the task bar looks like this now...
I realize this may not be the right place to post, but could you point me in the right direction? Thanks!
The solution was to uninstall Windows Update KB3072318.
https://www.reddit.com/r/techsupport/comments/3f4yz9/my_jump_list_icons_are_huge_and_weird/
You get this graphical glitch because you use a custom Windows 8 theme under Windows 8.1. Microsoft changed the format a bit. StartIsBack+ (for Windows 8.1) fixes this issue and restore the Win7 Start menu for a better Windows 8.1 UX.
Ok, forget my previous answer! It's got nothing to do with the SSD.
I just found a fix/workaround:
Just make a clean install with the internet completely disconnected and only connect after the setup is fully finished.
Also, this way, you won't even see the windows 10 upgrade notification on the setup.
Hope this helps...

How to fix "Unable to activate Windows Tailored application" on Win8

I get "Unable to activate Windows Tailored application" error in Metro app when I'm running it under debugger of Visual Studio 11. I installed Windows 8 x64 Developer Preview on my Dell E6510 laptop.
I googled it and found out many people saying it happens when screen resolution is smaller than 800x600 but it's 1920x1280 in my case.
The app itself contains nothing. It's just empty wizard created application which is nothing but windows with black background.
Any ideas? It seems like very common issue.
The solution was quite bizarre but I figured it out.
It turns out not a single Metro application works under Administrator account including my apps. I'm talking about built-in Administrator account that is disabled by default (but which I enabled).
It gives "Access denied" error so I suspect it's somehow related to the way WinRT COM objects were registered or something like that. Go figure.
I hope somebody from Microsoft is reading this.
Best solution is to wait 2 weeks for the next release. The developer preview is full of fun bugs like this. I've seen this error caused by invalid app.xaml. Double check that you really haven't changed anything. I've also seen this error sometimes resolved by rebooting. Have fun!

zend studio 5.5.1 on windows xp - won't open!

I have been using zend studio 5.5.1 for the last year and and a half (on windows xp), with some occasional issues, such as a blank error dialog box when I started the program, but always went away when i restarted my computer, and usually got messages about javaw.exe errors.
But now, the program does not open at all. What happens is, I get a little dialog that says Loading project - this is normal... but then, nothing. The zend program item is sitting in the taskbar, but when i click on it - nothing! there is nothing to show. i can right click and press close, but that is all.
restarting computer did not help. i just uninstalled it, downloaded again from zend website, and reinstalled. tried opening - get loading box, seems to have loaded, even got tip of the day box. but there is nothing showing behind them. once i closed the tip box, i dont have any indication that zend is open besides the program item in the taskbar. windows task manager says it is running...
anyone have a clue? help!!! thanks
UPDATE:
I found this blog post with a fix for Linux... I am a windows user and that is greek to me, anyone who can translate for me what I can do for windows?
wow, did a google search for the equivalent of rm -r ZDE as suggested in the link above, and then I typed the following in the cmd prompt: rmdir /s ZDE
voila! it works!!!!
Running Zend Studio 5.5.1 on Windows 7:
Right click Zend-icon for Windows 7 program properties
On Compatibility tab set modus to Windows Vista and apply
Enjoy!

Resources