Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get Thread State Pin
SalarSoft30-Jun-08 19:41
SalarSoft30-Jun-08 19:41 
Questionenduring object in Visual Studion Pin
bkelly1328-Jun-08 7:15
bkelly1328-Jun-08 7:15 
AnswerRe: enduring object in Visual Studion Pin
CPallini28-Jun-08 7:30
mveCPallini28-Jun-08 7:30 
GeneralRe: enduring object in Visual Studion Pin
bkelly1328-Jun-08 11:47
bkelly1328-Jun-08 11:47 
GeneralRe: enduring object in Visual Studion Pin
Mark Salsbery28-Jun-08 12:19
Mark Salsbery28-Jun-08 12:19 
GeneralRe: enduring object in Visual Studion Pin
bkelly1329-Jun-08 11:45
bkelly1329-Jun-08 11:45 
GeneralRe: enduring object in Visual Studion Pin
Mark Salsbery29-Jun-08 12:02
Mark Salsbery29-Jun-08 12:02 
QuestionIt makes me crazy.. help me plz. Pin
FR2ESOD28-Jun-08 6:32
FR2ESOD28-Jun-08 6:32 
Hello friends~

I have some questions about MFC.

During I wrote the code, the error was occuring about this.
I use Visual studio 2005. I found many imformation. It's not occur at Visual studio 6.0.
And I use UNICODE.
Plz, help me. I didn't resolve this for 1 hour.
I found MSDN, and Search many sites, but I didn't resolve.
It doesn't not work.

fp = fopen(pDlg.GetPathName(), _T("r"));
fp = fopen(pDlg.GetPathName(), _T("rb"));

//////////////////////////////////////////
FILE *fp;
fp = fopen(pDlg.GetPathName(), "r");
//////////////////////////////////////////
FILE *fp;
fp = fopen(pDlg.GetPathName(), "w");
//////////////////////////////////////////


------ Build started: Project: MFC_4_2, Configuration: Debug Win32 ------
Compiling...
MFC_4_2Dlg.cpp
d:\data\programing\c++\sc\mfc\mfc_4_2\mfc_4_2dlg.cpp(238) : error C2664: 'fopen' : cannot convert parameter 1 from 'CString' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
d:\data\programing\c++\sc\mfc\mfc_4_2\mfc_4_2dlg.cpp(261) : error C2664: 'fopen' : cannot convert parameter 1 from 'CString' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Build log was saved at "file://d:\Data\Programing\C++\sc\MFC\MFC_4_2\Debug\BuildLog.htm"
MFC_4_2 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
AnswerRe: It makes me crazy.. help me plz. Pin
CPallini28-Jun-08 7:24
mveCPallini28-Jun-08 7:24 
GeneralRe: It makes me crazy.. help me plz. Pin
FR2ESOD28-Jun-08 13:21
FR2ESOD28-Jun-08 13:21 
AnswerRe: It makes me crazy.. help me plz. Pin
Ștefan-Mihai MOGA29-Jun-08 5:04
professionalȘtefan-Mihai MOGA29-Jun-08 5:04 
GeneralRe: It makes me crazy.. help me plz. Pin
FR2ESOD29-Jun-08 6:12
FR2ESOD29-Jun-08 6:12 
QuestionCaptuve encode and stream over a network Pin
Ethemind28-Jun-08 6:19
Ethemind28-Jun-08 6:19 
AnswerRe: Captuve encode and stream over a network Pin
Mark Salsbery28-Jun-08 7:44
Mark Salsbery28-Jun-08 7:44 
QuestionEvent Handling for Dynamically created ListBox Pin
chetanjoshi928-Jun-08 1:09
chetanjoshi928-Jun-08 1:09 
AnswerRe: Event Handling for Dynamically created ListBox Pin
MANISH RASTOGI28-Jun-08 2:11
MANISH RASTOGI28-Jun-08 2:11 
GeneralRe: Event Handling for Dynamically created ListBox Pin
chetanjoshi928-Jun-08 2:34
chetanjoshi928-Jun-08 2:34 
AnswerRe: Event Handling for Dynamically created ListBox Pin
Karthik Kalyanasundaram28-Jun-08 5:58
Karthik Kalyanasundaram28-Jun-08 5:58 
AnswerRe: Event Handling for Dynamically created ListBox Pin
Hamid_RT30-Jun-08 18:56
Hamid_RT30-Jun-08 18:56 
QuestionIncreasing font size of text in static text box Pin
VCProgrammer28-Jun-08 0:29
VCProgrammer28-Jun-08 0:29 
AnswerRe: Increasing font size of text in static text box Pin
leonigah28-Jun-08 2:16
leonigah28-Jun-08 2:16 
AnswerRe: Increasing font size of text in static text box Pin
Ștefan-Mihai MOGA28-Jun-08 3:36
professionalȘtefan-Mihai MOGA28-Jun-08 3:36 
AnswerRe: Increasing font size of text in static text box [modified] Pin
Karthik Kalyanasundaram28-Jun-08 6:04
Karthik Kalyanasundaram28-Jun-08 6:04 
AnswerRe: Increasing font size of text in static text box Pin
Hamid_RT30-Jun-08 18:54
Hamid_RT30-Jun-08 18:54 
Questionhow to return variable to VB.NET Pin
boyindie27-Jun-08 23:18
boyindie27-Jun-08 23:18 

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.