Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTrouble in hooking API using Microsoft Detours Pin
wolong14-Sep-03 17:50
wolong14-Sep-03 17:50 
GeneralCBrush... Pin
R. Thomas14-Sep-03 16:42
R. Thomas14-Sep-03 16:42 
GeneralRe: CBrush... Pin
Jagadeesh VN14-Sep-03 19:51
Jagadeesh VN14-Sep-03 19:51 
GeneralRe: CBrush... Pin
R. Thomas14-Sep-03 20:08
R. Thomas14-Sep-03 20:08 
GeneralRe: CBrush... Pin
Jagadeesh VN15-Sep-03 3:32
Jagadeesh VN15-Sep-03 3:32 
GeneralHelp me! About USB Operate... Pin
njbull14-Sep-03 16:14
njbull14-Sep-03 16:14 
GeneralVS_VersionINFO Resources Pin
IceBerG7114-Sep-03 16:06
IceBerG7114-Sep-03 16:06 
GeneralRe: VS_VersionINFO Resources Pin
Frank K14-Sep-03 23:03
Frank K14-Sep-03 23:03 
Hi
try this (short form):
<br />
//PathName = the path and filename of the application<br />
DWORD Size, Tmp;<br />
if (Size = GetFileVersionInfoSize(PathName, &Tmp))<br />
{<br />
 char *Info = new char[Size];<br />
 if (GetFileVersionInfo(PathName, 0, Size, Info))<br />
 {<br />
  void *lpBuffer;<br />
  UINT dwBytes;<br />
<br />
  if (VerQueryValue(Info, TEXT("\\"), &lpBuffer, &dwBytes))<br />
  {<br />
   VS_FIXEDFILEINFO *lpvsFixedFileInfo = (VS_FIXEDFILEINFO *)lpBuffer; <br />
   ...<br />
   //now get the members of VS_FIXEDFILEINFO<br />
  }<br />
 }<br />
 delete[] Info;<br />
}<br />


HTH
Regards,
Frank
QuestionHow to call system command in c++ code? Pin
sheepeast14-Sep-03 15:11
sheepeast14-Sep-03 15:11 
AnswerRe: How to call system command in c++ code? Pin
keegan14-Sep-03 17:18
keegan14-Sep-03 17:18 
GeneralWindows sockets Pin
mweiss14-Sep-03 13:10
mweiss14-Sep-03 13:10 
GeneralRe: Windows sockets Pin
geo_m14-Sep-03 22:43
geo_m14-Sep-03 22:43 
GeneralRe: Windows sockets Pin
mweiss15-Sep-03 10:42
mweiss15-Sep-03 10:42 
GeneralRe: Windows sockets Pin
geo_m15-Sep-03 21:48
geo_m15-Sep-03 21:48 
Generalhelp a few more programs im so close Pin
colin2114-Sep-03 13:08
colin2114-Sep-03 13:08 
GeneralRe: help a few more programs im so close Pin
R. Thomas14-Sep-03 16:45
R. Thomas14-Sep-03 16:45 
GeneralRe: help a few more programs im so close Pin
R. Thomas14-Sep-03 16:47
R. Thomas14-Sep-03 16:47 
GeneralRe: help a few more programs im so close Pin
R. Thomas14-Sep-03 22:34
R. Thomas14-Sep-03 22:34 
GeneralRe: help a few more programs im so close Pin
DougW4815-Sep-03 7:16
DougW4815-Sep-03 7:16 
GeneralRe: help a few more programs im so close Pin
colin2115-Sep-03 9:18
colin2115-Sep-03 9:18 
GeneralRe: help a few more programs im so close Pin
DougW4815-Sep-03 11:53
DougW4815-Sep-03 11:53 
GeneralDrawing icons with alpha channel Pin
skaanji14-Sep-03 11:55
skaanji14-Sep-03 11:55 
GeneralCreating a button without using CButton Pin
Harco14-Sep-03 10:07
Harco14-Sep-03 10:07 
GeneralRe: Creating a button without using CButton Pin
skaanji14-Sep-03 12:14
skaanji14-Sep-03 12:14 
GeneralRe: Creating a button without using CButton Pin
Harco14-Sep-03 21:57
Harco14-Sep-03 21:57 

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.