Click here to Skip to main content
11,481,265 members (62,142 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ VisualStudio2012
Windows 8 & VS 12 Pro

I tried to use the Class Wizard to create an OnCreate message handler in CView class. I got the following:

int CJBK_View::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
  if (CView::OnCreate(lpCreateStruct) == -1)
    return -1;
 
#3016
 
  @R0
    return -1;
 
#3016
 
  @R0
 
#3016
 
    @R0
    // TODO:  Add your specialized creation code here

    @R0
    return 0;
}

Where did the @RO and #3016 come from? ClassWizard bug? I can't find any reference to it online, including this site.

Thanks,

Barry
Posted 8-Jan-13 7:00am
Comments
Sergey Alexandrovich Kryukov at 8-Jan-13 12:39pm
   
Why should anyone care about the code produced by the class wizard? Weird, yes. After all, just write the class you want...
—SA
JackDingler at 8-Jan-13 14:37pm
   
The class wizard does a lot more than just generate simple class definitions. It's a real time saver in Windows GUI projects.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

See this Link[^]
  Permalink  
Comments
lewax00 at 8-Jan-13 14:54pm
   
Wow, I hope "the next release of Visual Studio" doesn't mean VS2013+... (not that I've ever used them, but it would probably be irritating to those who do).
JackDingler at 8-Jan-13 15:18pm
   
It'll likely be a service pack.

Version one of each Visual Studio edition has always been a bit buggy. they iron these out with a SP quickly enough.
Sergey Alexandrovich Kryukov at 8-Jan-13 15:28pm
   
Ah, a bug... too bad. My 5 for finding it out.
—SA
JackDingler at 8-Jan-13 15:36pm
   
The work around is easy. Delete the junk code...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 294
1 OriginalGriff 225
2 CPallini 135
3 CHill60 120
4 Richard MacCutchan 80
0 Sergey Alexandrovich Kryukov 8,184
1 OriginalGriff 7,701
2 Sascha Lefèvre 3,114
3 Maciej Los 2,491
4 Richard Deeming 2,335


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100