Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Win32 API and FindWindow Pin
Mohsen Saad13-Mar-05 6:05
Mohsen Saad13-Mar-05 6:05 
GeneralRe: Win32 API and FindWindow Pin
David Crow14-Mar-05 5:59
David Crow14-Mar-05 5:59 
Generallinking of vc++ program to another vc++ prog Pin
mhay_nineteen@yahoo.com12-Mar-05 0:51
sussmhay_nineteen@yahoo.com12-Mar-05 0:51 
GeneralRe: linking of vc++ program to another vc++ prog Pin
deldeep12-Mar-05 1:17
deldeep12-Mar-05 1:17 
Questiondll problem? Pin
murali_utr11-Mar-05 23:26
murali_utr11-Mar-05 23:26 
AnswerRe: dll problem? Pin
YaronNir12-Mar-05 11:28
YaronNir12-Mar-05 11:28 
GeneralPlease help, i got problem with memory allocation Pin
Rassul Yunussov11-Mar-05 22:58
Rassul Yunussov11-Mar-05 22:58 
GeneralWorking with MS Word Pin
Zero_divide_111-Mar-05 20:44
Zero_divide_111-Mar-05 20:44 
First off, I would like to thank you for taking the time to see this problem. I'm sort of a n00b when it comes to using COM objects, and unfortunately the way I'm learning has a really steep learning curve. Basically, I am trying to create a program that writes to Word, and I'm having a bit of a problem passing objects to the COM objects that I instantiate - specifically the Range and Section objects. So let me order my questions:

1) How do I correctly create a new Range object so I can add it to a Section object?
2) How do I add the Range object to the Section? (According to the VBA documentation, the Sections collection object has an Add method that takes a Range object as its first argument [MFC specifies it as a VARIANT parameter type] and placement as a second argument).

Basically this is the way I see it, but I don't know how to do it:

1) Create new Range object.
2) Set information in Range object.
3) Add new Section using Sections.Add(new_range_obj, placement)

If anybody has any code that I can look at in an existing solution that interfaces with Word that would be awesome. I usually learn better by looking at code and seeing what it does anyways. Thanx!
Generaldiference between C++ and VC++ Pin
Anonymous11-Mar-05 19:42
Anonymous11-Mar-05 19:42 
GeneralRe: diference between C++ and VC++ Pin
Zero_divide_111-Mar-05 20:26
Zero_divide_111-Mar-05 20:26 
GeneralRe: diference between C++ and VC++ Pin
markkuk12-Mar-05 0:45
markkuk12-Mar-05 0:45 
GeneralRe: diference between C++ and VC++ Pin
deldeep12-Mar-05 2:59
deldeep12-Mar-05 2:59 
GeneralRe: diference between C++ and VC++ Pin
John R. Shaw12-Mar-05 13:46
John R. Shaw12-Mar-05 13:46 
GeneralaHelp with SSL through anuthenticating proxy in WinInet Pin
Nickmatic11-Mar-05 14:50
Nickmatic11-Mar-05 14:50 
Generalcritical error Pin
mpapeo11-Mar-05 13:00
mpapeo11-Mar-05 13:00 
GeneralRe: critical error Pin
John R. Shaw12-Mar-05 14:17
John R. Shaw12-Mar-05 14:17 
GeneralRe: critical error Pin
mpapeo13-Mar-05 11:16
mpapeo13-Mar-05 11:16 
GeneralRe: critical error Pin
John R. Shaw15-Mar-05 10:23
John R. Shaw15-Mar-05 10:23 
QuestionHow to check wheter a specified path is a dir? Pin
Member 1219625211-Mar-05 12:32
Member 1219625211-Mar-05 12:32 
AnswerRe: How to check wheter a specified path is a dir? Pin
PJ Arends11-Mar-05 12:41
professionalPJ Arends11-Mar-05 12:41 
AnswerRe: How to check wheter a specified path is a dir? Pin
Ravi Bhavnani11-Mar-05 14:42
professionalRavi Bhavnani11-Mar-05 14:42 
AnswerRe: How to check wheter a specified path is a dir? Pin
Michael Dunn11-Mar-05 15:15
sitebuilderMichael Dunn11-Mar-05 15:15 
GeneralGetting rights for OpenSCManager Pin
bepperso11-Mar-05 11:02
bepperso11-Mar-05 11:02 
Generaldisplay a html page which is in memory Pin
includeh1011-Mar-05 10:31
includeh1011-Mar-05 10:31 
GeneralRe: display a html page which is in memory Pin
Ravi Bhavnani11-Mar-05 10:55
professionalRavi Bhavnani11-Mar-05 10:55 

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.