IDsObjectPicker fails on the latest Windows 10 updates - c++

I've had some Active Directory "Select Users or Groups" code based on IDsObjectPicker working for years but suddenly it has stopped working on the latest Windows 10 updates. The Select User dialog opens correctly but when clicking "Check names" or "Advanced > Find Now" I get an error (Unspecified error):
The application is a 32 bit C++ MFC based application. If I run it as Administrator it works. I found a C# sample that works but without running as Administrator.
I found an old sample on Code Project that has the same problem:
https://www.codeproject.com/articles/6307/using-the-windows-2000-xp-object-selection-dialog
Any ideas?

Related

Visual Studio 2015 error: Unable to start debugging. Unexpected GDB output from command "-target-select remote :5039". Remote connection closed

I see the following error whenever I try to debug "Cross Platform" under "C++" category: "Unable to start debugging. Unexpected GDB output from command "-target-select remote :5039". Remote connection closed"
I've installed all of the contents when I downloaded Visual Studio 2015 community and I ran it on Windows 10 Pro which supports Hyper-V.
I've been searching a solution for this and I've found an assumption:
"What is your debug target, the VS Android Emulator? When we saw this before it turned out to be a bad emulator image. Do you have this problem with all targets (e.g. if you try a physical device) or just one?"
In my case, I just tried this via Emulator(VS Emulator 5" Lolipop (5.0) XXHDP Phone (0x86 -...)
So I've sent an Email to VS 2015.
And the answer was like this:
"Sorry for the delay in responding we were looking at an emulator image of another user that ran into this problem so I was waiting until we had the results of that investigation to report back. We actually were not able to find anything wrong the emulator itself, our current hypothesis is that it is a network or adb problem interfering with GDB’s ability to connect to GDB server on the remote machine. Do you see this error every time you try to debug, or if you reboot the emulator will it work sometimes right after the reboot? Next time you see the error, can you open the emulator’s console mode by going go the Hyper-V manager and double clicking the emulator. Then find the location your app installed to and run “gdbserver --version" from the app path and let me know what it says? This will validate if the correct version of gdbserver is on the device."
So we are trying to solve this problem but I'm also asking here just in case.
Is there anyone who has magical solution for this problem?
I'll put a comment on this if I figure out how to solve this.
Thanks in advance.
** Following answer is from the manager of Visual Studio 2015:
You are only the second person who has run into this issue, and the first person that ran into it provided their everything works correctly when we run their .vhd on our machines so it appears to be some strange problem where gdbserver (which comes from the Android NDK provided by Google) crashes only when running on certain machines. Unfortunately the .vhd you provided does not appear to be the correct one it won’t boot for me. You can see the .vhd file being used by the emulator if you look under the settings of the emulator in your Hyper-V manager. .However given we got the other person’s .vhd you can hold off providing any additional information at this point. I’m waiting to hear back from the emulator team on if they have any ideas since this appears to be an issue only on specific machines since.
If you don’t mind my asking, if you don’t have a background in computers what inspired you to try C++ on Android? That scenario will be significantly more complicated than doing Java on Android.
It's been almost two months since I got this answer but I haven't got any additional response from them yet. So, I ended up quitting developing an application by using VS2015.
If you run into this problem, there are only two ways to go. Change your computer or stop developing application via VS2015.
If the project name contains spaces, the whole remote debugging fails. Visual Studio also creates weird paths. When checking out the "Blink1 for Raspberry Pi" template, I named the Project "Blink1 for Pi", which resulted in a path like this:
~/projects/Blink1?/for/pi/PI/for/pi....
And all the debugging failed. When I recreated this keeping the project name "Blink1", everything worked fine. It's a pity, that spaces aren't handled here...

Console Application gets Window Smartscreen Unrecognized Application

So I wrote a simple C++ Console Application in Visual Studios 2013, it was a game of Rock, Paper, Scissors for my friends to demonstrate C++ to them. Each of my friends downloaded the game over Skype, and tried to open the application. However, it didn't work, they are running Windows 8/8.1 and they got an error, Windows Smartscreen prevented a unrecognized app from starting. For the publisher it says Unknown Publisher. It was a simple error to remove just click more info and run anyway. This problem is however very annoying and if so I would like it to stop when my applications run on others computers. Could it just be the way I transferred the file to them? I have look everywhere on the internet but the closest thing I could find was how this happens to Windows Application in VS, how you need a Digital Certificate for Windows to trust you as a Publisher. If you would need to review my source code it is on Pastebin here:Rock, Paper, Scissors Source Code

Unable to run SDL program in Eclipse but able to do so in Windows Explorer

I have installed and set up SDL and managed to get a tutorial example to build (the tutorial code is from http://zamma.co.uk/setup-sdl2-eclipse-windows/) as a C++ Project in Eclipse.
The problem is that when I try to run the application from Eclipse, the window doesn't appear, or perhaps it gets closed soon after appearing. Eclipse doesn't appear to show any errors.
When I open the folder containing the executable in Windows Explorer and double-click on the application, it works; a window appears with "Hello World" as the title and closes after two seconds.
How can I get the window to appear when I run from Eclipse? Any breakpoints I set are ignored by the debugger.
IDE: Eclipse Luna 4.4.1 OS: Windows 7 64-bit
The program now runs in Eclipse, so the solution may have been to refresh Eclipse and double check Build settings and Run configurations, as well as checking for any OS modifications that may affect the software running on it (thanks to all who replied for the help).

NetBeans 7.0.1 good C++ program execution "RUN FAILED"

Working inside NetBeans 7.0.1, fresh install on Ubuntu 13.10.
I have a known good C++ program.
I finally get it to compile and link.
When I press the Netbeans Run Main Project triangle, the execution breaks with
java.util.MissingResourceException: bin/nativeexecution/Linux-x86/pty
RUN FAILED
What's going on, and how to fix it?
This is a NetBeans output-window setting problem.
NetBeans comes up with C++ projects defaulting to "Internal Terminal". This is not working on your present configuration.
The answer is to switch your output to "External Terminal", which pops up a separate purple terminal typing console in its own window for your interaction, or "Standard Output",which presents the output in the expected white subpane below.
Do this by:
Right-mouse-click on your project name -> Properties
on the left side, in the "Categories:" column, select * Run
on the right side, beside the >General -> Console Type:,
change the pulldown menu from "Internal Menu" into "Standard Output".
Hit the OK button at the bottom to lock it in.
Now your project will run, forever after, when you ask it to.
according to this netbeans forum post package of netbeans 7.0.1 is lacking some files.
Removing version from repo and installing from netbeans download site worked like a charm for me and nb forum OP.
So problem is also in ubuntu 14.04.
Also repo version is little out-of-date and NB have nice .sh installer. Just remember to install some JDK from repo or anywhere else.

Qt ActiveX Server Debugging Strategy

I am having problems with building an ActiveX object via activeqt. I attempted to follow a "Simple Example" via the qt 5 documentation (source, but when I run the demo IE page, the page only displays "Object not available! Did you forget to build and register the server?". My steps consisted of the following:
Install Visual Studio 2012 Express
Install Qt creator with extra sources (64 bit on 64 bit Windows 7)
Build the QAxServer library
Run qmake on the Simple example project
Build the "Simple" example project
Try the page with IE
I verified the classid is at least showing in the registry, and the compile output notes that activex server was successfully registered. I checked the event logs, but nothing is showing. The IE console notes that the "Object doesn't support property or method 'about'", but I get that error even if I use a bogus class id, so I'm assuming it could be throwing that error for many reasons. Does anybody have any other debugging strategies? Anywhere else IE might be hiding some useful logs? Thanks!