Click here to Skip to main content
15,887,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
Sergey Alexandrovich Kryukov 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 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

See this Link[^]
 
Share this answer
 
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.
Sergey Alexandrovich Kryukov 8-Jan-13 15:28pm    
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900