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. GetLastError() :- 1814

GetLastError() :- 1814

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelplearning
5 Posts 3 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.
  • N Offline
    N Offline
    neha agarwal27
    wrote on last edited by
    #1

    hi all, I am using FindResource api for getting Handle of a resource. but i am getting null in the handle and GetLastError is returning 1814... Can anybody tell me what might be the error.... thanks in advance

    N C 2 Replies Last reply
    0
    • N neha agarwal27

      hi all, I am using FindResource api for getting Handle of a resource. but i am getting null in the handle and GetLastError is returning 1814... Can anybody tell me what might be the error.... thanks in advance

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      neha.agarwal27 wrote:

      Can anybody tell me what might be the error....

      "The specified resource name cannot be found in the image file. " With Visual studio there is a tool called error look. You can enter the error code and it will show you the error string. To take error lookup from visual studio take "tools menu->Error Lookup"

      nave [OpenedFileFinder]

      1 Reply Last reply
      0
      • N neha agarwal27

        hi all, I am using FindResource api for getting Handle of a resource. but i am getting null in the handle and GetLastError is returning 1814... Can anybody tell me what might be the error.... thanks in advance

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #3

        Winerror.h:

        //
        // MessageId: ERROR_RESOURCE_NAME_NOT_FOUND
        //
        // MessageText:
        //
        // The specified resource name cannot be found in the image file.
        //
        #define ERROR_RESOURCE_NAME_NOT_FOUND 1814L

        :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

        N 1 Reply Last reply
        0
        • C CPallini

          Winerror.h:

          //
          // MessageId: ERROR_RESOURCE_NAME_NOT_FOUND
          //
          // MessageText:
          //
          // The specified resource name cannot be found in the image file.
          //
          #define ERROR_RESOURCE_NAME_NOT_FOUND 1814L

          :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

          N Offline
          N Offline
          neha agarwal27
          wrote on last edited by
          #4

          How can i remove this error??

          C 1 Reply Last reply
          0
          • N neha agarwal27

            How can i remove this error??

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #5

            Simply make sure the resource is indeed in the image file. :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

            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