Code läuft nicht -warum?
-
Hallo zusammen
habe ein Codebeispiel, dass unter VS6.0 einwandfrei läuft. Aber unter eMbedded3.0 kommt einfach nichts retour.
Aufruf usw. sind vollkommen identisch.Weiss jemand Rat?
Danke im voraus
Rolf_VIII
..................................
Code:
//////////////////
// Get string file info.
// Key name is something like "CompanyName".
// returns the value as a CString.
//
CString CModuleVersion::GetValue(LPCTSTR lpKeyName)
{
CString sVal;
if (m_pVersionInfo)
{
CString query;
query.Format(_T("\\StringFileInfo\%04x%04x\%s"),
m_translation.langID,
m_translation.charset,
lpKeyName);LPCTSTR pVal;
UINT iLenVal;
if (VerQueryValue(m_pVersionInfo, (LPTSTR)(LPCTSTR)query, (LPVOID*)&pVal, &iLenVal))
{
sVal = pVal;
}
}
return sVal;
}