Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Show text underlined in CListCtrl? Pin
Hamid_RT10-May-07 2:40
Hamid_RT10-May-07 2:40 
QuestionHow to add My Application shortcut icon in Start-->All Programs Pin
AmarjeetSinghMatharu10-May-07 2:03
AmarjeetSinghMatharu10-May-07 2:03 
AnswerRe: How to add My Application shortcut icon in Start-->All Programs Pin
Hamid_RT10-May-07 2:17
Hamid_RT10-May-07 2:17 
AnswerRe: How to add My Application shortcut icon in Start-->All Programs Pin
Mark Salsbery10-May-07 8:44
Mark Salsbery10-May-07 8:44 
QuestionVC++ project file problem Pin
Software_Specialist10-May-07 1:57
Software_Specialist10-May-07 1:57 
Questionhow to execute the MS-DOS commands VC ++ Pin
srinivas retneni10-May-07 1:45
srinivas retneni10-May-07 1:45 
AnswerRe: how to execute the MS-DOS commands VC ++ Pin
David Crow10-May-07 1:47
David Crow10-May-07 1:47 
AnswerRe: how to execute the MS-DOS commands VC ++ Pin
Paresh Chitte10-May-07 2:39
Paresh Chitte10-May-07 2:39 
GeneralRe: how to execute the MS-DOS commands VC ++ Pin
srinivas retneni10-May-07 19:02
srinivas retneni10-May-07 19:02 
AnswerRe: how to execute the MS-DOS commands VC ++ Pin
ThatsAlok16-May-07 21:24
ThatsAlok16-May-07 21:24 
Questionplz solve this one Pin
p_10-May-07 1:38
p_10-May-07 1:38 
QuestionRe: plz solve this one Pin
David Crow10-May-07 1:44
David Crow10-May-07 1:44 
AnswerRe: plz solve this one Pin
ThatsAlok16-May-07 21:23
ThatsAlok16-May-07 21:23 
QuestionAccessing mainframe menu from a non-modal dialog box Pin
BadJerry10-May-07 0:42
BadJerry10-May-07 0:42 
AnswerRe: Accessing mainframe menu from a non-modal dialog box Pin
spsharma10-May-07 1:24
spsharma10-May-07 1:24 
GeneralRe: Accessing mainframe menu from a non-modal dialog box Pin
BadJerry10-May-07 1:28
BadJerry10-May-07 1:28 
GeneralRe: Accessing mainframe menu from a non-modal dialog box Pin
#realJSOP10-May-07 1:59
professional#realJSOP10-May-07 1:59 
GeneralRe: Accessing mainframe menu from a non-modal dialog box Pin
BadJerry10-May-07 2:04
BadJerry10-May-07 2:04 
GeneralRe: Accessing mainframe menu from a non-modal dialog box Pin
spsharma10-May-07 2:36
spsharma10-May-07 2:36 
GeneralRe: Accessing mainframe menu from a non-modal dialog box Pin
#realJSOP10-May-07 3:32
professional#realJSOP10-May-07 3:32 
GeneralRe: Accessing mainframe menu from a non-modal dialog box Pin
BadJerry10-May-07 4:02
BadJerry10-May-07 4:02 
GeneralRe: Accessing mainframe menu from a non-modal dialog box Pin
BadJerry10-May-07 5:35
BadJerry10-May-07 5:35 
AnswerThanks to everyone : solution! Pin
BadJerry10-May-07 5:34
BadJerry10-May-07 5:34 
QuestionFile operation problem Pin
sandeepkavade10-May-07 0:26
sandeepkavade10-May-07 0:26 
i am trying to give my XML parsing code UNICODE support. if UNICODE is not defined it works fine. but if i define it it gives some garbage values. (i am showing it in mag box) the problem is in the

dwFileRead = static_cast<dword>(fread(ptempXML, sizeof(TCHAR), dwFileSize, pfTempXMLBuf));
statement. what are the changes i have to make in the code. the file successfully comes in pfTempXMLBuf. but ptempXML shows garbage.



pfTempXMLBuf = _tfopen(tcsBufXMLFileName, _T("w+"));

m_pNode->Print(pfTempXMLBuf, 0);
fseek(pfTempXMLBuf,0, SEEK_SET);
dwFileSize = _filelength(fileno(pfTempXMLBuf ));
ptempXML = new TCHAR[dwFileSize + 1];
if(ptempXML)
{
memset(ptempXML, 0, dwFileSize); // Required otherwise ending char are junk.
fseek(pfTempXMLBuf,0, SEEK_SET);
dwFileRead = static_cast<dword>(fread(ptempXML, sizeof(TCHAR), dwFileSize, pfTempXMLBuf));
ptempXML[dwFileRead] = _T('\0'); // Required as the file size is most larger then the actual file contain read which appends junk at end.
rc = ptempXML;

delete []ptempXML;
}
AnswerRe: File operation problem Pin
BadJerry10-May-07 1:07
BadJerry10-May-07 1:07 

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.