Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Extending Command Routing Pin
Taka Muraoka15-Sep-05 7:36
Taka Muraoka15-Sep-05 7:36 
GeneralRe: Extending Command Routing Pin
Joel Holdsworth15-Sep-05 21:36
Joel Holdsworth15-Sep-05 21:36 
QuestionAdding a new search function to the explorer Pin
chrisbk215-Sep-05 3:23
chrisbk215-Sep-05 3:23 
QuestionActive document server in .NET instead of VC++ Pin
Bruce Pataki15-Sep-05 3:17
Bruce Pataki15-Sep-05 3:17 
QuestionFile Version Pin
Supriya Tonape15-Sep-05 2:51
Supriya Tonape15-Sep-05 2:51 
AnswerRe: File Version Pin
ThatsAlok15-Sep-05 3:45
ThatsAlok15-Sep-05 3:45 
GeneralRe: File Version Pin
David Crow15-Sep-05 7:34
David Crow15-Sep-05 7:34 
GeneralRe: File Version Pin
Supriya Tonape15-Sep-05 22:04
Supriya Tonape15-Sep-05 22:04 
thanks to both of U dear but I m not able to get desired o/p Confused | :confused:

below is sample code I m doing, I m getting Invalid data Error (13)

====================
DWORD dwVerInfoSize; // Size of version information block
DWORD dwVerHnd = 0; // An 'ignored' parameter, always '0'

TCHAR *szAppName= L"C:\\Documents and Settings\\Desktop\\unicows.exe";
TCHAR *verdata = L"";

//WIN32_FIND_DATA var;
//HANDLE hFileHandle = FindFirstFile (szAppName,&var);

dwVerInfoSize = GetFileVersionInfoSize( szAppName, &dwVerHnd );
cout << dwVerInfoSize; // here I m getting o/p as "2052"

GetFileVersionInfo(szAppName,0,dwVerInfoSize,verdata);

LPVOID lpInfo;
UINT unInfoLen;

VerQueryValue(verdata, _T("\\"), &lpInfo, &unInfoLen);

cout<< "lpInfo : " << lpInfo<<"\n\n"; //o/p is 0xccccccc
cout<< "unInfoLen :" << unInfoLen; // o/p is zero

cout<<"\n"<< GetLastError(); //13
========================

tell me what's wrong in it...

thanks n Regards
Supriya Tonape

-- modified at 6:27 Friday 16th September, 2005
GeneralRe: File Version Pin
David Crow16-Sep-05 2:05
David Crow16-Sep-05 2:05 
GeneralRe: File Version Pin
Supriya Tonape16-Sep-05 4:10
Supriya Tonape16-Sep-05 4:10 
GeneralRe: File Version Pin
David Crow16-Sep-05 4:48
David Crow16-Sep-05 4:48 
GeneralRe: File Version Pin
Supriya Tonape7-Oct-05 1:49
Supriya Tonape7-Oct-05 1:49 
GeneralRe: File Version Pin
Supriya Tonape7-Oct-05 2:07
Supriya Tonape7-Oct-05 2:07 
AnswerRe: File Version Pin
ky_rerun16-Sep-05 5:06
ky_rerun16-Sep-05 5:06 
GeneralRe: File Version Pin
Supriya Tonape7-Oct-05 2:08
Supriya Tonape7-Oct-05 2:08 
QuestionProblem with CString Pin
rajeevktripathi15-Sep-05 2:24
rajeevktripathi15-Sep-05 2:24 
AnswerRe: Problem with CString Pin
ThatsAlok15-Sep-05 2:44
ThatsAlok15-Sep-05 2:44 
AnswerRe: Problem with CString Pin
22491715-Sep-05 2:56
22491715-Sep-05 2:56 
AnswerRe: Problem with CString Pin
MailtoGops15-Sep-05 2:58
MailtoGops15-Sep-05 2:58 
QuestionAfx Message Handling in CStatic as Child-Window Pin
_NielsB15-Sep-05 2:19
_NielsB15-Sep-05 2:19 
QuestionRe: Afx Message Handling in CStatic as Child-Window Pin
Maximilien15-Sep-05 2:28
Maximilien15-Sep-05 2:28 
AnswerRe: Afx Message Handling in CStatic as Child-Window Pin
khan++15-Sep-05 2:34
khan++15-Sep-05 2:34 
GeneralRe: Afx Message Handling in CStatic as Child-Window Pin
_NielsB15-Sep-05 2:47
_NielsB15-Sep-05 2:47 
Questionhelp for VOIP Pin
vikas amin15-Sep-05 2:13
vikas amin15-Sep-05 2:13 
QuestionAbout Bitmaps: Plz Help Pin
parims15-Sep-05 2:07
parims15-Sep-05 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.