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 Function entry for DLL in win3.1?

666


What is System call executable binary file into a process?

671


What is an Hash Mapping in java?

2559


What is preemption and context switching?

656


What Message to limit the size of window?

666






explain WM_PAINT message ?????

2771


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

2162


what is the stack size in win 32 program

936


What is GDI object?

687