|
-
November 10th, 2009, 10:48 AM
#5
Re: Problem on using VC++ 2008
1) Does GetNext() return a CString ? Maybe the streams do not understand how
to output a CString and it is using the void* conversion (basically, printing
out the address of the object). Try casting to LPCTSTR
Code:
sourcefile<< (LPCTSTR)parList.GetNext(Pos1)<< '\n';
2) Depending an compiler options, you might need to change to
wifstream (also why istream types if outputing ?).
3) If GetNext() does return a CString, it would make more sense to use the
CStdioFile class which can directly read/write Cstring objects.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|