'DisplayMesg': identifier not found, even with argument-dependent lookup

This is a discussion on 'DisplayMesg': identifier not found, even with argument-dependent lookup within the C++ Programming forums, part of the General Programming Boards category; The title shows this error i am getting: 'DisplayMesg': identifier not found, even with argument-dependent lookup I think i am ...

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    16

    'DisplayMesg': identifier not found, even with argument-dependent lookup

    The title shows this error i am getting:

    'DisplayMesg': identifier not found, even with argument-dependent lookup

    I think i am missing certain header or namespace but not sure which it is.

    stdafx.h, windows.h, atlbase.h and DShow.h

    are included already.

    If anyone can tell me what i missing it would be great. thnx!

  2. #2
    Registered User manofsteel972's Avatar
    Join Date
    Mar 2004
    Posts
    317
    Could you post how it is used in your code? It might just be used to display a debug mesg.
    "Knowledge is proud that she knows so much; Wisdom is humble that she knows no more."
    -- Cowper

    Operating Systems=Slackware Linux 9.1,Windows 98/Xp
    Compilers=gcc 3.2.3, Visual C++ 6.0, DevC++(Mingw)

    You may teach a person from now until doom's day, but that person will only know what he learns himself.

    Now I know what doesn't work.

    A problem is understood by solving it, not by pondering it.

    For a bit of humor check out xkcd web comic http://xkcd.com/235/

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    16
    an example of th e code used is:

    Code:
    hr = GetInterfacesMoniker();
    
    	if(FAILED(hr))
    	{
    		
    	DisplayMesg(TEXT("Failed to get video interfaces!  hr = 0x%x"), hr);
    	return hr;
    
    	}

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    There's quite a lot of DisplayMsg on MSDN, and no DisplayMesg
    If this isn't your own function, check your spelling.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User
    Join Date
    Jul 2007
    Posts
    16
    yes you are right there, Salem.

    forgive me for making posts about problems prematurely but i am quite new with the MFC and C++ syntax. and i always ask a lot of questions..

    Thanks again to all.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  2. GET_X_LPARAM: identifier not found
    By mrafcho001 in forum Windows Programming
    Replies: 7
    Last Post: 08-28-2005, 08:03 AM
  3. error: identifier "byte" is undefined.
    By Hulag in forum C++ Programming
    Replies: 4
    Last Post: 12-10-2003, 04:46 PM
  4. Going out of scope
    By nickname_changed in forum C++ Programming
    Replies: 9
    Last Post: 10-12-2003, 06:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21