Strings [SOLVED]
-
1. Is it legal to use
#include
in a win32 native Windows Application. 2. Does using atlstr.h in Win32 Native Windows Application causes any kind of error. :confused:
Source Found on Internet: Starting VS 2003, you can use CString in non-MFC applications by including header atlstr.h:
Some Day I Will Prove MySelf :: GOLD
-
1. Is it legal to use
#include
in a win32 native Windows Application. 2. Does using atlstr.h in Win32 Native Windows Application causes any kind of error. :confused:
Source Found on Internet: Starting VS 2003, you can use CString in non-MFC applications by including header atlstr.h:
Some Day I Will Prove MySelf :: GOLD
Yes you can use it. 1) If you create an application than one option for ATL i.e. "Add common header files for ATL" is displayed.If you select these than it automatically add this header for you. or 2) You can use basic_string of STL, std::string, std::wstring as per your requirement.
I believe in LOVE AT FIRST SIGHT... Bcoz I have loved my Mother... even since I opened my eyes...(ICAN)
-
1. Is it legal to use
#include
in a win32 native Windows Application. 2. Does using atlstr.h in Win32 Native Windows Application causes any kind of error. :confused:
Source Found on Internet: Starting VS 2003, you can use CString in non-MFC applications by including header atlstr.h:
Some Day I Will Prove MySelf :: GOLD
Indeed you may use
CString
in aWin32
application. Howeverstd::string
might be a valid alternative. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Yes you can use it. 1) If you create an application than one option for ATL i.e. "Add common header files for ATL" is displayed.If you select these than it automatically add this header for you. or 2) You can use basic_string of STL, std::string, std::wstring as per your requirement.
I believe in LOVE AT FIRST SIGHT... Bcoz I have loved my Mother... even since I opened my eyes...(ICAN)
:thumbsup: do std::wstring has trim function as CString have. (Trim, LTrim, RTrim )
Some Day I Will Prove MySelf :: GOLD
-
:thumbsup: do std::wstring has trim function as CString have. (Trim, LTrim, RTrim )
Some Day I Will Prove MySelf :: GOLD
No there is no built in functionality for trim in basic_string but you can make a function of it. Search on Google, you will get the better result First link of google that have solution is : Click here ->
I believe in LOVE AT FIRST SIGHT... Bcoz I have loved my Mother... even since I opened my eyes...(ICAN)
-
No there is no built in functionality for trim in basic_string but you can make a function of it. Search on Google, you will get the better result First link of google that have solution is : Click here ->
I believe in LOVE AT FIRST SIGHT... Bcoz I have loved my Mother... even since I opened my eyes...(ICAN)
:thumbsup: thanx nice :)
Some Day I Will Prove MySelf :: GOLD
-
:thumbsup: thanx nice :)
Some Day I Will Prove MySelf :: GOLD