How to use Cprogramming to assign windows registry value ?

This is a discussion on How to use Cprogramming to assign windows registry value ? within the Windows Programming forums, part of the Platform Specific Boards category; i dun know ....

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    22

    How to use Cprogramming to assign windows registry value ?

    i dun know .
    ______________________
    Wut ?

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    This depends on how you want to do it.

    All powerful and quite cryptic with the WinAPI or easier but somewhat restricted with the MFC. Most applications use the MFC way, because it's the standard way.

    How much do you want to know, what do you already know of Windows programming ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    22

    Oh ..

    Me know nothing about windows programming is that
    (C language) is window programmign ?........

    and i know visual basic ......

    then i want to assign or change registry value . then i have to use which programming language is the best ..and how ?
    ______________________
    Wut ?

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    C/C++ is not neccessarily windows programming.

    Windows programming is using any language ( we use C/C++ here ) to write an application for MS Windows.

    What compiler do you use ? Can you use MFC ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    22
    I use mivrosoft visual c ++
    ______________________
    Wut ?

  6. #6
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    The easiest way would be to use any application wizard created project and call the following functions
    ( if unsure how to use them, look it up on www.msdn.microsoft.com )

    void SetRegistryKey( LPCTSTR lpszRegistryKey );

    Parameters

    lpszRegistryKey

    Pointer to a string containing the name of the key.

    Remarks

    Causes application settings to be stored in the registry instead of INI files. This function sets m_pszRegistryKey, which is then used by the GetProfileInt, GetProfileString, WriteProfileInt, and WriteProfileString member functions of CWinApp. If this function has been called, the list of most recently-used (MRU) files is also stored in the registry. The registry key is usually the name of a company. It is stored in a key of the following form: HKEY_CURRENT_USER\Software\<company name>\<application name>\<section name>\<value name>.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  7. #7
    Registered User
    Join Date
    Jan 2002
    Posts
    381
    You can still use visual basic to do this. Try searching google for it. There are atleast 20 tutorials on exctly that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  2. Windows Rant followed by installation question
    By confuted in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 06-21-2003, 04:42 PM
  3. How come this only works in Windows nt/2000?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 08-30-2002, 06:54 PM
  4. Windows Registry
    By Nor in forum Windows Programming
    Replies: 1
    Last Post: 02-15-2002, 02:19 AM
  5. where windows registry store ?
    By Adisonz in forum C Programming
    Replies: 7
    Last Post: 02-05-2002, 09:41 PM

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