Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [ask for]The way for Solving "Microsoft Visual C++ Runtime Library" Error. Pin
onlysaint1-Mar-10 21:59
onlysaint1-Mar-10 21:59 
AnswerRe: [ask for]The way for Solving "Microsoft Visual C++ Runtime Library" Error. [modified] Pin
Stephen Hewitt1-Mar-10 22:32
Stephen Hewitt1-Mar-10 22:32 
GeneralRe: [ask for]The way for Solving "Microsoft Visual C++ Runtime Library" Error. Pin
Rajesh R Subramanian2-Mar-10 0:41
professionalRajesh R Subramanian2-Mar-10 0:41 
GeneralRe: [ask for]The way for Solving "Microsoft Visual C++ Runtime Library" Error. Pin
Stephen Hewitt2-Mar-10 14:31
Stephen Hewitt2-Mar-10 14:31 
GeneralRe: [ask for]The way for Solving "Microsoft Visual C++ Runtime Library" Error. Pin
onlysaint2-Mar-10 0:50
onlysaint2-Mar-10 0:50 
GeneralRe: [ask for]The way for Solving "Microsoft Visual C++ Runtime Library" Error. Pin
Stephen Hewitt2-Mar-10 21:04
Stephen Hewitt2-Mar-10 21:04 
QuestionWrite Mjpeg frames into AVI container Pin
gmallax1-Mar-10 20:01
gmallax1-Mar-10 20:01 
AnswerRe: Write Mjpeg frames into AVI container Pin
TimSWatson27-Apr-10 0:03
TimSWatson27-Apr-10 0:03 
GeneralRe: Write Mjpeg frames into AVI container Pin
gmallax27-Apr-10 0:38
gmallax27-Apr-10 0:38 
GeneralRe: Write Mjpeg frames into AVI container Pin
TimSWatson27-Apr-10 1:59
TimSWatson27-Apr-10 1:59 
GeneralRe: Write Mjpeg frames into AVI container Pin
TimSWatson27-Apr-10 2:16
TimSWatson27-Apr-10 2:16 
GeneralRe: Write Mjpeg frames into AVI container Pin
gmallax27-Apr-10 2:20
gmallax27-Apr-10 2:20 
GeneralRe: Write Mjpeg frames into AVI container Pin
TimSWatson27-Apr-10 3:12
TimSWatson27-Apr-10 3:12 
GeneralRe: Write Mjpeg frames into AVI container Pin
gmallax27-Apr-10 19:31
gmallax27-Apr-10 19:31 
QuestionAny one interested to do Activex component project for money in VC++ Pin
kishore5281-Mar-10 19:41
kishore5281-Mar-10 19:41 
AnswerRe: Any one interested to do Activex component project for money in VC++ Pin
Nelek1-Mar-10 20:15
protectorNelek1-Mar-10 20:15 
QuestionActiveX spreadsheet component Pin
sims9741-Mar-10 10:37
sims9741-Mar-10 10:37 
Hi,
I have a simple VS2008 C++ MFC application that shows a FormView in which a "Microsoft Office Spreadsheet 10.0" has been inserted. At this point when the program is runing I can manually manipulate -but ONLY with the keyboard! the spreadsheet cells like a usual Excel one.
Now I would like to do the same programatically but I don't know how!
I have added a variable to the component and this variable seems to let me control the spreadsheet through a LPDISPATCH pointer.

This is the instruction that VS2008 automatically put in the DODataExchange() function:

DDX_Control(pDX, IDC_SPREADSHEET1, in_grid);

in_grid is name of the variable added to "SPREADSHEET1" component.
Later in the code I have this instruction:

LPDISPATCH lpd_grid = in_grid.get_ActiveSheet();

Most of functions avalable through in_grid return this type LPDISPATCH. But I have not undestood how I can use this pointer to Write/Read the cell's value.
In so many exemples found here and there LPDISPATCH lpd_grid would be used in this way:

Excel::_WorksheetPtr xlWs = in_grid.AttachDispatch(lpd_grid);

but in the present case the later instruction above would lead to a compiler error.

Does anybody ever used this "Microsoft Office Spreadsheet 10.0" ?

Regards
Bernard
QuestionInvalid access to memory location - in WriteFile - writting to COM port. [modified] Pin
Vaclav_1-Mar-10 7:09
Vaclav_1-Mar-10 7:09 
AnswerRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Avi Berger1-Mar-10 7:43
Avi Berger1-Mar-10 7:43 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Vaclav_1-Mar-10 10:37
Vaclav_1-Mar-10 10:37 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
David Crow1-Mar-10 15:26
David Crow1-Mar-10 15:26 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Vaclav_1-Mar-10 17:05
Vaclav_1-Mar-10 17:05 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Avi Berger1-Mar-10 18:03
Avi Berger1-Mar-10 18:03 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Vaclav_1-Mar-10 18:21
Vaclav_1-Mar-10 18:21 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Iain Clarke, Warrior Programmer2-Mar-10 6:50
Iain Clarke, Warrior Programmer2-Mar-10 6:50 

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.