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
|