Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Errors: MSVC 6.0, SDI MFC APP.

Errors: MSVC 6.0, SDI MFC APP.

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhelpquestion
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tingu
    wrote on last edited by
    #1

    Hi I am creating SDI MFC sample App. I followed the steps given in "http://www.codeproject.com/dialog/mdisdiapps.asp". I have not yet added any of my code. I am getting these 2 errors while compiling: Test_SDI\MainFrm.cpp(55) :error C2065: 'CBRS_GRIPPER' : undeclared identifier Test_SDI\MainFrm.cpp(55) :error C2660: 'CreateEx' : function does not take 3 parameters Any suggestions? Thanks, Harsha

    D 1 Reply Last reply
    0
    • T tingu

      Hi I am creating SDI MFC sample App. I followed the steps given in "http://www.codeproject.com/dialog/mdisdiapps.asp". I have not yet added any of my code. I am getting these 2 errors while compiling: Test_SDI\MainFrm.cpp(55) :error C2065: 'CBRS_GRIPPER' : undeclared identifier Test_SDI\MainFrm.cpp(55) :error C2660: 'CreateEx' : function does not take 3 parameters Any suggestions? Thanks, Harsha

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      harsha1305 wrote:

      Test_SDI\MainFrm.cpp(55) :error C2065: 'CBRS_GRIPPER' : undeclared identifier

      This style comes from afxres.h, which is included automatically if you used MFC's AppWizard. What does your project's stdafx.h file look like?


      "The largest fire starts but with the smallest spark." - David Crow

      "Judge not by the eye but by the heart." - Native American Proverb

      T 1 Reply Last reply
      0
      • D David Crow

        harsha1305 wrote:

        Test_SDI\MainFrm.cpp(55) :error C2065: 'CBRS_GRIPPER' : undeclared identifier

        This style comes from afxres.h, which is included automatically if you used MFC's AppWizard. What does your project's stdafx.h file look like?


        "The largest fire starts but with the smallest spark." - David Crow

        "Judge not by the eye but by the heart." - Native American Proverb

        T Offline
        T Offline
        tingu
        wrote on last edited by
        #3

        Hi it looks like this: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__D535EB41_66D7_43B5_8D02_0D7D90278354__INCLUDED_) #define AFX_STDAFX_H__D535EB41_66D7_43B5_8D02_0D7D90278354__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include // MFC core and standard components #include // MFC extensions #include // MFC Automation classes #include // MFC support for Internet Explorer 4 Common Controls #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__D535EB41_66D7_43B5_8D02_0D7D90278354__INCLUDED_) Thanks, Harsha

        D 1 Reply Last reply
        0
        • T tingu

          Hi it looks like this: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__D535EB41_66D7_43B5_8D02_0D7D90278354__INCLUDED_) #define AFX_STDAFX_H__D535EB41_66D7_43B5_8D02_0D7D90278354__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include // MFC core and standard components #include // MFC extensions #include // MFC Automation classes #include // MFC support for Internet Explorer 4 Common Controls #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__D535EB41_66D7_43B5_8D02_0D7D90278354__INCLUDED_) Thanks, Harsha

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Modify your post by surrounding the code with <pre> tags.


          "The largest fire starts but with the smallest spark." - David Crow

          "Judge not by the eye but by the heart." - Native American Proverb

          T 1 Reply Last reply
          0
          • D David Crow

            Modify your post by surrounding the code with <pre> tags.


            "The largest fire starts but with the smallest spark." - David Crow

            "Judge not by the eye but by the heart." - Native American Proverb

            T Offline
            T Offline
            tingu
            wrote on last edited by
            #5

            What do you mean by it? Thanks, Harsha

            D 1 Reply Last reply
            0
            • T tingu

              What do you mean by it? Thanks, Harsha

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Look at your post and see. Notice the #include directives are not showing up. I can see them if I view the HTML source, but that's unnecessary if the post was corrected.


              "The largest fire starts but with the smallest spark." - David Crow

              "Judge not by the eye but by the heart." - Native American Proverb

              T 1 Reply Last reply
              0
              • D David Crow

                Look at your post and see. Notice the #include directives are not showing up. I can see them if I view the HTML source, but that's unnecessary if the post was corrected.


                "The largest fire starts but with the smallest spark." - David Crow

                "Judge not by the eye but by the heart." - Native American Proverb

                T Offline
                T Offline
                tingu
                wrote on last edited by
                #7

                Hi David, I will correct it, but then do you think that I should include afxres.h explicitly in StdAfx.h file? Thank you. Harsha

                D 1 Reply Last reply
                0
                • T tingu

                  Hi David, I will correct it, but then do you think that I should include afxres.h explicitly in StdAfx.h file? Thank you. Harsha

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #8

                  harsha1305 wrote:

                  do you think that I should include afxres.h explicitly in StdAfx.h file?

                  No. It has already been included by afxwin.h.


                  "The largest fire starts but with the smallest spark." - David Crow

                  "Judge not by the eye but by the heart." - Native American Proverb

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups