CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Apr 1999

    Numerous problems when application is started using "Open with"

    When the file that my application saves is opened using right-click/Open with, there are many mysterious problems:

    1) AfxMessageBox will not work (based on a small sample) from anywhere in the program. It is ignored.

    2) Any files written to temp directory or to the working directory (directory of the opened file) can't be saved because the file path has been mysteriously changed to c:\windows\system32.

    3) Any reference to the directory of the opened file is changed to c:\windows\system32.

    At first I thought this was a Windows security measure but it seems too crazy.

    The program is 13 years old and works fine when the file is opened from inside the program using File > Open or is double-clicked on.

    This recent behavior either started when I upgraded from Visual C++ 6.0 to Visual Studio 2008 or started using Windows 7.

    Any ideas will be must appreciated.
    Last edited by Bob H; July 16th, 2013 at 03:48 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

By using this site, you agree to the Privacy Policy