Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Calculation of size of function Pin
Maximilien11-May-07 3:52
Maximilien11-May-07 3:52 
GeneralRe: Calculation of size of function Pin
Russell'11-May-07 23:34
Russell'11-May-07 23:34 
AnswerRe: Calculation of size of function Pin
Hans Dietrich11-May-07 4:21
mentorHans Dietrich11-May-07 4:21 
Questionsave xml in vc++2005 Pin
lavy288311-May-07 3:21
lavy288311-May-07 3:21 
AnswerRe: save xml in vc++2005 Pin
Hans Dietrich11-May-07 3:37
mentorHans Dietrich11-May-07 3:37 
QuestionSaving DC Bitmap Pin
masnu11-May-07 2:55
masnu11-May-07 2:55 
AnswerRe: Saving DC Bitmap Pin
Hans Dietrich11-May-07 3:32
mentorHans Dietrich11-May-07 3:32 
Questionsimple error with printing Pin
ldsdbomber11-May-07 2:47
ldsdbomber11-May-07 2:47 
from
http://www.codeproject.com/printing/printingmadeeasy.asp


Error C2660: 'MyPrintUnit::MyPrintUnit' : function does not take 1 parameters

I basically added the 4 files from his zip archive, and then copied and pasted his example usage into his source files, but am getting this error. It looks like MyPrintUnit is derived from GPrintUnit and its this base class that has the 1 parameter constructor, but have I done something wrong, or is it his mistake, or is there a way for me to call the base class version of MyPrintUnit in GPrintUnit

void MyPrintJob::OnPrint()
{
MyPrintUnit unit(this);
unit.Print();
}


note:
class MyPrintUnit : public GPrintUnit
{
public:
MyPrintUnit() {;}
virtual ~MyPrintUnit() {;}

virtual void DefineColHeadings();
virtual void CreatePrintFonts();
void InitPrintMetrics();
virtual BOOL Print();

CFont m_fontHeading;
CFont m_fontBody;
CFont m_fontHeader;
CFont m_fontFooter;
};

class GPrintUnit : public CObject
{
public:
GPrintUnit(GPrintJob *pJob=NULL);

....
etc
AnswerRe: simple error with printing Pin
David Crow11-May-07 2:57
David Crow11-May-07 2:57 
GeneralRe: simple error with printing Pin
ldsdbomber11-May-07 3:11
ldsdbomber11-May-07 3:11 
GeneralRe: simple error with printing Pin
Hans Dietrich11-May-07 3:19
mentorHans Dietrich11-May-07 3:19 
GeneralRe: simple error with printing Pin
ldsdbomber11-May-07 3:24
ldsdbomber11-May-07 3:24 
GeneralRe: simple error with printing Pin
Hans Dietrich11-May-07 3:28
mentorHans Dietrich11-May-07 3:28 
GeneralRe: simple error with printing Pin
David Crow11-May-07 3:40
David Crow11-May-07 3:40 
QuestionHow can I stop the program that run by DLL. Pin
Max++11-May-07 2:31
Max++11-May-07 2:31 
AnswerRe: How can I stop the program that run by DLL. Pin
Christian Graus11-May-07 2:45
protectorChristian Graus11-May-07 2:45 
GeneralRe: How can I stop the program that run by DLL. Pin
Max++11-May-07 3:16
Max++11-May-07 3:16 
GeneralRe: How can I stop the program that run by DLL. Pin
prasad_som11-May-07 4:02
prasad_som11-May-07 4:02 
QuestionException handling in Constructor Pin
ragavan11-May-07 1:55
ragavan11-May-07 1:55 
AnswerRe: Exception handling in Constructor Pin
CPallini11-May-07 2:02
mveCPallini11-May-07 2:02 
AnswerRe: Exception handling in Constructor Pin
shiraztk11-May-07 2:35
shiraztk11-May-07 2:35 
AnswerRe: Exception handling in Constructor Pin
#realJSOP11-May-07 2:47
professional#realJSOP11-May-07 2:47 
AnswerRe: Exception handling in Constructor Pin
Nemanja Trifunovic11-May-07 4:33
Nemanja Trifunovic11-May-07 4:33 
QuestionUser name/Password authentication Pin
TariqZ11-May-07 1:46
TariqZ11-May-07 1:46 
AnswerRe: User name/Password authentication Pin
Christian Graus11-May-07 1:53
protectorChristian Graus11-May-07 1:53 

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.