Thread: Problem with the registry

  1. #1
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640

    Problem with the registry

    I've successfully written values and keys to the registry and such, but it's not working the way I want to. I know this question should really be in a Windows Hacking forum or such but I don't know of any. If anyone has already posted this problem before, tell me what you used as search terms to find it (nothing came up when I searched).

    Anyways, my goal is to create a new option when you right click on a file (any file). The option is just supposed to open my program, giving the file clicked passed as an argument. My program works fine, but when I go to right click on something, and select the option, I get an error: "This file does not have a program associated with it for performing this action". The registry stuff I created with my program is this:

    HKEY_CLASSES_ROOT\*\shell\SHA1-Hash

    The keyname is "command" and the value is this:
    "c:\Documents and Settings\christopher\My Documents\Visual Studio Projects\SHA-1_FileHash\SHA-1_FileHash\Debug\SHA-1_FileHash.exe" "%1"

    A few things I've noticed about my registry is that HKEY_CLASSES_ROOT\*\shell doesn't not exist (until I create it) but shellex does, but it doesn't seem to have any items under the right click menu for files. If anyone has information on this, I would be extremely greatful.
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  2. #2
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    Ok, I finally corrected the problem, took a while though. I'll post it if anyone is interested.
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  2. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  3. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  4. Possible Windows MDAC problem
    By BobS0327 in forum Tech Board
    Replies: 3
    Last Post: 06-28-2006, 04:57 AM
  5. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 06:24 PM