In Win32 application can we use CString datatype?
Answers were Sorted based on User's Feedback
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 ? | 10 Yes | 3 No |
Answer / sen sd
yes ,we can use CString class in any C++ application.
CString is class Shared by MFC and ATL.
by including atlstr.h //ATL Non-MFC string objects
we can use CString.
if we are using MFC there is no need to include atlstr.h
Is This Answer Correct ? | 4 Yes | 6 No |
Answer / pongapundit
Yes. Since CString is a standalone class doesn't depending
on the data structures that MFC initializes, it can be used
in any C++ application.
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / kasun
Absolutely. Here you can find a complete guide showing you
how to use CString and all MFC classes in win32 applications
http://thecoder.awardspace.biz/Strings/Part3.htm
Is This Answer Correct ? | 0 Yes | 5 No |
What is System call executable binary file into a process?
explain WM_PAINT message ?????
What is preemption and context switching?
What Message to limit the size of window?
What is Win32?
14 Answers AAA, Genpact, HCL, Wipro,
what is the function to repaint a window immediately?
what Message displayed when a window is destroyed
Explain Win32 Program Execution flow?
what is the stack size in win 32 program
what is use of the createWindow object
System call executable binary file into a process
to take three string inputs in a two dimensional array of 3 rows and 15 columns and write a function that prints them.