|
From: Tom K on 18 Mar 2005 15:27 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) ?
From: Almon B. Strowger on 18 Mar 2005 17:11 Hi, As far as I can recall, the documentation is in error, because the version stuff requires version.dll--which is not part of the Pocket PC platform. Hope this helps... Almon B. Strowger KOOK Pocket Software "Tom K" <TomK(a)discussions.microsoft.com> wrote in message news:9A5BB9A9-E2B5-4D68-8BA5-72FF197014A2(a)microsoft.com... > 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) ? >
From: dave on 22 Mar 2005 09:39 Is it possible that the error specified is correct? There is no 'current working directory' in CE, so your first example should fail based upon the path to the executable you described. And I believe the two initial backslashes in your second path are incorrect as well. Rather, I believe it should have only one. "Tom K" <TomK(a)discussions.microsoft.com> wrote in message news:9A5BB9A9-E2B5-4D68-8BA5-72FF197014A2(a)microsoft.com... > 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) ? >
|
Pages: 1 Prev: Pointers in vb6 Next: Windows Media Player 10 Mobile control |