Thread: The procedure entry point could not be located in ADVAPI32.dll

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    100

    The procedure entry point could not be located in ADVAPI32.dll

    Hi all,

    I have wrote a registry object for opening, editing, querying and deleting registry values. When I run the program I get the following error (a message box appears):

    "The procedure entry point RegDeleteKeyExA could not be located in the dynamic link library ADVAPI32.dll"

    Now I get this error even if I comment out the line that uses RegDeleteKeyEx. So nowhere in my code do I call RegDeleteKeyEx.

    The program compiles and links fine, it is just a runtime error. Even if my program is just the following:

    Code:
    int main()
    {
    return 0 ;
    }
    So I dont actually use the registry object I still get the error popup box.

    I thought at first it might be a dodgy install of windows but it does the same on all windows pc's i've tried.

    My compiler is Visual Studio 2005 running on windows xp pro. I am not linking to any other libraries or including any additional header files (just windows.h)

    Any ideas?

    Thanks

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Do you have code in constructors or destructors of global or static variables?

    Remove all your code and just compile the smallest example that will run without problems. Then add your code again to find what is causing problems.
    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
    Oct 2004
    Posts
    100
    Thanks for the reply!

    I dont have the code with me at the moment to test. However I do know im using a static member functions (for querying values and checking if keys exist) in the object which do use some of the winapi reg functions. So im guessing it'll be this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What a function entry point?
    By KoolGuy18 in forum C Programming
    Replies: 1
    Last Post: 11-01-2002, 11:29 PM
  2. fixed point / floating point
    By confuted in forum Game Programming
    Replies: 4
    Last Post: 08-13-2002, 01:25 PM
  3. point lies in circle?
    By cozman in forum Game Programming
    Replies: 3
    Last Post: 12-20-2001, 04:39 PM
  4. more with my 1st structure program
    By sballew in forum C Programming
    Replies: 42
    Last Post: 10-22-2001, 08:03 PM