Click here to Skip to main content
15,920,666 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ?? displaying data Pin
Joan M1-Jul-03 5:49
professionalJoan M1-Jul-03 5:49 
GeneralRe: Window styles Pin
Ravi Bhavnani1-Jul-03 3:15
professionalRavi Bhavnani1-Jul-03 3:15 
GeneralAllocating memory for a multidimensionnal array Pin
Jerome Conus1-Jul-03 1:54
Jerome Conus1-Jul-03 1:54 
GeneralRe: Allocating memory for a multidimensionnal array Pin
Ryan Binns1-Jul-03 2:10
Ryan Binns1-Jul-03 2:10 
GeneralRe: Allocating memory for a multidimensionnal array Pin
Jerome Conus1-Jul-03 2:12
Jerome Conus1-Jul-03 2:12 
GeneralRe: Allocating memory for a multidimensionnal array Pin
Ryan Binns1-Jul-03 2:24
Ryan Binns1-Jul-03 2:24 
General.doc to .txt Pin
martin_j1-Jul-03 1:54
martin_j1-Jul-03 1:54 
GeneralRe: .doc to .txt Pin
David Crow1-Jul-03 3:20
David Crow1-Jul-03 3:20 
Here's one way using Word Automation:

CString         strFileName;
_Application    app;
Documents       docs;
_Document       doc;
COleVariant     vtOptional((long) DISP_E_PARAMNOTFOUND, VT_ERROR),
                vtFalse((short) FALSE),
                vtTrue((short) TRUE),
                vtDoc((short) 0),
                vtText((short) 2),
                vtRtf((short) 6),
                vtHtml((short) 8);


if (app.CreateDispatch("Word.Application") == TRUE)
{
    docs = app.GetDocuments();

    m_ebDocName.GetWindowText(strFileName);

    doc = docs.Open(COleVariant(strFileName), vtOptional, vtOptional, vtOptional, vtOptional, vtOptional, vtOptional, vtOptional, vtOptional, vtOptional, vtOptional, vtOptional);

    strFileName.Replace(".doc", ".txt");

    doc.SaveAs(COleVariant(strFileName),
        vtText,
        vtOptional,
        vtOptional,
        vtOptional,
        vtOptional,
        vtOptional,
        vtOptional,
        vtOptional,
        vtOptional,
        vtOptional);

    docs.Close(vtFalse, vtOptional, vtOptional);

    app.Quit(vtOptional, vtOptional, vtOptional);
}

GeneralRe: .doc to .txt Pin
martin_j1-Jul-03 3:43
martin_j1-Jul-03 3:43 
GeneralAbout PINT Pin
FlyingDancer1-Jul-03 1:51
FlyingDancer1-Jul-03 1:51 
GeneralRe: About PINT Pin
David Crow1-Jul-03 3:21
David Crow1-Jul-03 3:21 
GeneralRe: About PINT Pin
basementman1-Jul-03 4:57
basementman1-Jul-03 4:57 
GeneralRe: About PINT Pin
FlyingDancer1-Jul-03 15:16
FlyingDancer1-Jul-03 15:16 
Generalconvert SYSTEMTIME to string Pin
YaronNir1-Jul-03 1:45
YaronNir1-Jul-03 1:45 
GeneralRe: convert SYSTEMTIME to string Pin
Michael P Butler1-Jul-03 1:51
Michael P Butler1-Jul-03 1:51 
GeneralRe: convert SYSTEMTIME to string Pin
YaronNir1-Jul-03 2:00
YaronNir1-Jul-03 2:00 
GeneralRe: convert SYSTEMTIME to string Pin
User 66581-Jul-03 2:08
User 66581-Jul-03 2:08 
GeneralRe: convert SYSTEMTIME to string Pin
YaronNir1-Jul-03 2:13
YaronNir1-Jul-03 2:13 
GeneralRe: convert SYSTEMTIME to string Pin
User 66581-Jul-03 2:17
User 66581-Jul-03 2:17 
GeneralRe: convert SYSTEMTIME to string Pin
YaronNir1-Jul-03 2:59
YaronNir1-Jul-03 2:59 
GeneralRe: convert SYSTEMTIME to string Pin
Joan M1-Jul-03 3:13
professionalJoan M1-Jul-03 3:13 
GeneralRe: convert SYSTEMTIME to string Pin
David Crow1-Jul-03 3:27
David Crow1-Jul-03 3:27 
GeneralRe: convert SYSTEMTIME to string Pin
basementman1-Jul-03 5:02
basementman1-Jul-03 5:02 
General24Bit BITMAP Pin
_crs_1-Jul-03 1:38
_crs_1-Jul-03 1:38 
GeneralRe: 24Bit BITMAP Pin
basementman1-Jul-03 5:13
basementman1-Jul-03 5:13 

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.