Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The New Extension IDE - EXTEIDE Pin
#realJSOP8-Jan-06 3:09
mve#realJSOP8-Jan-06 3:09 
AnswerRe: The New Extension IDE - EXTEIDE Pin
Trollslayer8-Jan-06 3:53
mentorTrollslayer8-Jan-06 3:53 
QuestionCString, fstream with Visual Studio 2005 Pin
DanYELL6-Jan-06 9:28
DanYELL6-Jan-06 9:28 
QuestionRe: CString, fstream with Visual Studio 2005 Pin
David Crow6-Jan-06 9:34
David Crow6-Jan-06 9:34 
AnswerRe: CString, fstream with Visual Studio 2005 Pin
DanYELL6-Jan-06 10:37
DanYELL6-Jan-06 10:37 
QuestionRe: CString, fstream with Visual Studio 2005 Pin
David Crow6-Jan-06 10:45
David Crow6-Jan-06 10:45 
AnswerRe: CString, fstream with Visual Studio 2005 Pin
DanYELL6-Jan-06 11:08
DanYELL6-Jan-06 11:08 
AnswerRe: CString, fstream with Visual Studio 2005 Pin
DanYELL6-Jan-06 11:15
DanYELL6-Jan-06 11:15 
Here are 2-snippets of code that generate errors with CString:

if(strlen(ps->Text)==0)
return 2 * ps->PointSize;

Here I get:

'strlen' : cannot convert parameter 2 from 'CString' to 'const char *'

It doesnt recognize the CString.

And here:

LPCSTR CPage::SetFont(LPCSTR FontName)
{
static char buff[40];
strcpy(buff,m_PrtDesc.FontName);
if(FontName != NULL)
m_PrtDesc.FontName=FontName;
return buff;
}

I get:

'strcpy' : cannot convert parameter 2 from 'CString' to 'const char *'


GeneralRe: CString, fstream with Visual Studio 2005 Pin
David Crow7-Jan-06 17:00
David Crow7-Jan-06 17:00 
GeneralRe: CString, fstream with Visual Studio 2005 Pin
Orhun Birsoy6-Jan-06 12:20
Orhun Birsoy6-Jan-06 12:20 
GeneralRe: CString, fstream with Visual Studio 2005 Pin
Michael Dunn7-Jan-06 8:25
sitebuilderMichael Dunn7-Jan-06 8:25 
GeneralRe: CString, fstream with Visual Studio 2005 Pin
Stephen Hewitt9-Jan-06 1:57
Stephen Hewitt9-Jan-06 1:57 
NewsOk Pin
pvatanpour6-Jan-06 8:34
pvatanpour6-Jan-06 8:34 
GeneralRe: Ok Pin
KellyR6-Jan-06 9:41
KellyR6-Jan-06 9:41 
GeneralRe: Ok Pin
sunit56-Jan-06 21:19
sunit56-Jan-06 21:19 
GeneralRe: Ok Pin
KellyR7-Jan-06 13:40
KellyR7-Jan-06 13:40 
GeneralRe: Ok Pin
David Crow6-Jan-06 9:47
David Crow6-Jan-06 9:47 
GeneralRe: Ok Pin
John R. Shaw6-Jan-06 18:02
John R. Shaw6-Jan-06 18:02 
QuestionHowto: creating a dynamic menu? Pin
cromag6-Jan-06 7:08
cromag6-Jan-06 7:08 
AnswerRe: Howto: creating a dynamic menu? Pin
nm_1146-Jan-06 13:39
nm_1146-Jan-06 13:39 
AnswerRe: Howto: creating a dynamic menu? Pin
Laxman96-Jan-06 18:50
Laxman96-Jan-06 18:50 
AnswerRe: Howto: creating a dynamic menu? Pin
#realJSOP7-Jan-06 3:09
mve#realJSOP7-Jan-06 3:09 
GeneralRe: Howto: creating a dynamic menu? Pin
cromag9-Jan-06 4:55
cromag9-Jan-06 4:55 
GeneralRe: Howto: creating a dynamic menu? Pin
cromag9-Jan-06 5:19
cromag9-Jan-06 5:19 
GeneralRe: Howto: creating a dynamic menu? Pin
#realJSOP9-Jan-06 12:32
mve#realJSOP9-Jan-06 12:32 

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.