Computing.Net > Forums > Programming > Needed help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Needed help

Reply to Message Icon

Name: Nivedita
Date: August 14, 2002 at 02:55:09 Pacific
Comment:

I have instantiated an object of CRITICAL_SECTION as CSDifference and used it in EnterCriticalSection(&CSdifference)
I am using this piece of code in MFC but it is giving a complie time error as "CSDifference redifinition".
Please suggest me how to overcome this problem
Thanks
Nivedita



Sponsored Link
Ads by Google

Response Number 1
Name: Jeff J
Date: August 14, 2002 at 07:31:15 Pacific
Reply:

A redefinition error typically means that an identifier is not unique (it has been used as a name more than once). Try searching your code for all instances of "CSDifference", and seeing if it has been instantiated elsewhere. As always, try a complete recompile too, to eliminate any possible confusion the compiler may have from earlier builds.

Cheers


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Needed help

I need help in c plzzz www.computing.net/answers/programming/i-need-help-in-c-plzzz/529.html

Need help programming a 12c508a PIC www.computing.net/answers/programming/need-help-programming-a-12c508a-pic/2510.html

Need help with C programming www.computing.net/answers/programming/need-help-with-c-programming/6970.html