Click here to Skip to main content
16,017,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RegisterClassEx and CreateWindowEx fails.. Pin
gothic_coder12-Nov-08 19:10
gothic_coder12-Nov-08 19:10 
QuestionCoCreateInstance Problem Pin
john563212-Nov-08 2:10
john563212-Nov-08 2:10 
AnswerRe: CoCreateInstance Problem Pin
CPallini12-Nov-08 2:27
mveCPallini12-Nov-08 2:27 
AnswerRe: CoCreateInstance Problem Pin
Roger Stoltz12-Nov-08 2:32
Roger Stoltz12-Nov-08 2:32 
GeneralRe: CoCreateInstance Problem Pin
john563212-Nov-08 6:04
john563212-Nov-08 6:04 
AnswerRe: CoCreateInstance Problem Pin
Roger Stoltz12-Nov-08 6:29
Roger Stoltz12-Nov-08 6:29 
GeneralRe: CoCreateInstance Problem Pin
john563213-Nov-08 17:42
john563213-Nov-08 17:42 
AnswerRe: CoCreateInstance Problem Pin
Roger Stoltz13-Nov-08 22:34
Roger Stoltz13-Nov-08 22:34 
I suppose you did not read the article I linked to in my previous post...

Well, let's try another one: http://support.microsoft.com/kb/178749/[^]
The article describes how to create a dialog based MFC application with a "run" button. When the button is clicked it starts Excel.
To make it start Word instead of Excel, you import the Word object library corresponding to your Word version instead of the Excel library. You will find the name of the Word object library in the table in the article. When you import the library a header file will be generated which you are supposed to include instead of "Excel8.h".
You also have to alter the ProgID from "Excel.Application" to "Word.Application".

Build and run the application.
When you click the "run" button, Word will start and you're up and running.
In order to open a document and read some of its contents, you will find appropriate interface methods to call in the generated header file(s).


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


QuestionStrange Issue Pin
Sameer Naik12-Nov-08 2:02
Sameer Naik12-Nov-08 2:02 
AnswerRe: Strange Issue Pin
CPallini12-Nov-08 2:21
mveCPallini12-Nov-08 2:21 
QuestionExe problem in different machine Pin
NewVC++12-Nov-08 1:12
NewVC++12-Nov-08 1:12 
QuestionRe: Exe problem in different machine Pin
Rajesh R Subramanian12-Nov-08 1:42
professionalRajesh R Subramanian12-Nov-08 1:42 
JokeRe: Exe problem in different machine Pin
CPallini12-Nov-08 1:45
mveCPallini12-Nov-08 1:45 
AnswerRe: Exe problem in different machine Pin
NewVC++12-Nov-08 1:46
NewVC++12-Nov-08 1:46 
GeneralRe: Exe problem in different machine Pin
Rajesh R Subramanian12-Nov-08 1:56
professionalRajesh R Subramanian12-Nov-08 1:56 
JokeRe: Exe problem in different machine Pin
CPallini12-Nov-08 2:02
mveCPallini12-Nov-08 2:02 
GeneralRe: Exe problem in different machine Pin
Rajesh R Subramanian12-Nov-08 2:05
professionalRajesh R Subramanian12-Nov-08 2:05 
AnswerRe: Exe problem in different machine Pin
CPallini12-Nov-08 1:44
mveCPallini12-Nov-08 1:44 
JokeRe: Exe problem in different machine Pin
sashoalm12-Nov-08 2:34
sashoalm12-Nov-08 2:34 
AnswerRe: Exe problem in different machine Pin
Hamid_RT12-Nov-08 5:54
Hamid_RT12-Nov-08 5:54 
QuestionAudio File Bookmarking and Highlighting with Text Links Pin
srisant12-Nov-08 0:55
srisant12-Nov-08 0:55 
RantWhat a retard Pin
led mike12-Nov-08 4:17
led mike12-Nov-08 4:17 
GeneralRe: What a retard Pin
srisant12-Nov-08 18:11
srisant12-Nov-08 18:11 
GeneralRe: What a retard Pin
led mike13-Nov-08 6:59
led mike13-Nov-08 6:59 
Questionwin32 console application using MFC Pin
vemasani12-Nov-08 0:45
vemasani12-Nov-08 0:45 

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.