IBM Support

Compiling with Rhapsody 8 results in "cannot convert parameter 3 from 'wchar_t [256]' to 'LPCSTR'" error

Troubleshooting


Problem

Attempts to compile code with IBM Rational Rhapsody 8 on Windows 7 using Microsoft Visual Studio 2008 results in the error "error C2664: 'SetDlgItemTextA'".

Symptom

The full error message is as follows:

FOO.cpp(574) : error C2664: 'SetDlgItemTextA' : cannot convert

parameter 3 from 'wchar_t [256]' to 'LPCSTR'

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Rational Rhapsody Developer","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
27 May 2022

UID

swg21615742