473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

error C3861: 'InitializeCriticalSectionAndSpinCount': identifier not found

I have included windows.h, but it still says
'InitializeCriticalSectionAndSpinCount': identifier not found. Why?
any ideas?

Thanks.

Aug 6 '07 #1
2 9149
>I have included windows.h, but it still says
>'InitializeCriticalSectionAndSpinCount': identifier not found. Why?
any ideas?
If you've got stdafx.h, try removing the following line if you have
it.

#define WIN32_LEAN_AND_MEAN

Also note that MSDN says:

"To compile an application that uses this function, define
_WIN32_WINNT as 0x0403 or later"

Dave
Aug 6 '07 #2
On Aug 6, 3:23 pm, David Lowndes <Dav...@example.invalidwrote:
I have included windows.h, but it still says
'InitializeCriticalSectionAndSpinCount': identifier not found. Why?
any ideas?

If you've got stdafx.h, try removing the following line if you have
it.

#define WIN32_LEAN_AND_MEAN

Also note that MSDN says:

"To compile an application that uses this function, define
_WIN32_WINNT as 0x0403 or later"

Dave
Yes, thank you very much. It works now. ^_^

Aug 7 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bmassey | last post by:
Hi, Was wondering if anyone could help me with this odd error: Am working in VS.Net Framework 1.1 C++. I had a function defined as void colorizeImage(). I decided I didn't need that function...
1
by: KK | last post by:
Dear All I'm having an application developed in VC++6.0.Now i'm trying to complie the same with Visual Studio.Net 2003,but getting some strange errors.Can anybody help to get out of these...
2
by: VicVic | last post by:
Hello, I have an old project, built with VC++. Now need to be compiled in Visual Studio .Net 2003. The project is going to build a DLL. When i try to compile the project, i got the following...
4
by: Shlomy Shivek | last post by:
Hi, I have this thread function: //handle one socket connection thread DWORD WINAPI SocketHandler(LPVOID lpvParam) { int socketNumber=*(DWORD*)lpvParam ; //the socket number int n; char...
7
by: GRoll35 | last post by:
I have 3 files here - Header/Implementation/Driver All it has to do is send the user's input (age)..to the class and the class will figure out the price of the ticket. I'm suppose to create the...
6
by: Bobrick | last post by:
Hi. Thanks to everyone who replied to my last post, it turns out it wasn't the line where I was trying to treat the variable in question as an array which was the problem, but the line above. ...
9
by: i | last post by:
#include<stdio.h> #include<conio.h> #include<process.h> #include<string.h> char ch; int n,m; void main(); char check(int,int,char); void cash(int,int,char); void debit_card(int,int,char);
3
by: jumpman17 | last post by:
OK, I'm getting just this one error. error C3861: 'upload_data': identifier not found I have that function in the header file, why is it not seeing it? I can post code if needed.
5
by: zhang | last post by:
error C3861: 'Navigate2': identifier not found why???
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.