LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-06-2005, 03:57 AM   #1
nelnel
Member
 
Registered: May 2005
Posts: 47

Rep: Reputation: 15
CString in Linux


hello,
i wan to change the MFC program to Linux. The original Program contains lots of CString data type.
What is the better solution to replace this data type in linux system?
thx for ur help!!!!

 
Old 07-06-2005, 06:48 PM   #2
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
If it's written in c++, try using a "string". I'm not sure of all the little differences but it should do the job.
 
Old 07-06-2005, 07:48 PM   #3
nelnel
Member
 
Registered: May 2005
Posts: 47

Original Poster
Rep: Reputation: 15
thx for ur suggestion~~


Ur method, i am trying now, but as the CString contains lots of Trim function, data type convert function and other advanced function. It is hard to use string class to simple replace it. That's why i want to ask that are there any better method to replace it?

thx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
cstring troubles foo_bar_foo Programming 3 09-30-2004 09:43 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration