B
blimeyoreilly
Hi
I've a small problem .. can anyone figure it out?
I am working in VS.NET in C++ with MFC. I have a CWinApp-based class
called CTestHarnessApp. I keep getting the 'differs in levels of
indirection from' error whenever I compile this:
CTestHarnessApp theApp;
//CTestHarnessApp* pTheApp = &theApp;
CTestHarnessApp* pTheApp;
pTheApp = &theApp;
(missing storage-class or type specifiers)
('int' differs in levels of indirection from 'CTestHarnessApp *')
('initializing' : cannot convert from 'CTestHarnessApp *__w64 ' to
'int' This conversion requires a reinterpret_cast, a C-style cast or
function-style cast)
But everything is okay when I compile this:
CTestHarnessApp theApp;
CTestHarnessApp* pTheApp = &theApp;
//CTestHarnessApp* pTheApp;
//pTheApp = &theApp;
Me no understand!!!
BOR
I've a small problem .. can anyone figure it out?
I am working in VS.NET in C++ with MFC. I have a CWinApp-based class
called CTestHarnessApp. I keep getting the 'differs in levels of
indirection from' error whenever I compile this:
CTestHarnessApp theApp;
//CTestHarnessApp* pTheApp = &theApp;
CTestHarnessApp* pTheApp;
pTheApp = &theApp;
(missing storage-class or type specifiers)
('int' differs in levels of indirection from 'CTestHarnessApp *')
('initializing' : cannot convert from 'CTestHarnessApp *__w64 ' to
'int' This conversion requires a reinterpret_cast, a C-style cast or
function-style cast)
But everything is okay when I compile this:
CTestHarnessApp theApp;
CTestHarnessApp* pTheApp = &theApp;
//CTestHarnessApp* pTheApp;
//pTheApp = &theApp;
Me no understand!!!
BOR