Hi,
i have a problem in calling excel Fourier analysis functions from vc++.
the below line gives a error while running.
the error rises in excel sheet.
Code:
mp_application->Run("ATPVBAEN.XLA!Fourier",
(const variant_t)p_work_sheet->GetRange(p_range_pointer->Item[dw_dest_row1][dw_dest_col1],p_range_pointer->Item[dw_dest_row1][dw_dest_col1]),
(const variant_t)p_work_sheet->GetRange(p_range_pointer->Item[dw_dest_row1][dw_dest_col1],p_range_pointer->Item[dw_dest_row1][dw_dest_col1]),
false,false);
ERROR is : fourier analysis - input range must be contagious reference.
mp_application is a Excel::_ApplicationPtr
p_work_sheet is a Excel::_WorksheetPtr
please help me in finding out, what mistake i am doing while sending the parameters.
help is highly applicable.
thanks in advance.
Re: Problem in calling Excel Run fucntion from VC++
Originally Posted by lion.king
ERROR is : fourier analysis - input range must be contagious reference.
...
please help me in finding out, what mistake i am doing while sending the parameters.
it is contigious .. i searched in Google...they show code which is written or generated from macro recorder. but my code is in VC++. it has some thing to do with parametres ..which it is not able to match..
Bookmarks