If you add a class (.cpp + .h file) to your project and you do not call that class. Can it give errors?
I made the class a while ago and it allways worked perfecty
example:
the project contains:
source files:
- mp3.cpp //source file of class
- threadtest.cpp
header files:
-mp3.h // header fiel of class
test.cpp is a small windows program that displays a dialog box, a common dialog box and starts a thread. But does NOT use a single line of code from mp3.cpp, nor is mp3.h included an the test.cpp.
I'll add the project as an attachment. but you'll need the DirectX SDK to compile it.
edit:
The error I get is unhandled exception in threadtest.exe: 0XC0000005: Access Violation