Accessing Namespace in other class
-
I have initialized all the namespace declaration in a certain .h file. Then include the .h file in a CView class, it turned OK, But when i used the same namespace and include the .h file in a CDialog class. An error occurred: "Already defined in CView.obj file". HOw can I access a namespace in 2 separate classes or files?
-
I have initialized all the namespace declaration in a certain .h file. Then include the .h file in a CView class, it turned OK, But when i used the same namespace and include the .h file in a CDialog class. An error occurred: "Already defined in CView.obj file". HOw can I access a namespace in 2 separate classes or files?
Just include
#pragma once
to the.h
fileJesus Loves:rose:
--Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose: