CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    6

    VB - making API calls

    I am using API calls which modify Registry with the following functions,
    RegSetValueEx,
    RegQueryValueEx,
    RegOpenKeyEx,
    RegCloseKey
    I am working on VB 6.0 in 95 platform and the program works fine.
    When I run the exe on Windows NT i can open the key and view the values but not update the values.

    Can anybody help me. My project is stuck up because of this.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: VB - making API calls

    make sure you specify the correct value for the samDesired in your RegOpenKeyEx call (KEY_WRITE).
    Also, check the return code of all API calls and call FormatMessage to get a readable explanation of the error.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured