Re: [Dev-C++] Passing CButton as a parameter
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2002-12-23 12:31:09
|
ah got it. >void ChangeDefaultPaperSize >( > LPDEVMODE DevModePointer, > const CButton& mRadioPaperType, > int& mPaperSize, > short& mPaperWidth, > short& mPaperLength >); No copy constructor for CButton you see, and my previous attempts to pass by reference failed miserably. >From: "Daniel Glenfield" <sp...@ho...> >To: dev...@li... >Subject: [Dev-C++] Passing CButton as a parameter >Date: Mon, 23 Dec 2002 12:19:00 +0000 > >(I'm using MS Visual C++) >I'm passing a CButton type member attribute to a function, but I get the >message "can't convert class CButton to class CButton". > >// The function prototype >void ChangeDefaultPaperSize >( > LPDEVMODE DevModePointer, > CButton mRadioPaperType, > int& mPaperSize, > short& mPaperWidth, > short& mPaperLength >); > > >the call: >////////////////////////////////////////////////////////////////////////// >PAPERSIZE > ChangeDefaultPaperSize(DevModePointer, mRadioPaperType, mPaperSize, >mPaperWidth, mPaperLength); > > > > >_________________________________________________________________ >The new MSN 8: smart spam protection and 3 months FREE*. >http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= >http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_smartspamprotection_3mf > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 3 months FREE*. http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_virusprotection_3mf |