Click here to Skip to main content
15,927,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ MFC multi dialog application - crash Pin
David Crow16-Nov-06 2:43
David Crow16-Nov-06 2:43 
GeneralRe: VC++ MFC multi dialog application - crash Pin
sdt2416-Nov-06 5:39
sdt2416-Nov-06 5:39 
QuestionRe: VC++ MFC multi dialog application - crash Pin
David Crow16-Nov-06 6:45
David Crow16-Nov-06 6:45 
AnswerRe: VC++ MFC multi dialog application - crash Pin
sdt2420-Nov-06 2:14
sdt2420-Nov-06 2:14 
QuestionodbcDataReader error Pin
priyank_ldce15-Nov-06 6:10
priyank_ldce15-Nov-06 6:10 
AnswerRe: odbcDataReader error Pin
Mark Salsbery15-Nov-06 6:56
Mark Salsbery15-Nov-06 6:56 
QuestionExcel Automation Using C++ #import Pin
Doug Knudson15-Nov-06 5:15
Doug Knudson15-Nov-06 5:15 
AnswerRe: Excel Automation Using C++ #import Pin
Roger Stoltz15-Nov-06 5:47
Roger Stoltz15-Nov-06 5:47 
Make sure you have an interface pointer to the sheet you think you're using.
Try and do something else such as selecting "A1" and write something to it.

The application object contains a collection of workbooks that contains a collection of worksheets and so on. You need to get the correct sheet.
Is msp_excel really an interface opinter to a worksheet? The name that implies a opinter to the application object makes me wonder...;)

It's been a while since I automated Excel, but I remember a lot of calls to functions such as GetActiveWorkbook(), GetActiveSheet().
A good thing is to explicitly make the application visible to the user; you might have a second instance of Excel running.


--
Roger


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

"No one remembers a coward!" - Jan Elfström 1998
"...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above

GeneralRe: Excel Automation Using C++ #import Pin
Doug Knudson15-Nov-06 6:39
Doug Knudson15-Nov-06 6:39 
GeneralRe: Excel Automation Using C++ #import Pin
Roger Stoltz15-Nov-06 6:57
Roger Stoltz15-Nov-06 6:57 
QuestionHow can we get size of the File.... Pin
Anamika200515-Nov-06 5:05
Anamika200515-Nov-06 5:05 
AnswerRe: How can we get size of the File.... Pin
VonHagNDaz15-Nov-06 6:22
VonHagNDaz15-Nov-06 6:22 
GeneralRe: How can we get size of the File.... Pin
Anamika200515-Nov-06 19:51
Anamika200515-Nov-06 19:51 
GeneralRe: How can we get size of the File.... Pin
Anamika200515-Nov-06 19:52
Anamika200515-Nov-06 19:52 
Questionarray of pointers Pin
thathvamsi15-Nov-06 4:46
thathvamsi15-Nov-06 4:46 
AnswerRe: array of pointers Pin
led mike15-Nov-06 5:17
led mike15-Nov-06 5:17 
GeneralRe: array of pointers Pin
thathvamsi15-Nov-06 14:37
thathvamsi15-Nov-06 14:37 
GeneralRe: array of pointers Pin
led mike16-Nov-06 8:34
led mike16-Nov-06 8:34 
QuestionCOM Dialog Compile Error Pin
jon_fallon15-Nov-06 4:44
jon_fallon15-Nov-06 4:44 
AnswerRe: COM Dialog Compile Error Pin
Mark Salsbery15-Nov-06 7:09
Mark Salsbery15-Nov-06 7:09 
GeneralRe: COM Dialog Compile Error Pin
jon_fallon15-Nov-06 9:53
jon_fallon15-Nov-06 9:53 
QuestionHow to retrieve the memory information Pin
cy163@hotmail.com15-Nov-06 4:05
cy163@hotmail.com15-Nov-06 4:05 
AnswerRe: How to retrieve the memory information Pin
Programm3r15-Nov-06 4:16
Programm3r15-Nov-06 4:16 
GeneralRe: How to retrieve the memory information Pin
David Crow15-Nov-06 4:27
David Crow15-Nov-06 4:27 
GeneralRe: How to retrieve the memory information Pin
Programm3r15-Nov-06 4:33
Programm3r15-Nov-06 4:33 

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.