Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: need help in computer graphics.. Pin
El Corazon24-Jan-07 1:51
El Corazon24-Jan-07 1:51 
QuestionDrawing unicode text in a dialog window Pin
Jogeboy24-Jan-07 0:41
Jogeboy24-Jan-07 0:41 
Questioncstring Pin
zoobiskuit24-Jan-07 0:35
zoobiskuit24-Jan-07 0:35 
AnswerRe: cstring Pin
toxcct24-Jan-07 0:39
toxcct24-Jan-07 0:39 
GeneralRe: cstring Pin
zoobiskuit24-Jan-07 1:15
zoobiskuit24-Jan-07 1:15 
GeneralRe: cstring Pin
toxcct24-Jan-07 1:36
toxcct24-Jan-07 1:36 
GeneralRe: cstring Pin
zoobiskuit24-Jan-07 2:10
zoobiskuit24-Jan-07 2:10 
AnswerRe: cstring [modified] Pin
jhwurmbach24-Jan-07 1:16
jhwurmbach24-Jan-07 1:16 
zoobiskuit wrote:
i can't convert from 'string' to 'const char*'


This is done by using std::strings member-function c_str(), which returns a const char* to the string contained.
You can the go through this const c-string on a char by char basis and copy anything save the extra spaces to another string.

Hope this helps.

P.S.:
"The light at the end of the tunnel is the light of the oncoming train"
or
"Due to the present economic uncertanities, the light at the end of the tunnel will be switched of until further notice"
Cool | :cool:


-- modified at 7:41 Wednesday 24th January, 2007: fixed typo(notive -> notice)


"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

GeneralRe: cstring Pin
S Douglas24-Jan-07 1:31
professionalS Douglas24-Jan-07 1:31 
QuestionHow do i compile a cpp program using cl.exe ? Pin
Sakthiu24-Jan-07 0:27
Sakthiu24-Jan-07 0:27 
AnswerRe: How do i compile a cpp program using cl.exe ? Pin
toxcct24-Jan-07 0:34
toxcct24-Jan-07 0:34 
GeneralRe: How do i compile a cpp program using cl.exe ? Pin
Sakthiu24-Jan-07 0:42
Sakthiu24-Jan-07 0:42 
GeneralRe: How do i compile a cpp program using cl.exe ? Pin
toxcct24-Jan-07 0:43
toxcct24-Jan-07 0:43 
GeneralRe: How do i compile a cpp program using cl.exe ? Pin
Sakthiu24-Jan-07 1:03
Sakthiu24-Jan-07 1:03 
GeneralRe: How do i compile a cpp program using cl.exe ? Pin
toxcct24-Jan-07 1:37
toxcct24-Jan-07 1:37 
AnswerRe: How do i compile a cpp program using cl.exe ? Pin
David Crow24-Jan-07 4:27
David Crow24-Jan-07 4:27 
Questionhelp in win32 for communication between child dialogs [modified] Pin
amitmistry_petlad 24-Jan-07 0:05
amitmistry_petlad 24-Jan-07 0:05 
Question[GDI] x-offset when using Graphics::DrawString(...) [modified] Pin
_NielsB24-Jan-07 0:01
_NielsB24-Jan-07 0:01 
QuestionRe: [GDI] x-offset when using Graphics::DrawString(...) Pin
Mark Salsbery24-Jan-07 6:24
Mark Salsbery24-Jan-07 6:24 
AnswerRe: [GDI] x-offset when using Graphics::DrawString(...) Pin
_NielsB25-Jan-07 0:58
_NielsB25-Jan-07 0:58 
Questionhelp about date time Pin
Vikram.....23-Jan-07 23:12
Vikram.....23-Jan-07 23:12 
AnswerRe: help about date time Pin
Tony Hill23-Jan-07 23:36
professionalTony Hill23-Jan-07 23:36 
GeneralRe: help about date time Pin
Vikram.....24-Jan-07 1:01
Vikram.....24-Jan-07 1:01 
AnswerRe: help about date time Pin
Nibu babu thomas23-Jan-07 23:44
Nibu babu thomas23-Jan-07 23:44 
AnswerRe: help about date time Pin
Vikram.....24-Jan-07 1:00
Vikram.....24-Jan-07 1:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.