Will there be any difference in the image buffer size if it
is loaded in from CString to LPTSTR using GetBuffer()?
lptstr = string.GetBuffer(0);

Answers were Sorted based on User's Feedback



Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR us..

Answer / prashant

No there wont be any difference. Infact the first method is
preffered

Is This Answer Correct ?    2 Yes 0 No

Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR us..

Answer / abn reddy

use like this,
int nLen = string.GetLenght();
lptstr = string.GetBuffer(nLen);

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More MFC Interview Questions

what is the difference between compiling and building?

1 Answers  


What is the difference between Synchronous sockets and asynchronous sockets?

2 Answers  


Difference between Debug and Release versions?

4 Answers  


how to repaint when working with horizontal scroll bar

1 Answers  


What is #progma and where it is used?

5 Answers   L&T,


Have you ever used win32 APIs ?

4 Answers   Microsoft,


What types of threads are supported by MFC framework?

2 Answers  


What does mfc stand for?

1 Answers  


Difference between Cclint DC & Cpaint Dc

6 Answers   E Logic,


What is the difference between regular dlls and extended dlls?

2 Answers  


What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


Whats is DDX & DDV in MFC?

1 Answers   HCL,


Categories