Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Problems

Name: Anonymous 2008-12-11 23:49

I'm using Visual C++ 2005 to make a simple little program. I'm getting compiler errors with the following:

private: System::Void BoxMouseDown(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
    if ( e.Button == MouseButtons.Left ) {
        //Shit goes here
    }
}

I've tried the MSDN site, using examples directly from it, but no surprise at all when the shit didn't work.

Name: Anonymous 2008-12-12 15:39

>>9
I just took this piece of code out of the MouseButtons Enumeration MSDN, pasted it into a brand new WinForms C++ project in VS2008, and it built for me with

      if ( e->Button == System::Windows::Forms::MouseButtons::Left )

so it's hard to tell from just the snippet what's up.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List