Zorba the Hutt (zorbathut) wrote,
Zorba the Hutt
zorbathut

<definate> i get the error: "d:\PROJECTS\RealGame\RealGame.cpp(46): error C2146: syntax error : missing ';' before identifier 'hResolution'
<_m_> add a ';'
<definate> _m_: it is on this line "myComboBox hResolution = new myComboBox();"
<_m_> definate: read your book about how to create new objects with the new operator.
<SodiacUD> definate: "myComboBox hResolution = new myComboBox;"
<definate> SodiacUD: gives the same error :-/
<SodiacUD> definate: wierd
<_m_> no surprise, the line still contains a javaism.
<_m_> This is #C++, not #Java.
<SodiacUD> you should be able to create an new object like that, but if ya want an array of it just add [size_of_array]; in the end of new myComboBox
* _m_ sighs
<ZorbaTHut> sodiac, you have no idea what you're talking about
<SodiacUD> ZorbaTHut: yes i am

"Yes I am"? WTF? That doesn't even make SENSE

AUGH. C++ NEWBIES DESTROYING MIND
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 2 comments