2011-01-01, 12:45 PM
At first, class MineButton was at #pragma once in Form1.h. I've moved it to MineSweeper.cpp, right above int main().
What do these errors mean?
- error C3115: 'System::STAThreadAttribute': this attribute is not allowed on 'MineButton'
- error C3673: 'MineButton' : class does not have a copy-constructor
Code:
...
#include "stdafx.h"
#include "Form1.h"
using namespace MineSweeper;
[STAThreadAttribute]
public ref class MineButton
{ public:
PictureBox^ pic;
int x, y;
MineButton(int cx, int cy)
{ x = cx; y = cy; };
};
int main(array<System::String ^> ^args)
....What do these errors mean?
- error C3115: 'System::STAThreadAttribute': this attribute is not allowed on 'MineButton'
- error C3673: 'MineButton' : class does not have a copy-constructor

