Click here to Skip to main content
15,905,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionRe: File operation problem Pin
David Crow10-May-07 1:46
David Crow10-May-07 1:46 
Questionmalloc and strings Pin
DarkWeaver545510-May-07 0:15
DarkWeaver545510-May-07 0:15 
AnswerRe: malloc and strings Pin
BadJerry10-May-07 0:50
BadJerry10-May-07 0:50 
GeneralRe: malloc and strings Pin
DarkWeaver545510-May-07 2:33
DarkWeaver545510-May-07 2:33 
QuestionRe: malloc and strings Pin
David Crow10-May-07 1:54
David Crow10-May-07 1:54 
QuestionRe: malloc and strings Pin
DarkWeaver545510-May-07 2:16
DarkWeaver545510-May-07 2:16 
AnswerRe: malloc and strings Pin
David Crow10-May-07 2:21
David Crow10-May-07 2:21 
GeneralRe: malloc and strings Pin
DarkWeaver545510-May-07 2:37
DarkWeaver545510-May-07 2:37 
QuestionGif image Pin
prathuraj10-May-07 0:14
prathuraj10-May-07 0:14 
AnswerRe: Gif image Pin
Hamid_RT10-May-07 2:14
Hamid_RT10-May-07 2:14 
GeneralRe: Gif image Pin
prathuraj10-May-07 5:15
prathuraj10-May-07 5:15 
GeneralRe: Gif image Pin
Hamid_RT10-May-07 6:52
Hamid_RT10-May-07 6:52 
AnswerRe: Gif image Pin
ThatsAlok16-May-07 21:16
ThatsAlok16-May-07 21:16 
Questiondata problem Pin
p_10-May-07 0:06
p_10-May-07 0:06 
Questionmaking windows service with wxwidget Pin
seneralex9-May-07 23:46
seneralex9-May-07 23:46 
AnswerRe: making windows service with wxwidget Pin
ThatsAlok16-May-07 21:15
ThatsAlok16-May-07 21:15 

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.