Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionpasting from excel -- supported formats? Pin
elf2313-Aug-03 8:32
elf2313-Aug-03 8:32 
AnswerRe: pasting from excel -- supported formats? Pin
Joey Bloggs15-Aug-03 23:49
Joey Bloggs15-Aug-03 23:49 
GeneralVS_VERSION_INFO question Pin
crewchill13-Aug-03 8:26
crewchill13-Aug-03 8:26 
GeneralRe: VS_VERSION_INFO question Pin
David Crow13-Aug-03 8:45
David Crow13-Aug-03 8:45 
GeneralRe: VS_VERSION_INFO question Pin
crewchill13-Aug-03 9:51
crewchill13-Aug-03 9:51 
GeneralRe: VS_VERSION_INFO question Pin
David Crow13-Aug-03 10:16
David Crow13-Aug-03 10:16 
GeneralRe: VS_VERSION_INFO question Pin
RobJones13-Aug-03 11:50
RobJones13-Aug-03 11:50 
GeneralRe: VS_VERSION_INFO question Pin
crewchill13-Aug-03 20:26
crewchill13-Aug-03 20:26 
BOOL CVersionDlg::OnInitDialog()
{
......... regular MFC exe wizard .......

SetTimer(1, 5000, NULL);
return TRUE; // return TRUE unless you set the focus to a control
}


void CVersionDlg::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
CString strFile = "E:\\MyProjects\\version\\Debug\\version.exe";
DWORD size = GetFileVersionInfoSize(strFile.LockBuffer(),0);
strFile.UnlockBuffer();
if(size > 0)
{
CString results;
char *pData = new char[size];

// GET THE FILE VERSION AND STORE IT IN pData
if(GetFileVersionInfo(strFile.LockBuffer(), 0, size, pData))
{
strFile.UnlockBuffer();
VS_FIXEDFILEINFO* lpvi;
UINT iLen;
if(VerQueryValue(pData,"\\", (void **)&lpvi, &iLen))
{
// FORMAT THE VERSION EXAMPLE ( 1.2.3.1 )..
results.Format("%u.%u.%u.%u",HIWORD(lpvi->dwFileVersionMS),LOWORD(lpvi->dwFileVersionMS),
HIWORD(lpvi->dwFileVersionLS),LOWORD(lpvi->dwFileVersionLS));
MessageBox("Version", results);
}
}
delete[] pData;
}

CDialog::OnTimer(nIDEvent);
}

Make 2 version.exe, put one with version 1.0.0.1 (version1.exe) and the other one 1.0.0.5 (version5.exe).
Copy version1.exe to version.exe.
Run version.exe. A dialog should pop up 1.0.0.1 every 5 seconds.
Rename version.exe to version.bak. The dialog should cease popping up.
Copy version5.exe to version.exe. The dialog will pop up again still with 10.0.0.1 (while it should be 10.0.0.5).

So still no solution Confused | :confused:
GeneralRe: VS_VERSION_INFO question Pin
RobJones14-Aug-03 3:55
RobJones14-Aug-03 3:55 
GeneralRe: VS_VERSION_INFO question Pin
crewchill14-Aug-03 7:34
crewchill14-Aug-03 7:34 
Generaldirectx forum Pin
includeh1013-Aug-03 7:47
includeh1013-Aug-03 7:47 
GeneralRe: directx forum Pin
John M. Drescher13-Aug-03 18:04
John M. Drescher13-Aug-03 18:04 
GeneralRe: directx forum Pin
Joey Bloggs15-Aug-03 23:55
Joey Bloggs15-Aug-03 23:55 
QuestionHow to disconnect dial up connection? Pin
JDasari13-Aug-03 6:25
JDasari13-Aug-03 6:25 
AnswerRe: How to disconnect dial up connection? Pin
vcplusplus13-Aug-03 6:50
vcplusplus13-Aug-03 6:50 
AnswerRe: How to disconnect dial up connection? Pin
Rickard Andersson2013-Aug-03 7:42
Rickard Andersson2013-Aug-03 7:42 
AnswerRe: How to disconnect dial up connection? Pin
JDasari13-Aug-03 11:14
JDasari13-Aug-03 11:14 
GeneralNuke VK_LWIN / VK_RWIN / VK_APPS Pin
Bartosz Bien13-Aug-03 6:18
Bartosz Bien13-Aug-03 6:18 
GeneralCD & DVD recording SDK Pin
mmm.fff13-Aug-03 5:42
mmm.fff13-Aug-03 5:42 
QuestionHow to make transparent Text-Labels in CDialog ? Pin
vgrigor13-Aug-03 5:14
vgrigor13-Aug-03 5:14 
AnswerRe: How to make transparent Text-Labels in CDialog ? Pin
Steve S13-Aug-03 5:41
Steve S13-Aug-03 5:41 
GeneralRe: How to make transparent Text-Labels in CDialog ? Pin
Nathan R13-Aug-03 6:01
Nathan R13-Aug-03 6:01 
GeneralRe: How to make transparent Text-Labels in CDialog ? Pin
Nathan_RR13-Aug-03 6:04
Nathan_RR13-Aug-03 6:04 
GeneralRe: How to make transparent Text-Labels in CDialog ? Pin
Steve S13-Aug-03 23:32
Steve S13-Aug-03 23:32 
GeneralRe: How to make transparent Text-Labels in CDialog ? Pin
vgrigor13-Aug-03 21:23
vgrigor13-Aug-03 21:23 

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.