A little help please

This is a discussion on A little help please within the Windows Programming forums, part of the Platform Specific Boards category; Hello all. DISCLAIMER: This is one of those "Write my whole program for me" type posts. I apologize in advance. ...

  1. #1
    Evil Member
    Join Date
    Jan 2002
    Posts
    638

    A little help please

    Hello all.

    DISCLAIMER: This is one of those "Write my whole program for me" type posts. I apologize in advance.

    I don't know WinAPI, and am not going to learn it any time soon. But I want a prog that can modify registry values.

    Can anyone give me something that:

    Determines if a specific registry key/value exists and if so, deletes that key/value. (I am jst trying to automate going into regedit and wiping stuff manually)

    Thanks.

  2. #2
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Post I will only...

    I will only give you hints. You can goto Forger's and learn Win32 API and then look up RegOpenKeyEx(...) etc. at MSDN
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  3. #3
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    As I told you, I am not currently in a position where I want to tackle WinAPI. Thanks for the bump though.

  4. #4
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    You cant really expect anyone here to write you a whole program.... but im sure that someone has already done this and will made the source avalible go to planetsourcecode.com and search for what your after, there will most likly be bits of code there or better yet a whole program with source for what your after.

    Hope that helps,
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  5. #5
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Well I know I can't get a whole 10 gazzilion line prog, but all I need is the function and how to implement it, in a somewhat straightforward way.

  6. #6
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Or go to run and type regedit...

    Anyhow, I'm feeling benevolent, so here's the function to change reg. values:
    Code:
    RegSetValue(HKEY_CLASSES_ROOT,".asm",REG_SZ,"C:\\ASMEdit\\ASMEdit.exe",22);
    I used it to set the .asm file association with my program.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21