Quote from: Dyndrilliac on September 01, 2006, 05:24 PM
Unfortunately, it doesn't mention how one would go about calling a non-static member method from outside the class as a non-static function.
You create an instance of that class and call the member method.
Quote from: Dyndrilliac on September 01, 2006, 05:24 PM
I got the error on this code:Code SelectfrmMain::AddDebug(szTextBuffer, Drawing::Color::Red);
Can anyone clarify why the compiler thinks I am trying to call a static method, and what to do about it? Both class member-methods are non-static and public.
Going by what you're telling us, it sounds like frmMain is a class (not an instance of a class). You need to create an instance of frmMain, then call the method from that instance. You're also using the scope operator which, in this case, is used to call a static function.