Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
CFile and CString Posted by Shark on 29 Feb 2000 at 3:16 PM
Help. I'm trying to create a simple Dialog based app where you can select some check boxes and what not, and then hit "Apply" and a batch file is created.<br>
<br>
Simple enough - except that I'm new to this thing. I'm writing it in Visual Studio using the MFC wizard and some books.<br>
<br>
But I can't seem to get the CString to work with the write function of the CFile.<br>
<br>
Why? and is there a better way to do this?<br>
<br>
thanks for any help!


Edit Report
Re: CFile and CString Posted by sks on 1 Mar 2000 at 12:48 AM
check CString::operator LPCTSTR in MSDN<br>



Edit Report
Re: Re: CFile and CString Posted by Shark on 1 Mar 2000 at 9:31 AM
: check CString::operator LPCTSTR in MSDN<br>
: <br>
: <br>
<br>
Turns out that my sizeof() command that I was using to return the size of the string in the Write() function was not working like I thought.<br>
<br>
that's why I was getting some truncated lines and thinking the CString was off. <br>
<br>
Thanks!<br>
<br>



Report
Re: CFile and CString Posted by opcode on 22 Oct 2009 at 9:02 PM
Here is a link you can learn how to use CString

Using CString



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.