472,952 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,952 software developers and data experts.

File Version Info On Windows Mobile 5.0 for PocketPC...

Hello,

I am currently working on a C++ project for a PocketPC with Windows
Mobile 5.0 in Visual Studio 2005. I am currently looking for a way to get
file version information, i.e. file version, product version, file modified
date, file creation date, etc. The only way I could find was using the
functions GetFileVersionInfoSize, GetFileVersionInfo, and then VerQueryValue,
but when I ran it, it gave me an error saying: "The specified resource name
cannot be found in the image file."

I noticed in the documentation that these functions do not work for
16-bit file images, which may be why I am getting the error. Is there
another way to get this information (i.e. one that works on 16-bit file
systems)? If not, what infomation is available? The most important
attributes for my project are the creation/modified dates of a file and the
product version of an exe. Are either of these available? If so, how would
I get them without using these functions?

Any help is appreciated.

-Chris
Jul 10 '06 #1
2 3444
"opswat" <op****@discussions.microsoft.comwrote in message
news:FA**********************************@microsof t.com...
The only way I could find was using the
functions GetFileVersionInfoSize, GetFileVersionInfo, and then
VerQueryValue,
but when I ran it, it gave me an error saying: "The specified resource
name
cannot be found in the image file."
The data that these functions retrieve has to be explicitly added to an
executable when it is built.
I noticed in the documentation that these functions do not work for
16-bit file images, which may be why I am getting the error. Is there
another way to get this information (i.e. one that works on 16-bit file
systems)?
My memory of the 16 bit platforms is fading, it may be that the version
resource was not added until after the switch to '95.
The most important
attributes for my project are the creation/modified dates of a file and
the
product version of an exe. Are either of these available? If so, how
would
I get them without using these functions?
The timestamps of a file are maintained by the file system. Check the docs
for GetFileTime(). The product version comes from the version resource,
which if the error message above is to believed, simply does not exist in
your case.

Regards,
Will
Jul 11 '06 #2
By old tradition, WinCE program files do not contain version resources,
because storage on WinCE device is scarce.
( digital signatures and mainfests are a waste of storage too,
but at least they carry some usual functions )

A PE timestamp and version (32-bit) are put into PE file header by link -
unless the file is converted to a ROM module; then I'm not sure.

--PA

"opswat" wrote:
Hello,

I am currently working on a C++ project for a PocketPC with Windows
Mobile 5.0 in Visual Studio 2005. I am currently looking for a way to get
file version information, i.e. file version, product version, file modified
date, file creation date, etc. The only way I could find was using the
functions GetFileVersionInfoSize, GetFileVersionInfo, and then VerQueryValue,
but when I ran it, it gave me an error saying: "The specified resource name
cannot be found in the image file."

I noticed in the documentation that these functions do not work for
16-bit file images, which may be why I am getting the error. Is there
another way to get this information (i.e. one that works on 16-bit file
systems)? If not, what infomation is available? The most important
attributes for my project are the creation/modified dates of a file and the
product version of an exe. Are either of these available? If so, how would
I get them without using these functions?

Any help is appreciated.

-Chris
Jul 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
2
by: Keith Smith | last post by:
What is the difference between these items and can Visual C# write apps for them? Windows Mobile Windows CE Pocket PC PDA Palm Pilot
1
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
6
by: mister.mwa | last post by:
Hello, I have the following problem: I have a class Foo, and a class Bar. I want Foo to inherit from Bar, but i want to put them in separate files Foo.vb and Bar.vb. Then i will use the Foo...
2
by: Anna | last post by:
I added a small Web.Config file to the root of my website so that I could view errors on a machine other than the server: <configuration> <system.web> <customErrors mode="Off" /> </system.web>...
3
by: Hugh Janus | last post by:
Hi group, Using an iPaq running Windows Mobile 2003. I have a need where I will want to display a map and then using a bluetooth (or another form of connectivity) GPS unit, receive the data and...
1
by: Sharky Ward | last post by:
We have a C# windows mobile form application designed for PockedtPC 2003 developed in VS2003.NET with .NET 1.0/1.1. Some of the mobile devices have been replaced with Windows Mobile 5.0. As a...
1
by: =?Utf-8?B?Q2Vkcmlj?= | last post by:
Hello, How to post questions about Managed Development on the Mobile SDK? I want to change the default lock / unlock screen of my PPC device. How to do this?
1
by: =?Utf-8?B?Q29saW4gQmFrZXI=?= | last post by:
Hi, I recently read an article (and video) on MSDN about making a Windows Mobile device enter unattended mode instead of suspended mode when the the standby/power button is pressed. This allows...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.