Click here to Skip to main content
15,890,186 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: problem with CDaoDataBase in Thread Pin
David Crow30-Nov-10 4:44
David Crow30-Nov-10 4:44 
AnswerRe: problem with CDaoDataBase in Thread Pin
Shivanand Gupta30-Nov-10 5:22
Shivanand Gupta30-Nov-10 5:22 
QuestionRe: problem with CDaoDataBase in Thread Pin
David Crow30-Nov-10 5:27
David Crow30-Nov-10 5:27 
AnswerRe: problem with CDaoDataBase in Thread Pin
Shivanand Gupta2-Dec-10 8:41
Shivanand Gupta2-Dec-10 8:41 
QuestionRe: problem with CDaoDataBase in Thread Pin
David Crow2-Dec-10 8:47
David Crow2-Dec-10 8:47 
QuestionChange Disable Edit control color Pin
Shivanand Gupta30-Nov-10 0:42
Shivanand Gupta30-Nov-10 0:42 
AnswerRe: Change Disable Edit control color Pin
«_Superman_»30-Nov-10 7:33
professional«_Superman_»30-Nov-10 7:33 
QuestionHow can I read swf version in MFC Pin
rahul.kulshreshtha29-Nov-10 23:38
rahul.kulshreshtha29-Nov-10 23:38 
I have a swf. How can I read swf version in MFC?
I can read my exe version using

CString Version::getFileVersion(LPCTSTR file)
{
	CString version;
	VS_FIXEDFILEINFO *pVerInfo = NULL;
	DWORD	dwTemp, dwSize, dwHandle = 0;
	BYTE	*pData = NULL;
	UINT	uLen;

	try {
		dwSize = GetFileVersionInfoSize((LPTSTR) file, &dwTemp);
		if (dwSize == 0) throw 1;

		pData = new BYTE[dwSize];
		if (pData == NULL) throw 1;

		if (!GetFileVersionInfo((LPTSTR) file, dwHandle, dwSize, pData))
			throw 1;

		if (!VerQueryValue(pData, _T("\\"), (void **) &pVerInfo, &uLen)) 
			throw 1;

		DWORD verMS = pVerInfo->dwFileVersionMS;
		DWORD verLS = pVerInfo->dwFileVersionLS;

		int ver[4];
		ver[0] = HIWORD(verMS);
		ver[1] = LOWORD(verMS);
		ver[2] = HIWORD(verLS);
		ver[3] = LOWORD(verLS);

		// Are lo-words used?
		if (ver[2] != 0 || ver[3] != 0)
		{
			version.Format(_T("%d.%d.%d.%d"), ver[0], ver[1], ver[2], ver[3]);
		}
		else if (ver[0] != 0 || ver[1] != 0)
		{
			version.Format(_T("%d.%d"), ver[0], ver[1]);
		}

		delete pData;
		return version;
	}
	catch(...) {
		return _T("");
	}	
}

QuestionRe: How can I read swf version in MFC Pin
David Crow30-Nov-10 4:42
David Crow30-Nov-10 4:42 
AnswerRe: How can I read swf version in MFC Pin
rahul.kulshreshtha30-Nov-10 18:55
rahul.kulshreshtha30-Nov-10 18:55 
QuestionRe: How can I read swf version in MFC Pin
David Crow1-Dec-10 3:02
David Crow1-Dec-10 3:02 
Questionto move directories to different drives Pin
zon_cpp29-Nov-10 21:53
zon_cpp29-Nov-10 21:53 
AnswerRe: to move directories to different drives Pin
CPallini29-Nov-10 22:04
mveCPallini29-Nov-10 22:04 
GeneralRe: to move directories to different drives Pin
zon_cpp29-Nov-10 23:44
zon_cpp29-Nov-10 23:44 
GeneralRe: to move directories to different drives Pin
CPallini30-Nov-10 0:07
mveCPallini30-Nov-10 0:07 
GeneralRe: to move directories to different drives Pin
zon_cpp30-Nov-10 0:11
zon_cpp30-Nov-10 0:11 
AnswerRe: to move directories to different drives Pin
zon_cpp30-Nov-10 0:10
zon_cpp30-Nov-10 0:10 
QuestionNo icons showing in XP while running an app developed in Vista Pin
ShadowUz29-Nov-10 20:22
ShadowUz29-Nov-10 20:22 
QuestionRe: No icons showing in XP while running an app developed in Vista Pin
Niklas L29-Nov-10 22:56
Niklas L29-Nov-10 22:56 
AnswerRe: No icons showing in XP while running an app developed in Vista Pin
ShadowUz29-Nov-10 23:42
ShadowUz29-Nov-10 23:42 
QuestionMS developer Pin
danandu29-Nov-10 19:58
danandu29-Nov-10 19:58 
AnswerRe: MS developer Pin
CPallini29-Nov-10 21:53
mveCPallini29-Nov-10 21:53 
GeneralRe: MS developer Pin
danandu29-Nov-10 23:57
danandu29-Nov-10 23:57 
GeneralRe: MS developer Pin
CPallini30-Nov-10 0:10
mveCPallini30-Nov-10 0:10 
GeneralRe: MS developer Pin
Chris Meech30-Nov-10 6:08
Chris Meech30-Nov-10 6:08 

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.