Home Dashboard Directory Help
Search

Visual Studio 2008 error in by Hugh Wantium


Status: 

Closed


1
0
Sign in
to vote
Type: Bug
ID: 773531
Opened: 12/5/2012 4:55:00 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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'
Details
Sign in to post a comment.
Posted by Microsoft on 12/5/2012 at 5:55 PM
Thanks for your feedback . The product team itself no longer directly accepting feedback for Microsoft Visual Studio 2010 and earlier products. You can get support for issues with Visual Studio 2010 and earlier by visiting one of the resources in the link below:
<http://msdn.microsoft.com/en-us/vstudio/cc136615.aspx>
Please create a new feedback if this issue happened in VS 2012 too. Thanks
Posted by Microsoft on 12/5/2012 at 5:52 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.