Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ActiveX control popping up a modal dialog Pin
sps-itsec4616-Jan-06 5:15
sps-itsec4616-Jan-06 5:15 
QuestionProblem when inserting items in CListCtrl Icon view Pin
Naveen13-Jan-06 1:42
Naveen13-Jan-06 1:42 
AnswerRe: Problem when inserting items in CListCtrl Icon view Pin
Rajesh R Subramanian13-Jan-06 18:58
professionalRajesh R Subramanian13-Jan-06 18:58 
GeneralRe: Problem when inserting items in CListCtrl Icon view Pin
Naveen13-Jan-06 22:11
Naveen13-Jan-06 22:11 
Questiontemplate Visual Studio 6 to Visual Studio .NET Pin
patgo13-Jan-06 0:54
patgo13-Jan-06 0:54 
GeneralRe: template Visual Studio 6 to Visual Studio .NET Pin
toxcct13-Jan-06 1:07
toxcct13-Jan-06 1:07 
GeneralRe: template Visual Studio 6 to Visual Studio .NET Pin
Rajesh R Subramanian13-Jan-06 1:16
professionalRajesh R Subramanian13-Jan-06 1:16 
GeneralRe: template Visual Studio 6 to Visual Studio .NET Pin
patgo13-Jan-06 1:17
patgo13-Jan-06 1:17 
You're right. Sorry!

Here's the message again:

I am trying to update a program written in C++ using VS6 to VS.NET 2003. One of the errors I can´t solve is the following:

the code:

template <class T>
class _NoAddRefReleaseOnCComPtr : public T
{
private:
STDMETHOD_(ULONG, AddRef)()=0;
STDMETHOD_(ULONG, Release)()=0;
};

the errors:

(to the first line)
C2332: 'class' : missing tag name
C2011: '__unnamed' : 'enum' type redefinition
C2059: syntax error : 'constant'
C2143: syntax error : missing ')' before '>'

(to the second line)
C2059: syntax error : '('

I tried to solve all these errors, but with no luck. Can anyone help me?

Thank you!

Patrícia Gonçalves
GeneralRe: template Visual Studio 6 to Visual Studio .NET Pin
Stephen Hewitt14-Jan-06 14:50
Stephen Hewitt14-Jan-06 14:50 
GeneralRe: template Visual Studio 6 to Visual Studio .NET Pin
patgo15-Jan-06 22:16
patgo15-Jan-06 22:16 
GeneralRe: template Visual Studio 6 to Visual Studio .NET Pin
Stephen Hewitt15-Jan-06 22:44
Stephen Hewitt15-Jan-06 22:44 
QuestionAny module to encode and decode from bufferarray with a short time ? Pin
James Duy Trinh (VietDoor)13-Jan-06 0:37
James Duy Trinh (VietDoor)13-Jan-06 0:37 
QuestionCListCtrl: Automatic Scroll- Down Pin
romuzu13-Jan-06 0:27
romuzu13-Jan-06 0:27 
AnswerRe: CListCtrl: Automatic Scroll- Down Pin
Rajesh R Subramanian13-Jan-06 0:37
professionalRajesh R Subramanian13-Jan-06 0:37 
AnswerRe: CListCtrl: Automatic Scroll- Down Pin
khan++13-Jan-06 1:35
khan++13-Jan-06 1:35 
GeneralRe: CListCtrl: Automatic Scroll- Down Pin
Rajesh R Subramanian13-Jan-06 1:48
professionalRajesh R Subramanian13-Jan-06 1:48 
QuestionCan i pass MFC Objects in between thread ? Pin
vikas amin12-Jan-06 23:20
vikas amin12-Jan-06 23:20 
AnswerRe: Can i pass MFC Objects in between thread ? Pin
Owner drawn12-Jan-06 23:31
Owner drawn12-Jan-06 23:31 
AnswerRe: Can i pass MFC Objects in between thread ? Pin
Stephen Hewitt12-Jan-06 23:41
Stephen Hewitt12-Jan-06 23:41 
AnswerRe: Can i pass MFC Objects in between thread ? Pin
Roger Stoltz12-Jan-06 23:45
Roger Stoltz12-Jan-06 23:45 
AnswerRe: Can i pass MFC Objects in between thread ? Pin
Prakash Nadar12-Jan-06 23:45
Prakash Nadar12-Jan-06 23:45 
AnswerRe: Can i pass MFC Objects in between thread ? Pin
ThatsAlok15-Jan-06 18:19
ThatsAlok15-Jan-06 18:19 
AnswerThank you everyone Pin
vikas amin16-Jan-06 1:10
vikas amin16-Jan-06 1:10 
Questionwprintf() could not display unicode chars which is > 255 to console? Pin
wangdave12-Jan-06 23:11
wangdave12-Jan-06 23:11 
QuestionHow to block a window ? Pin
leenmie12-Jan-06 22:50
leenmie12-Jan-06 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.