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??

Answers were Sorted based on User's Feedback



In win32 application if defining a variable of CString then it gives the error "CString:Undec..

Answer / 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

In win32 application if defining a variable of CString then it gives the error "CString:Undec..

Answer / nandu

yes,CString is a MFC class, so we cant use here.. in place
of that we can use std:wstring type (with header file
#include "stdlib.h")...:)-

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Win32API Interview Questions

How will we unable and disable services in win 7 ?

2 Answers   McAfee, Microsoft,


what are the design patterns of an MFC application

5 Answers   Samsung, SunSoft Technologies,


how radio button is active in dialog box?

1 Answers  


how to Initialize contents of a dialog?

2 Answers   TCS,


win 3.1 supports which type of multi tasking?

2 Answers   TISL,


About GDI object?

2 Answers  


what API used to hide window

2 Answers  


What is an Hash Mapping in java?

0 Answers   Cisco, Syntel,


System call executable binary file into a process

2 Answers  


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

0 Answers  


sql query for delete duplicate records in sql datadbase

0 Answers  


What are the COM components

2 Answers   SunSoft Technologies,


Categories