Click here to Skip to main content
15,889,176 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I'm getting these two errors, like a 100 of them, but I'm sure it's from the same cause. I searched the web and it said to add stdio.h header, didn't work. I also tried to add winbase.h that also didn't work. Any suggestions? Thanks.

error C3861: 'ActivateActCtx': identifier not found
error C3861: 'DeactivateActCtx': identifier not found
Posted
Updated 11-Aug-11 5:37am
v3

If you look at the documentation[^] it will tell what header file you need to include, and what library you should link with.
 
Share this answer
 
Comments
S Houghtelin 11-Aug-11 12:24pm    
You beat me to it while I was composing my answer. +5
Richard MacCutchan 11-Aug-11 12:40pm    
Thanks; and I'm a slow typist.
Member 7766180 11-Aug-11 13:05pm    
Since I'm a beginner, would you be kind enough to tell me where the kernel32.lib and the kernel32.dll are placed in the properties of my project.
Richard MacCutchan 11-Aug-11 13:17pm    
kernel32.lib is a link library definition file that is required by the linker, so should be added to that section of your project. If you are using a version of Visual Studio it is usually one of the defaults. If you are generating your project manually you will need to add it to the correct part of the link options.
kernel32.dll is the dynamic link library that contains the actual functions previously defined by kernel32.lib. The DLL file is loaded at run time by the program loader and, since it is a system library, is stored in Windows\System32 and located automatically.
Try to include windows.h instead of winbase.h.

--venkatanarayana
 
Share this answer
 
Comments
Member 7766180 11-Aug-11 13:07pm    
Tried that, still didn't work.

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