Click here to Skip to main content
12,505,881 members (51,292 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ VS2012
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 6:00am
Comments
   
Why should anyone care about the code produced by the class wizard? Weird, yes. After all, just write the class you want...
—SA
JackDingler 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 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 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.
   
Ah, a bug... too bad. My 5 for finding it out.
—SA
JackDingler 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2016
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