473,480 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3463
"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
2644
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
1513
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
3387
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
3548
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
2638
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
4178
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
2354
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
1373
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
5173
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
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7088
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4783
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2997
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.