Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: catching windows... Pin
David Crow2-May-05 7:30
David Crow2-May-05 7:30 
GeneralRetrieve HTML as string behind proxy Pin
soapergem12-May-05 5:37
soapergem12-May-05 5:37 
GeneralRe: Retrieve HTML as string behind proxy Pin
Ravi Bhavnani2-May-05 7:43
professionalRavi Bhavnani2-May-05 7:43 
GeneralProblem with DirectDraw Pin
SuperTank2-May-05 5:35
SuperTank2-May-05 5:35 
GeneralProblem solved Pin
SuperTank2-May-05 6:21
SuperTank2-May-05 6:21 
QuestionHow to execute a EXE remotely Pin
Killer32-May-05 4:23
Killer32-May-05 4:23 
AnswerRe: How to execute a EXE remotely Pin
ThomasABBE2-May-05 12:13
ThomasABBE2-May-05 12:13 
GeneralC++ and Word2003 Pin
perle12-May-05 4:15
perle12-May-05 4:15 
Who can help ?
I must change the document template for hunderts of Word Documents
Here my code:

	_WordDocument		doc;<br />
	WordDocuments		docs;<br />
	WordTemplate		doc_template;<br />
	COleVariant			vtOptional((long)DISP_E_PARAMNOTFOUND,VT_ERROR);<br />
	COleVariant			vtFalse((short)FALSE);<br />
	COleVariant			vtTrue((short)TRUE);<br />
	CString				str;<br />
	_Dialogs			dia;<br />
	_Dialog				di;<br />
	LONG				lver;<br />
	WordTemplate			tem;<br />
<br />
	app.SetVisible(TRUE);<br />
		<br />
	docs = app.GetDocuments();<br />
	doc = docs.Open(COleVariant(csFileName), <br />
					vtOptional, vtOptional, vtOptional, vtOptional, vtOptional,<br />
					vtOptional, vtOptional, vtOptional, vtOptional, vtOptional,<br />
					vtOptional, vtOptional, vtOptional, vtOptional, vtOptional);<br />
		<br />
	//doc_template.AttachDispatch(doc.GetAttachedTemplate().pdispVal);<br />
	dia = app.GetDialogs();<br />
	di = dia.Item(87); // wdDialogToolsTemplates<br />
	//di.Show(vtOptional);<br />
<br />
	di.GetProperty(0, 0???, &str); ???? 


all works fine, but I can't access the name of the template.
Any Ideas.
Thx
Generalbinary file i/o Pin
triplefour2-May-05 3:51
triplefour2-May-05 3:51 
GeneralRe: binary file i/o Pin
Anonymous2-May-05 4:28
Anonymous2-May-05 4:28 
GeneralRemote Shutdown using Named Pipe Pin
Girish6012-May-05 3:19
Girish6012-May-05 3:19 
QuestionHow to run an application when clicking &quot;Shut Down&quot; from start menu? Pin
jahfer2-May-05 3:08
jahfer2-May-05 3:08 
AnswerRe: How to run an application when clicking "Shut Down" from start menu? Pin
David Crow2-May-05 7:32
David Crow2-May-05 7:32 
GeneralRe: How to run an application when clicking &quot;Shut Down&quot; from start menu? Pin
r i s h a b h s3-May-05 0:05
r i s h a b h s3-May-05 0:05 
GeneralRe: How to run an application when clicking &quot;Shut Down&quot; from start menu? Pin
David Crow3-May-05 3:55
David Crow3-May-05 3:55 
GeneralActiveX (Formula 1) Grid , Cell value (date ) Problem Pin
zahid_ash2-May-05 2:29
zahid_ash2-May-05 2:29 
GeneralAccelerator doesnt work Pin
DKT_2-May-05 2:09
DKT_2-May-05 2:09 
GeneralC++ Help Pin
Rob_BCFC2-May-05 2:07
sussRob_BCFC2-May-05 2:07 
GeneralRe: C++ Help Pin
Rob_BCFC2-May-05 2:08
sussRob_BCFC2-May-05 2:08 
GeneralRe: C++ Help Pin
David Crow2-May-05 2:10
David Crow2-May-05 2:10 
GeneralRe: C++ Help Pin
Rob_BCFC2-May-05 2:14
sussRob_BCFC2-May-05 2:14 
GeneralRe: C++ Help Pin
Cedric Moonen2-May-05 2:20
Cedric Moonen2-May-05 2:20 
GeneralRe: C++ Help Pin
Rob_BCFC2-May-05 2:25
sussRob_BCFC2-May-05 2:25 
GeneralRe: C++ Help Pin
Cedric Moonen2-May-05 2:35
Cedric Moonen2-May-05 2:35 
GeneralRe: C++ Help Pin
V.2-May-05 3:32
professionalV.2-May-05 3:32 

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.