In win32 application if defining a variable of CString then
it gives the error "CString:Undeclared identifier" how to
solve the problem? What headerfile need to include??

Answer Posted / lasthope

Afaik CString is a MFC class. You cannot use it in win32
application unless you set your application to use MFC
libraries. To use MFC in win32 application, go to project
settings and in general tab, set it to use MFC libraries in
shared DLL. Then you can include MFC framework files like
afxwin.h.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is System call executable binary file into a process?

754


What is GDI object?

755


What Message to limit the size of window?

731


to take three string inputs in a two dimensional array of 3 rows and 15 columns and write a function that prints them.

2260


What is an Hash Mapping in java?

2639






What is preemption and context switching?

725


what is the stack size in win 32 program

1012


explain WM_PAINT message ?????

2850


What is Function entry for DLL in win3.1?

747