Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I recently wrote a windows program an debuggged it, but rather than it loading it threw an exception with the following message: The procedure enry point RegDeleteExW could be located in the dynamic link library ADVAPI32.dll. I verified that I had #included windows.h and that the ADVAPI32.lib was was linked. Please how can I resolve this problem?
Posted
Comments
ShilpiP 21-Dec-10 8:08am    
Please update your question and explain the exact problem.

There is no such function; are you confusing this with RegDeleteKeyEx[^]?
 
Share this answer
 
Comments
#realJSOP 21-Dec-10 11:25am    
I think this is the answer. The method he's trying to use doesn't exist in the windows API.
Did you use LoadLibrary?

C++
HMODULE hMod = LoadLibrary("advapi32.dll");
if(hMod == NULL)
     printf("LoadLibrary() failed.\t[advapi32.dll]");
 
Share this answer
 
v2
Comments
Sandeep Mewara 21-Dec-10 10:05am    
Use PRE tags to format code part - It makes the question/answer readable.
check your modules by the ms-tool depends.exe. this will show you all external dependencies and the missing dlls/exports.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900