Click here to Skip to main content
15,919,423 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionvector resize question Pin
followait16-Sep-08 3:53
followait16-Sep-08 3:53 
AnswerRe: vector resize question [modified] Pin
George L. Jackson16-Sep-08 7:08
George L. Jackson16-Sep-08 7:08 
GeneralRe: vector resize question Pin
followait16-Sep-08 14:26
followait16-Sep-08 14:26 
GeneralRe: vector resize question [modified] Pin
George L. Jackson17-Sep-08 3:07
George L. Jackson17-Sep-08 3:07 
QuestionSTL serializetion Pin
followait15-Sep-08 15:56
followait15-Sep-08 15:56 
AnswerRe: STL serializetion Pin
Stuart Dootson15-Sep-08 21:36
professionalStuart Dootson15-Sep-08 21:36 
GeneralRe: STL serializetion Pin
followait15-Sep-08 22:03
followait15-Sep-08 22:03 
QuestionProblems handling ATL Event from Microsoft Word Pin
kalukaley15-Sep-08 11:18
kalukaley15-Sep-08 11:18 
When this event is called a second time, the MS Word Document closes. Don't know why. Am I missing something obvious here? Also, I can't get the SaveAs dialog to pop-up.

I'm developing on XP SP2 (professional) / visual studio 2005 / word 2003

void __stdcall CP3AddIn::DocumentBeforeSave(IDispatchPtr ptr, VARIANT_BOOL* pvtSaveAsUI, VARIANT_BOOL* pvtCancel )
{
CString msg;
CComQIPtr<word::_document xmlns:word="#unknown"> spDoc(ptr);
ATLASSERT(spDoc);


if( savesAllowed > 0 )
{
*pvtSaveAsUI = VARIANT_TRUE;
*pvtCancel = VARIANT_FALSE;

savesAllowed--;

msg.Format( _T("You may save %s %d more %s."),
spDoc->Name.GetBSTR(),
savesAllowed,
( savesAllowed == 1 ) ? _T("time"): _T("times") );

MessageBox( 0, (LPCWSTR)msg, _T("EVENT: DocumentBeforeSave"), 0 );

}
else
{
*pvtCancel = VARIANT_TRUE;
*pvtSaveAsUI = VARIANT_FALSE;

MessageBox( 0, _T("You have either exceeded your save limit\n")
_T("or you are not authorized to save a copy of this document."),
_T("EVENT: DocumentBeforeSave"), MB_OK );
}

}
AnswerRe: Problems handling ATL Event from Microsoft Word Pin
Stuart Dootson15-Sep-08 21:44
professionalStuart Dootson15-Sep-08 21:44 
GeneralRe: Problems handling ATL Event from Microsoft Word Pin
kalukaley20-Sep-08 11:04
kalukaley20-Sep-08 11:04 
QuestionActiveX Control Resizing Pin
preeti sharma15-Sep-08 4:09
preeti sharma15-Sep-08 4:09 
QuestionSE_LMSHARE is failing if MS office 2007 Japanese IME is installed Pin
GnanaprakashJebaraj13-Sep-08 3:23
GnanaprakashJebaraj13-Sep-08 3:23 
QuestionHow to use ComboBox in ListView (for editing ListView) in WTL? Pin
smalti11-Sep-08 23:32
smalti11-Sep-08 23:32 
AnswerRe: How to use ComboBox in ListView (for editing ListView) in WTL? Pin
Amit Luniya25-Sep-08 22:18
Amit Luniya25-Sep-08 22:18 
AnswerRe: How to use ComboBox in ListView (for editing ListView) in WTL? Pin
Member 183477015-Oct-08 3:33
Member 183477015-Oct-08 3:33 
QuestionToolBar "affaire" Pin
Ritxi11-Sep-08 23:07
Ritxi11-Sep-08 23:07 
AnswerRe: ToolBar "affaire" Pin
Ritxi14-Sep-08 21:54
Ritxi14-Sep-08 21:54 
QuestionProblem with ATL IE plugin programming Pin
Robert Wang198310-Sep-08 5:19
Robert Wang198310-Sep-08 5:19 
Question[Message Deleted] Pin
arkiboys10-Sep-08 3:22
arkiboys10-Sep-08 3:22 
QuestionRe: PrintUIEntry Pin
led mike10-Sep-08 5:29
led mike10-Sep-08 5:29 
QuestionWindow.close() Close Dialog Box Pin
preeti sharma10-Sep-08 2:22
preeti sharma10-Sep-08 2:22 
QuestionHow to save/load a string in STL to/from a file? Pin
followait7-Sep-08 16:30
followait7-Sep-08 16:30 
AnswerRe: How to save/load a string in STL to/from a file? Pin
Stuart Dootson9-Sep-08 22:10
professionalStuart Dootson9-Sep-08 22:10 
GeneralRe: How to save/load a string in STL to/from a file? Pin
followait9-Sep-08 22:27
followait9-Sep-08 22:27 
GeneralRe: How to save/load a string in STL to/from a file? Pin
Stuart Dootson9-Sep-08 22:41
professionalStuart Dootson9-Sep-08 22:41 

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.