Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, March 20, 2007 12:22:56 AM(UTC)
mgarnett

Groups: Registered
Posts: 2


Hi,

I am using Leadtools v15 to write an MFC app with Visual Studio 2005. One function I am using returns a CString value and I would like to convert that value to an L_TCHAR type.

The application is being compiled in Unicode.

Is there a way to convert an MFC CString data type to an L_TCHAR type.

Thanks

Mark
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, March 21, 2007 9:02:59 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


The L_TCHAR is the same as a TCHAR, so there isn't anything special in LEADTOOLS that does this conversion.  This would have to be done with just Microsoft functions for converting strings.  Check out MSDN for how to do this.
 
#3 Posted : Friday, April 6, 2007 7:33:31 AM(UTC)
bzimmerm

Groups: Registered
Posts: 3


Check out the method mbstowcs_s in your VS2005 Help. 

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.095 seconds.