Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Server 2003 SP1 Pin
smitty015725-Jun-09 11:29
smitty015725-Jun-09 11:29 
Questionhow to convert bstr to char[256] Pin
ashish8patil24-Jun-09 22:04
ashish8patil24-Jun-09 22:04 
AnswerRe: how to convert bstr to char[256] Pin
Rajesh R Subramanian24-Jun-09 22:13
professionalRajesh R Subramanian24-Jun-09 22:13 
GeneralRe: how to convert bstr to char[256] Pin
ashish8patil24-Jun-09 22:27
ashish8patil24-Jun-09 22:27 
AnswerRe: how to convert bstr to char[256] Pin
CPallini24-Jun-09 22:19
mveCPallini24-Jun-09 22:19 
GeneralRe: how to convert bstr to char[256] Pin
ashish8patil24-Jun-09 22:20
ashish8patil24-Jun-09 22:20 
Questionwua api help Pin
ashish8patil24-Jun-09 20:28
ashish8patil24-Jun-09 20:28 
QuestionMTOM without .Net framework how ? Pin
ERLN24-Jun-09 19:58
ERLN24-Jun-09 19:58 
AnswerRe: MTOM without .Net framework how ? Pin
Stuart Dootson24-Jun-09 22:35
professionalStuart Dootson24-Jun-09 22:35 
Questionhmm... Now why did this work? Pin
UserNameless24-Jun-09 19:52
UserNameless24-Jun-09 19:52 
AnswerRe: hmm... Now why did this work? Pin
Rajesh R Subramanian24-Jun-09 20:19
professionalRajesh R Subramanian24-Jun-09 20:19 
GeneralRe: hmm... Now why did this work? Pin
UserNameless24-Jun-09 20:34
UserNameless24-Jun-09 20:34 
GeneralRe: hmm... Now why did this work? Pin
Rajesh R Subramanian24-Jun-09 21:01
professionalRajesh R Subramanian24-Jun-09 21:01 
GeneralRe: hmm... Now why did this work? Pin
UserNameless24-Jun-09 21:24
UserNameless24-Jun-09 21:24 
GeneralRe: hmm... Now why did this work? Pin
Rajesh R Subramanian24-Jun-09 22:03
professionalRajesh R Subramanian24-Jun-09 22:03 
sadman89 wrote:
however I had to do some operations like name.append(".txt" which don't seem to be working if I declare name as a CString variable.


Append works perfectly. You are most probably doing something wrong. (again, unless I see your code...)

You might as well want to look at the CString::operator+, just in case you didn't know, you could do this:
<br />
CString szStr(_T("Hello, "));<br />
szStr += _T("world!");



sadman89 wrote:
CString fPath = NULL;
CString fName = NULL;


This kind of initialization is not really needed.

Your code works perfectly on my machine. Setting of the initial directory and the title of the open dialog seem to have no problem at all. I don't see what could have gone wrong.

I'm assuming you have *do have* a C drive. Big Grin | :-D


It is a crappy thing, but it's life -^ Carlo Pallini

GeneralRe: hmm... Now why did this work? Pin
UserNameless24-Jun-09 22:44
UserNameless24-Jun-09 22:44 
QuestionRe: hmm... Now why did this work? Pin
David Crow25-Jun-09 4:05
David Crow25-Jun-09 4:05 
QuestionExecuting external DOS command with output redirecting to file Pin
Rajesh_Parameswaran24-Jun-09 19:44
Rajesh_Parameswaran24-Jun-09 19:44 
AnswerRe: Executing external DOS command with output redirecting to file Pin
Stuart Dootson24-Jun-09 22:30
professionalStuart Dootson24-Jun-09 22:30 
GeneralRe: Executing external DOS command with output redirecting to file Pin
Rajesh_Parameswaran24-Jun-09 23:25
Rajesh_Parameswaran24-Jun-09 23:25 
GeneralRe: Executing external DOS command with output redirecting to file Pin
Stuart Dootson24-Jun-09 23:38
professionalStuart Dootson24-Jun-09 23:38 
QuestionRe: Executing external DOS command with output redirecting to file Pin
David Crow25-Jun-09 4:12
David Crow25-Jun-09 4:12 
AnswerRe: Executing external DOS command with output redirecting to file Pin
Rajesh_Parameswaran25-Jun-09 23:31
Rajesh_Parameswaran25-Jun-09 23:31 
QuestionIs it Possible to Create Bad sectors on hard disks?? Pin
lek25824-Jun-09 19:06
lek25824-Jun-09 19:06 
AnswerRe: Is it Possible to Create Bad sectors on hard disks?? Pin
Hamid_RT24-Jun-09 19:15
Hamid_RT24-Jun-09 19: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.