VC Issue faced while developing an application

Asked By 7060 points N/A Posted on -
qa-featured

I am working on a standard Visual C MFC application. There is a file say x.abc, whenever I double click this file, it opens directly in my VC app. This VC app is running as administrator and that is the requirement of the project. Case

1: Now, in Windows 7, when User Access Control (UAC) is ON, and I double click on file with .abc extension, it gives error message "There was a Problem sending the command to program" and the file doesn't open and neither does that app. Case

2: If my VC exe is already open and then I double click .abc file, it gives error "There was a Problem sending the command to program" and then the file opens. This problem occurs in Windows 7 with UAC ON only. Let me know if you have experienced the similar problem.

By the way, I am using the methods EnableShellOpen(); RegisterShellFileTypes(FALSE);

SHARE
Best Answer by Shifflett Laurel
Best Answer
Best Answer
Answered By 0 points N/A #195378

VC Issue faced while developing an application

qa-featured

Hello Anonymous

I have faced similar problem with User Account Settings ON. This settings allows three types of notifications

  1. Notify when any program is being executed and user decide it to execute .
  2. Notify if a program outside of Windows tries to make changes to a Windows settings.
  3. Notify when programs make changes to your computer that require the permissions of an administrator

So if you think you don't need to be prompt whenever any changes to your windows setting or execution/installation of any program then you can turn it OFF by following procedures:

  • Type in search box of programs "UAC"
  • Or Go to Control PanelAll Control Panel ItemsAction Center
  • Select "Change User Account Control Settings" tab from left side bar of the window.
  • Scroll down the bar to the "Never Notify "
  • You will again be prompt to access the change.
  • Click Yes button .
  • Then execute your desired file again

Hope this will be effective

Shifflett Laurel

Answered By 0 points N/A #84920

VC Issue faced while developing an application

qa-featured

Yes I checked that solution. My application works fine in this scenario but my client does want UAC to be turned OFF.

Is there any alternative for this?

Also thanks for posting the solution.

Answered By 10 points N/A #195379

VC Issue faced while developing an application

qa-featured

Hello Anonymous,

I am also working on a standard Visual C MFC application. But I have not faced this kind of problem.
I am a user of windows 8.I think you should change your operating system.

Because Windows 8 is the best operating system to perform this type of work.

The other option is for you to try work in XP.

Hope you will rock then.

Regards
Franke Mary

Related Questions