CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2007
    Posts
    2

    term does not evaluate to a function

    Hi all
    sorry for bad english but i will try to explain my problem.
    I get an error which says: term does not evaluate to a function
    the following is my constructor
    Code:
    	CImsg::CImsg(QString filename,  QWidget * p, const char * n, CViz *Vis, WFlags f ) : ImsgBase( p, n ), m_Vis( Vis )
    and the error occours on following twee lines:
    Code:
    	m_pFileA = &(Vis()->getFileA());
    	m_pFileB = &(Vis()->getFileB());
    
    	if ( getFileA) 
    	{
    		//
    	}
    	if ( getFileB ) 
    	{
    		//
    	}
    can someone help me?
    thanks in advance

  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    Re: term does not evaluate to a function

    Code:
    if ( getFileA)
    What is this? If 'getFileA' is a function, you cannot use it as the condition in an if statement like this. Did you mean:
    Code:
    if (m_pFileA)
       ...
    if (m_pFileB)
       ...
    Viggy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured