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

C / C++ / MFC

 
GeneralRe: How to convert .txt(ASCII) to MS Word file Pin
CPallini9-Jan-08 0:45
mveCPallini9-Jan-08 0:45 
GeneralRe: How to convert .txt(ASCII) to MS Word file Pin
Rajesh R Subramanian9-Jan-08 0:47
professionalRajesh R Subramanian9-Jan-08 0:47 
QuestionRe: How to convert .txt(ASCII) to MS Word file Pin
CPallini9-Jan-08 0:55
mveCPallini9-Jan-08 0:55 
GeneralRe: How to convert .txt(ASCII) to MS Word file Pin
Rajesh R Subramanian9-Jan-08 21:29
professionalRajesh R Subramanian9-Jan-08 21:29 
GeneralRe: How to convert .txt(ASCII) to MS Word file [modified] Pin
CPallini9-Jan-08 21:41
mveCPallini9-Jan-08 21:41 
GeneralRe: How to convert .txt(ASCII) to MS Word file Pin
Rajesh R Subramanian9-Jan-08 21:51
professionalRajesh R Subramanian9-Jan-08 21:51 
GeneralRe: How to convert .txt(ASCII) to MS Word file Pin
CPallini9-Jan-08 22:23
mveCPallini9-Jan-08 22:23 
GeneralRe: How to convert .txt(ASCII) to MS Word file Pin
David Crow9-Jan-08 3:03
David Crow9-Jan-08 3:03 
Can you use Word Automation like:

COleVariant     vtOptional((long) DISP_E_PARAMNOTFOUND, VT_ERROR), 
                vtDoc((short) 0);
 
if (app.CreateDispatch("Word.Application") == TRUE)
{
    docs = app.GetDocuments();
 
    CString strFileName = "myfile.txt";
 
    doc = docs.Open(COleVariant(strFileName), 
                    vtOptional, vtOptional, vtOptional, 
                    vtOptional, vtOptional, vtOptional, 
                    vtOptional, vtOptional, vtOptional, 
                    vtOptional, vtOptional);
 
    strFileName.Replace(".txt", ".doc");
 
    doc.SaveAs(COleVariant(strFileName), vtDoc, 
               vtOptional, vtOptional, vtOptional,
               vtOptional, vtOptional, vtOptional,  
               vtOptional, vtOptional, vtOptional);
}


"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


QuestionHow to find wether a component is registered in regedit or not Pin
bhogavalli suresh8-Jan-08 23:10
bhogavalli suresh8-Jan-08 23:10 
AnswerRe: How to find wether a component is registered in regedit or not [modified] Pin
CPallini8-Jan-08 23:17
mveCPallini8-Jan-08 23:17 
AnswerRe: How to find wether a component is registered in regedit or not Pin
David Crow9-Jan-08 3:06
David Crow9-Jan-08 3:06 
GeneralFiles listed in windows MRU using VC++ Pin
Nitheesh George8-Jan-08 22:42
Nitheesh George8-Jan-08 22:42 
GeneralRe: Files listed in windows MRU using VC++ Pin
Rajesh R Subramanian8-Jan-08 23:13
professionalRajesh R Subramanian8-Jan-08 23:13 
Questionenabling and disabling ethernet connection using c++ Pin
tassadaque8-Jan-08 22:36
tassadaque8-Jan-08 22:36 
GeneralRe: enabling and disabling ethernet connection using c++ Pin
Maxwell Chen8-Jan-08 23:24
Maxwell Chen8-Jan-08 23:24 
GeneralRe: enabling and disabling ethernet connection using c++ Pin
Vaibhav Gade17-Jan-08 22:49
Vaibhav Gade17-Jan-08 22:49 
QuestionRe: enabling and disabling ethernet connection using c++ Pin
Vaibhav Gade20-Jan-08 21:34
Vaibhav Gade20-Jan-08 21:34 
GeneralRe: enabling and disabling ethernet connection using c++ Pin
David Crow9-Jan-08 3:40
David Crow9-Jan-08 3:40 
QuestionOpen USB connection? Pin
bosfan8-Jan-08 22:33
bosfan8-Jan-08 22:33 
AnswerRe: Open USB connection? Pin
Cedric Moonen8-Jan-08 23:20
Cedric Moonen8-Jan-08 23:20 
Questionhow to make the button in mfc invisible/visible at run time Pin
Girish Kumar8-Jan-08 22:32
Girish Kumar8-Jan-08 22:32 
AnswerRe: how to make the button in mfc invisible/visible at run time [modified] Pin
toxcct8-Jan-08 22:36
toxcct8-Jan-08 22:36 
GeneralRe: how to make the button in mfc invisible/visible at run time Pin
prasad_som9-Jan-08 0:50
prasad_som9-Jan-08 0:50 
GeneralRe: how to make the button in mfc invisible/visible at run time Pin
CPallini9-Jan-08 1:00
mveCPallini9-Jan-08 1:00 
GeneralDialog application as dll Pin
Shivarudrayya H8-Jan-08 22:31
Shivarudrayya H8-Jan-08 22:31 

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.