Thread: File Types

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Use the tree-view on the left and look at some of the surrounding documentation. I would also inspect existing entries in your registry for examples - like how .txt maps to notepad.exe etc..

    gg

  2. #2
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    I associated one of the file types with my application not from the regristry, but form a folder - Tools->Folder Options->File Types. I then looked at the registry to see what it had done, did the exact same thing with another file I want to associate but this time I copied the stuff in the registry, changing only the things that needed to be changed, such as the name. Of course, the first one worked but the second one did not. Here's what I've tried:
    Under HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\FileExts\.mona:
    Code:
    (Default) = (value not set)
    Progid = mona_auto_file
              OpenWith List
                        (Default) = (value not set)
                         a = Program Name.exe
                         b = NOTEPAD.EXE
                         MRUlist = ab
               OpenWithProgids
                         (Default) = (value not set)
                         ft000001 = (zero-length binary value) //This is a REG_BINARY type
                         mona_auto_file= (zero-length binary value) //This is a REG_BINARY TYPE
                         File Type Description= (zero-length binary value) //This is a REG_BINARY type
    Gosh, this is a pain. Any suggestions?

    Well, I already tried that codeplug and it didn't really help...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  2. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  3. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM