T
tom
How to get access to veriable from static class member?
class cTest
{
public:
int a;
void Set_a(){a = 1;}
static int dlgTest()
{
//a = 1; // how to get access to 'a' if 'dlgTest()' is static
return 1;
}
};
// how in 'dlgTest' function change variable 'a'
// 'dlgTest' - I nead this for: INT_PTR nRet = DialogBox(hInstance,
MAKEINTRESOURCE(IDD_LOGIN), NULL, (DLGPROC)dlgTest);
// I'am forced to declare it as static ( as I think)
// static BOOL CALLBACK dlgTest(HWND hWnd, UINT msg, WPARAM wParam, LPARAM
lParam)
I'm using VC++ .NET
t.
class cTest
{
public:
int a;
void Set_a(){a = 1;}
static int dlgTest()
{
//a = 1; // how to get access to 'a' if 'dlgTest()' is static
return 1;
}
};
// how in 'dlgTest' function change variable 'a'
// 'dlgTest' - I nead this for: INT_PTR nRet = DialogBox(hInstance,
MAKEINTRESOURCE(IDD_LOGIN), NULL, (DLGPROC)dlgTest);
// I'am forced to declare it as static ( as I think)
// static BOOL CALLBACK dlgTest(HWND hWnd, UINT msg, WPARAM wParam, LPARAM
lParam)
I'm using VC++ .NET
t.