I have run into a number of situations where I would like to utilize templates as well as take advantage of the features of CObject etc. I know that the macros themselves can't be used to successfully accomplish this. I have tried several times to expand them out and get the compile to work correctly. (Both the DLL and EXE versions of the macros mind you.) Alas, no success. Has anyone else run into this problem?