GeoSheet というクラスがあります。
#include "stdafx.h"
#include "GeoSheet.h"
namespace A {
int isClosable;
double x;
}
void CGeoSheet::OnOK()
{
A::isClosable = 0;
CPropertySheet::OnClose();
}
test.cpp という別のファイルから変数 'isClosable' にアクセスして変更したい
#include "stdafx.h"
#include "test.h"
#include "GeoSheet.h"
void main(){
//access variable
}
どうすればこれを達成できますか。GeoSheet のインスタンスをインスタンス化せずに変数にアクセスしたい。
ありがとう。