Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 12th, 2005, 3:13 PM   #1
Pedja
Programmer
 
Join Date: Nov 2005
Location: Belgrade, Serbia & Montenegro
Posts: 31
Rep Power: 0 Pedja is on a distinguished road
Send a message via ICQ to Pedja Send a message via MSN to Pedja Send a message via Yahoo to Pedja
Unhappy Problem with extracting information from .exe files!!!

I am trying to extract informations from .exe and .dll files. It works fine, but for some files VerQueryValue function gets the wrong value of language identifier, so I can't extract file description. For POWERPNT.EXE it gets 0 instead of 1033. Even property FileVersionInfo.FileDescription can't get file description. Can anyone tell me what might be the problem and what should I do?
Pedja is offline   Reply With Quote
Old Dec 12th, 2005, 3:19 PM   #2
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Maybe those function are for .NET exe files only. Powerpnt.exe is a native exe.
OpenLoop is offline   Reply With Quote
Old Dec 12th, 2005, 3:32 PM   #3
Pedja
Programmer
 
Join Date: Nov 2005
Location: Belgrade, Serbia & Montenegro
Posts: 31
Rep Power: 0 Pedja is on a distinguished road
Send a message via ICQ to Pedja Send a message via MSN to Pedja Send a message via Yahoo to Pedja
No that's not the problem. Both functions work fine for other files. FileVersionInfo.FileDescription is .NET property, but VerQueryValue is WinAPI function. For POWERPNT.EXE VerQueryValue gets the correct value of code page identifier, but it gets 0 for language identifier. I believe that FileVersionInfo.FileDescription property uses VerQueryValue function. That could be the reason for not getting information out. But, windows shows file description when you right-click the file. I don't know what I should do.
Pedja is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:30 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC