In Win32 application can we use CString datatype?

Answers were Sorted based on User's Feedback



In Win32 application can we use CString datatype?..

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 ?    10 Yes 3 No

In Win32 application can we use CString datatype?..

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

In Win32 application can we use CString datatype?..

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

In Win32 application can we use CString datatype?..

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

Post New Answer

More Win32API Interview Questions

what is the function to repaint a window immediately?

2 Answers  


What is preemption ? context switching ?

3 Answers  


how to Initialize contents of a dialog?

2 Answers   TCS,


How will we unable and disable services in win 7 ?

2 Answers   McAfee, Microsoft,


What is System call executable binary file into a process?

0 Answers  






What is Win32?

14 Answers   AAA, Genpact, HCL, Wipro,


Hi All, i got through he h1b Lotreey in india. US staming in the consulate is pendding . i applied from india for H1b but currently i am in germany for 1 year .i wanted to know can i attend the interview in germany.

1 Answers   MultiVision,


describe process of creating a new class of windows ??

1 Answers  


write About send message and post message

4 Answers  


Function entry for DLL in win3.1

3 Answers  


What is GDI object?

0 Answers  


What is an Hash Mapping in java?

0 Answers   Cisco, Syntel,


Categories