Weird wxWidgets Problem, Please help!!

Hi guys. Im finding errors witth these two lines of code.

1
2
wxScreenDC Canvas();
Canvas.DrawLine(Start,event.GetLogicalPosition(Canvas));


Please help!!!
wxScreenDC Canvas();

This does not create a wxScreenDC object. It is a function prototype.

Lose the parenthesis:

wxScreenDC Canvas;
oh yeah, forgot about that!!, Thanks for reminding me Disch!!!
Topic archived. No new replies allowed.