Mabye, formoutput really is not a namespace. I am figuring it may well be. void displaychar(int mychar) //outside the namespace { //showchar(mychar); Form1::showchar(mychar); } OR, You may not be including the header file ".\form1.h" witch should define the namespace formoutput. Use #include ".\form1.h" at the top of the source. Then call it, however i bet you might get the error. c:\Documents and Settings\default user.JOSH\My Documents\Visual Studio Projects\Tmle\mlr.cpp(105): error C2352: 'System::Windows::Forms::Form::showchar' : illegal call of non-static member function or something. If so, it means you must first create the class Form1 or gain a pointer to it when it is created from Application::Run(new Form1());