May 20th, 1999, 06:23 AM
In my MFC application i want to use a global function , that's all my files should be able to access it , where i declare/ define
thanx in advance
thanx in advance
|
Click to See Complete Forum and Search --> : Just simple !! May 20th, 1999, 06:23 AM In my MFC application i want to use a global function , that's all my files should be able to access it , where i declare/ define thanx in advance Alfred May 20th, 1999, 06:44 AM Just make your ownn header file and ad the function there. Then include the headerfile you jsut made in those files which will use it. Is that simple enought? I hope it helps. Feel free to mail me if it doesn´t work. papperskorgsskit@hotmail.com Jason Teagle May 20th, 1999, 07:38 AM Don't make it global, put it as a public member function of your app class (CMyApp, or whatever). As theApp (the global variable which starts the app running) can be accessed from anywhere, define theApp as an external variable in the app's header file, then just include the app's header file (new classes generated by ClassWizard do this automatically), and you can access this function. Follow that? codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |