Results 1 to 2 of 2

Thread: undeclared identifiers ????

  1. #1

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    undeclared identifiers ????

    Hi,
    I am tring to learn game programming and as I was testing the program I
    encountered the following error messages..
    I added the needed files and finally I added two icons using
    INSERT/RESOURCE/RESOURCE TYPE/ICON/IMPORT
    And not sure how to declare identifiers..
    thanks for any help...


    --------------------Configuration: isko - Win32 Debug--------------------
    Compiling...
    skeleton.cpp
    C:\sabit\isko\skeleton.cpp(35) : error C2065: 'IDI_SKELETON' : undeclared identifier
    C:\sabit\isko\skeleton.cpp(37) : error C2065: 'IDI_SKELETON_SM' : undeclared identifier
    Error executing cl.exe.

    isko.exe - 2 error(s), 0 warning(s)

  2. #2

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    Re: undeclared identifiers ????

    Heeeeyyy I got it worked...it took me two days to solve it..
    here itis
    Thanks to:http://vcfaq.mvps.org/lang/5.htm
    This usually happens when you create the wrong type of project for you application. In the first case, you chose "Win32 Application" when you should have selected "Win32 Console Application". On the second case, well, it's the other way.

    There are two ways to fix it: (1) Create a new project of the correct type, and readd all your files too it, or (2) change the type of the current project. This can be easily accomplished. Select Project -> Settings from the menu, and go to the Link tab. There, in the edit control at the bottom, look for the /subsystem switch and change it to "/subsystem:console" or "/subsystem:windows" as appropriate.

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