Compile error C2352?
Posted on 1997-11-05
What is the correct way to return a value from a function? I have a dialog class and I want to actually get multiple values from a database table. However, in testing I have tried to implement a return value of a CString object to a Textbox control on the dialog. When using STATIC return values, no problem. However with the following function call in my CFindWebDialog class:
m_pTestString = CWWatchView::Testing();
I get the following error:
Compiler Error C2352
'class::function' : illegal call of non-static member function
The specified nonstatic member function was called in a static member function.
The CWWatchView::Testing() function is defined:
What is the correct construct?