Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing CMSFlexGrid as a Function Parameter 1

Status
Not open for further replies.

rmanju

Programmer
Mar 26, 2004
4
CH
hi,

i wish to pass msflexgrid object as a parameter to another class function which takes care of processing the grid. now i hav diff. grids and wrote a function in another class and tried to pass this msflexgrid and i got this error -

cannot convert parameter 1 from class CMSFlexGrid to class CMSFlexGrid

no copy constructor available for class 'CMSFlexGrid'

please help and my thank you for you



 
query the interface IDispatch and pass it

Ion Filipski
1c.bmp
 
I think you are passing by value? Try pass by reference

Cheers,

Ravi
 
what kind of passing by value or reference? it is a COM object...

Ion Filipski
1c.bmp
 
thank you very much, rchandr3... i almost gave up and you pointed out a simple thing.

actually i was passing msflexgrid as a object. i passed with as reference with & before and now it is working.

thanks Ion. actually my code is pDiffClass->passToDiffClass(flexgridPass); In that class my function is passToDiffClass(CMSFlexGrid &msFlexGrid);

thanks all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top