Click here to Skip to main content
15,906,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending messages with Server/Client Pin
valikac14-Aug-03 6:38
valikac14-Aug-03 6:38 
GeneralRe: Sending messages with Server/Client Pin
Jay Hova14-Aug-03 6:54
Jay Hova14-Aug-03 6:54 
GeneralDLL loading multiple times Pin
BAmity14-Aug-03 5:02
BAmity14-Aug-03 5:02 
GeneralRe: DLL loading multiple times Pin
geo_m14-Aug-03 5:18
geo_m14-Aug-03 5:18 
GeneralRe: DLL loading multiple times Pin
David Crow14-Aug-03 5:32
David Crow14-Aug-03 5:32 
GeneralRe: DLL loading multiple times Pin
Andrew Walker14-Aug-03 5:32
Andrew Walker14-Aug-03 5:32 
GeneralRe: DLL loading multiple times Pin
Steve S14-Aug-03 5:35
Steve S14-Aug-03 5:35 
GeneralAmbiguous Overload. Pin
73Zeppelin14-Aug-03 4:30
73Zeppelin14-Aug-03 4:30 
In a bit of a quandry here...

I have two constructors for a class:
CMatrix(unsigned int uiRows, unsigned int uiColumns);
CMatrix(unsigned int uiSize, bool bCreateIdentity);


Unfortunately when I call the constructor in the code:
CMatrix* aMatrix;
aMatrix = NULL;
aMatrix = new CMatrix(2,2);


The VS 6.0 compiler informs me:
<br />
error C2668: 'CMatrix::CMatrix' : ambiguous call to overloaded function<br />


Which, I suppose, leaves me with three solutions:

1.) Use BOOL in place of bool which
I wanted to avoid

2.) Use int instead of unsigned int which
would require changing alot of already existing code and which
is really not what I want to do (I prefer unsigned int)

3.) Add a 3rd dummy parameter to one of the constructors, but this
seems like a desperate hack Suspicious | :suss:

Has anyone run into this before and come up with a creative solution
they would be willing to share?
GeneralRe: Ambiguous Overload. Pin
David Crow14-Aug-03 4:45
David Crow14-Aug-03 4:45 
GeneralRe: Ambiguous Overload. Pin
73Zeppelin14-Aug-03 4:49
73Zeppelin14-Aug-03 4:49 
GeneralRe: Ambiguous Overload. Pin
73Zeppelin14-Aug-03 5:08
73Zeppelin14-Aug-03 5:08 
GeneralRe: Ambiguous Overload. Pin
Michael Dunn15-Aug-03 19:53
sitebuilderMichael Dunn15-Aug-03 19:53 
QuestionHow to open &amp; paint &amp; print aux window? Pin
Anonymous14-Aug-03 3:59
Anonymous14-Aug-03 3:59 
Generaldisable enter-key in an app Pin
DamperMan14-Aug-03 2:38
DamperMan14-Aug-03 2:38 
GeneralRe: disable enter-key in an app Pin
Cedric Moonen14-Aug-03 2:47
Cedric Moonen14-Aug-03 2:47 
Generalabout WM_NOTIFY for CTreeCtrl Pin
muddog14-Aug-03 1:53
muddog14-Aug-03 1:53 
GeneralRe: about WM_NOTIFY for CTreeCtrl Pin
Senkwe Chanda14-Aug-03 2:37
Senkwe Chanda14-Aug-03 2:37 
GeneralRe: about WM_NOTIFY for CTreeCtrl Pin
muddog14-Aug-03 3:37
muddog14-Aug-03 3:37 
GeneralVC++ DLL Pin
cberam14-Aug-03 0:43
cberam14-Aug-03 0:43 
GeneralRe: VC++ DLL Pin
David Crow14-Aug-03 3:06
David Crow14-Aug-03 3:06 
GeneralRe: VC++ DLL Pin
cberam15-Aug-03 18:39
cberam15-Aug-03 18:39 
GeneralRe: VC++ DLL Pin
David Crow18-Aug-03 2:21
David Crow18-Aug-03 2:21 
GeneralI need help with a dialog box Pin
hari seldon13-Aug-03 23:44
hari seldon13-Aug-03 23:44 
GeneralRe: I need help with a dialog box Pin
David Crow14-Aug-03 3:18
David Crow14-Aug-03 3:18 
GeneralRe: I need help with a dialog box Pin
vcplusplus14-Aug-03 3:23
vcplusplus14-Aug-03 3:23 

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.