View Issue Details

IDProjectCategoryView StatusLast Update
0000630FSS5PC100Generalpublic2011-06-06 10:27
Reporterfroelich Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionV1.4 
Target VersionV1.5Fixed in VersionV1.5 
Summary0000630: CString conversion doesn't work as expected.
DescriptionCString m_Line2;
void SetString(char *fpLine2)
{
  m_Line2 = fpLine2;
}

The above code doesn't work anymore. This is because MultiByteToWideChar() gives wrong results.
Forum Link
Found Driver Version
Fixed Driver Version

Activities

froelich

2011-06-06 10:27

administrator   ~0000415

Last edited: 2011-07-11 09:14

Following code will now work again:

CString m_Line2;
void SetString(char *fpLine2)
{
  /* use format function to convert. ATTN: char to wchar use capital S */
  m_Line2.Format(L"%S", fpLine2);
  /* use simple assign for conversion */
  m_Line2 = fpLine2;
}