Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog Keyboard Events Pin
Joel Holdsworth10-Aug-04 22:14
Joel Holdsworth10-Aug-04 22:14 
GeneralRe: Dialog Keyboard Events Pin
Johan Rosengren11-Aug-04 6:44
Johan Rosengren11-Aug-04 6:44 
GeneralVisual C++ .net and Word 2003 automation Pin
tiziacaia10-Aug-04 21:57
tiziacaia10-Aug-04 21:57 
GeneralRe: Visual C++ .net and Word 2003 automation Pin
Steve Thresher11-Aug-04 3:04
Steve Thresher11-Aug-04 3:04 
GeneralRe: Visual C++ .net and Word 2003 automation Pin
tiziacaia11-Aug-04 4:12
tiziacaia11-Aug-04 4:12 
GeneralRe: Visual C++ .net and Word 2003 automation Pin
Steve Thresher11-Aug-04 9:32
Steve Thresher11-Aug-04 9:32 
GeneralRe: Visual C++ .net and Word 2003 automation Pin
tiziacaia11-Aug-04 18:06
tiziacaia11-Aug-04 18:06 
GeneralRe: Visual C++ .net and Word 2003 automation Pin
Steve Thresher12-Aug-04 4:36
Steve Thresher12-Aug-04 4:36 
The article I suggested to you contains sample code to be used with visual studio 6 and I'm assuming you have VS.NET 2002 or 2003. You can still use the sample code with just some minor modifications.

To start with the 'Add Class' wizard generates a header file for each class rather than one file for the whole type library. This means you need to add an include statement for each class you use.

Next the class names have changed. What was _Application in Word2000 is now CApplication in Word2003 likewise _Documents has changed to CDocuments and _Document has changed to CDocument0. If you look at the header file names the class wizard adds to your project you can work it out.

Finally the function names have changed. For instance GetActiveDocument() has changed to get_ActiveDocument() and SetVisible() has changed to put_Visible(). In general the functions are now called get_'property name' to retrieve the value of a property or put_'property name' to set the value of a property.

If you would like a very basic VS.NET 2003 MFC dialog project that generates a word document I would be happy to send one to you.

Systems AXIS Ltd - Software for Business ...
GeneralRe: Visual C++ .net and Word 2003 automation Pin
tiziacaia16-Aug-04 8:20
tiziacaia16-Aug-04 8:20 
GeneralRe: Visual C++ .net and Word 2003 automation Pin
tiziacaia18-Aug-04 7:17
tiziacaia18-Aug-04 7:17 
GeneralRe: Visual C++ .net and Word 2003 automation Pin
Steve Thresher18-Aug-04 11:00
Steve Thresher18-Aug-04 11:00 
GeneralRe: Visual C++ .net and Word 2003 automation Pin
tiziacaia18-Aug-04 18:27
tiziacaia18-Aug-04 18:27 
Questionhow to retrieve llist data from CListCtrl::OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult) Pin
zecodela10-Aug-04 20:50
zecodela10-Aug-04 20:50 
AnswerRe: how to retrieve llist data from CListCtrl::OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult) Pin
Aamir Butt10-Aug-04 21:36
Aamir Butt10-Aug-04 21:36 
GeneralRe: how to retrieve llist data from CListCtrl::OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult) Pin
Dudi Avramov10-Aug-04 22:48
Dudi Avramov10-Aug-04 22:48 
GeneralRe: how to retrieve llist data from CListCtrl::OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult) Pin
zecodela11-Aug-04 0:32
zecodela11-Aug-04 0:32 
Generalpublic data members Pin
elephantstar10-Aug-04 20:34
elephantstar10-Aug-04 20:34 
QuestionIs User Active ? Pin
Amarelia10-Aug-04 19:47
Amarelia10-Aug-04 19:47 
AnswerRe: Is User Active ? Pin
Antony M Kancidrowski11-Aug-04 0:07
Antony M Kancidrowski11-Aug-04 0:07 
AnswerRe: Is User Active ? Pin
Antony M Kancidrowski12-Aug-04 7:48
Antony M Kancidrowski12-Aug-04 7:48 
Generalplease show me some example of CBrush::CreateBrushIndirect() Pin
learnvc10-Aug-04 19:47
learnvc10-Aug-04 19:47 
Generalvectors and assert Pin
Tyrus18210-Aug-04 19:41
Tyrus18210-Aug-04 19:41 
GeneralRe: vectors and assert Pin
V.10-Aug-04 20:43
professionalV.10-Aug-04 20:43 
GeneralRe: vectors and assert Pin
Dudi Avramov10-Aug-04 22:53
Dudi Avramov10-Aug-04 22:53 
GeneralRe: vectors and assert Pin
Mike Beckerleg10-Aug-04 22:59
Mike Beckerleg10-Aug-04 22:59 

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.