August 13th, 2003, 11:59 am
Don't worry about atltime.h: from your error messages, the problem looked to be at linker stage, more than compilation....As far as impact on your code, not much, apart that you can compile :-)Basically, when you compile an application you can choose whether you want it to be single-threaded or if you want your code to be thread-safe (so that you can have it multithreaded or generate it in such a way that it can be used by multithreaded applications).If you are using any MFC class, you need to link your code against the multithreaded runtime libraries (not much explanation here, it's the way the libraries have been coded by Microsoft).Doing so does not means that your program will be multithreaded, only that it will use a runtime library that will do an certain number of extra processing to ensure that data is not corrupted if it is accessed at the same time by more than a thread of execution (typically, mutexes, semaphores and similar synchronization information around data).Your code will be a bit slower if it is compiled as multithreaded (because of the additional synchronization going on), but in 99% of cases, the difference is not going to be noticable. Also, if you are using MFC classes, you will already have accepted some overhead...gc