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. Mobile Development
  3. Mobile
  4. GetFileVersionInfoSize doesn't work on PocketPC?

GetFileVersionInfoSize doesn't work on PocketPC?

Scheduled Pinned Locked Moved Mobile
jsondebugginghelpquestionannouncement
2 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.
  • Z Offline
    Z Offline
    zoid
    wrote on last edited by
    #1

    When I try to use the API function GetFileVersionInfoSize() to retrieve the size of the version resource in my PocketPC app the size returned is always zero. When I get the error value with GetLastError() the error value is: Error 1814: The specified resource name cannot be found in the image file. I am passing the name of my executable file to GetFileVersionInfoSize() as follows: The path to the executable is: My Device\debug\myappce.exe size = GetFileVersionInfoSize(_T("myappce.exe",&dummy); I have also tried: size = GetFileVersionInfoSize(_T("\\\\debug\\myappce.exe",&dummy); Is there something I am doing wrong ... are GetFileVersionInfoSize and the rest of the version API functions supported on PocketPC (winCE 4.2) ? Thanks, Tom

    Y 1 Reply Last reply
    0
    • Z zoid

      When I try to use the API function GetFileVersionInfoSize() to retrieve the size of the version resource in my PocketPC app the size returned is always zero. When I get the error value with GetLastError() the error value is: Error 1814: The specified resource name cannot be found in the image file. I am passing the name of my executable file to GetFileVersionInfoSize() as follows: The path to the executable is: My Device\debug\myappce.exe size = GetFileVersionInfoSize(_T("myappce.exe",&dummy); I have also tried: size = GetFileVersionInfoSize(_T("\\\\debug\\myappce.exe",&dummy); Is there something I am doing wrong ... are GetFileVersionInfoSize and the rest of the version API functions supported on PocketPC (winCE 4.2) ? Thanks, Tom

      Y Offline
      Y Offline
      Yongki C A Jong
      wrote on last edited by
      #2

      Try this TCHAR FileName[MAX_PATH + 3] = TEXT("\""); DWORD FileSize; DWORD InfoSize; FileSize = GetModuleFileName(NULL, FileName + 1, MAX_PATH+3); InfoSize = GetFileVersionInfoSize(FileName, &FileSize); The result? Sometimes it works sometimes it doesn't. Cheers. Don't know much < I, don't care much > I, while I am here ... just be happy :)

      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