I created a DLL with a dialog in Visual studio C++ 2008 and called from a main project. The dialog class has been exported using AFX_EXT_CLASS. The dialog is simplly contain a few check box and Edit Controls. When compiling this multi-project solution, I got the following errors (13 same errors) after adding the code to open the dialog in the calling project using the following lines: CCriteriaDlg *dlg=new CCriteriaDlg(); dlg->DoModal();where CCriteriaDlg is a class associated with a new dialog in the DLL. I only use the MFC as standard and this method of activating a dialog worked in other DLL I created, and I can't see how this error occurs. The worst part is that I of course can't do anything about your oledlg.h file. Please let me know if this is a bug of visual studio C++ 2008 . DLL compiled OK and generated DLL and lib files. Please let me know what I should do to remove this error and if there is a good example tutorial for creating a dialog in a DLL and call it from the main project using Visual C++ 2008? If so I would appreciate some help please.I also tried to revert back to the stage before adding anything into the calling project, which was working and compiling, I got the same 13 error messages. Just showing these messages of Microsoft files is not helping me to move forward at all. PLEASE HELP.Many thanks,Xiu Yan>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(652) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(653) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(682) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(683) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(1163) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(1164) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(1194) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(1195) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(1235) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(1236) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(1269) : error C2061: syntax error : identifier 'THIS'1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\oledlg.h(1270) : error C2061: syntax error : identifier 'THIS'
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results