Click here to Skip to main content
15,846,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++ File Pin
T.RATHA KRISHNAN26-Jun-07 0:59
T.RATHA KRISHNAN26-Jun-07 0:59 
AnswerRe: C++ File Pin
Christian Graus26-Jun-07 1:11
protectorChristian Graus26-Jun-07 1:11 
QuestionRe: C++ File Pin
T.RATHA KRISHNAN26-Jun-07 1:21
T.RATHA KRISHNAN26-Jun-07 1:21 
AnswerRe: C++ File Pin
Christian Graus26-Jun-07 1:34
protectorChristian Graus26-Jun-07 1:34 
QuestionRe: C++ File Pin
Hamid_RT26-Jun-07 1:21
Hamid_RT26-Jun-07 1:21 
AnswerRe: C++ File Pin
T.RATHA KRISHNAN26-Jun-07 1:23
T.RATHA KRISHNAN26-Jun-07 1:23 
AnswerRe: C++ File Pin
Rajkumar R26-Jun-07 3:09
Rajkumar R26-Jun-07 3:09 
QuestionProblem converting project from VC6 to VC8 Pin
Skarrin26-Jun-07 0:56
Skarrin26-Jun-07 0:56 
Hello,

in a subproject,while compiling a cpp file which includes afximpl.h, I'm getting the following error message:
c:\Programme\Microsoft Visual Studio 8\VC\atlmfc\include\..\\src\\mfc\\afximpl.h(734) : error C2976: 'CArray' : too few template arguments

The error is caused by a class CVariantBoolConverter, also in afximpl.h:
class CVariantBoolConverter <br />
{<br />
protected:<br />
	CArray'<'CVariantBoolPair> m_boolArgs;<br />
public:<br />
...


As CArray is forward declared in afx.h as
template'<'class TYPE, class ARG_TYPE><br />
class CArray;

C2976 occurs because of the missing ARG_TYPE argument in the CVariantBoolConverter declaration.

So far so good... but when I dig deeper to the original declaration of CArray in afxtempl.h:
template'<'class TYPE, class ARG_TYPE = const TYPE&><br />
class CArray : public CObject<br />
{<br />
public:<br />
// Construction<br />
	CArray();<br />
...

ARG_TYPE is suddenly optional!

This is clearly a mismatch between the forward and real declaration of CArray, but the question is why am I the only one wich seems to be having problems with this bug?
We already have successfully converted other projects using templates without errors in my company, and I can't find anyone via Google or Usenet who is having the same or a similar problem.

Since I'm completely Confused | :confused: and Dead | X| now I hope someone can shed a ray of light on this...

adTHANKSvance, Skarrin
AnswerRe: Problem converting project from VC6 to VC8 Pin
Christian Graus26-Jun-07 1:33
protectorChristian Graus26-Jun-07 1:33 
GeneralRe: Problem converting project from VC6 to VC8 Pin
Skarrin26-Jun-07 1:55
Skarrin26-Jun-07 1:55 
AnswerRe: Problem converting project from VC6 to VC8 Pin
Mark Salsbery26-Jun-07 7:34
Mark Salsbery26-Jun-07 7:34 
QuestionButton with Icon not showing tooltip Pin
_AnsHUMAN_ 26-Jun-07 0:47
_AnsHUMAN_ 26-Jun-07 0:47 
AnswerRe: Button with Icon not showing tooltip Pin
Hamid_RT26-Jun-07 1:33
Hamid_RT26-Jun-07 1:33 
GeneralRe: Button with Icon not showing tooltip Pin
_AnsHUMAN_ 26-Jun-07 2:30
_AnsHUMAN_ 26-Jun-07 2:30 
GeneralRe: Button with Icon not showing tooltip Pin
Hamid_RT26-Jun-07 20:20
Hamid_RT26-Jun-07 20:20 
GeneralRe: Button with Icon not showing tooltip Pin
_AnsHUMAN_ 26-Jun-07 20:12
_AnsHUMAN_ 26-Jun-07 20:12 
QuestionLoading bitmap on Combo control Pin
naveen27gupta26-Jun-07 0:20
naveen27gupta26-Jun-07 0:20 
AnswerRe: Loading bitmap on Combo control Pin
Iain Clarke, Warrior Programmer26-Jun-07 0:44
Iain Clarke, Warrior Programmer26-Jun-07 0:44 
AnswerRe: Loading bitmap on Combo control Pin
naveen27gupta26-Jun-07 1:52
naveen27gupta26-Jun-07 1:52 
GeneralRe: Loading bitmap on Combo control Pin
Iain Clarke, Warrior Programmer26-Jun-07 2:28
Iain Clarke, Warrior Programmer26-Jun-07 2:28 
GeneralRe: Loading bitmap on Combo control Pin
naveen27gupta26-Jun-07 3:47
naveen27gupta26-Jun-07 3:47 
GeneralRe: Loading bitmap on Combo control Pin
Iain Clarke, Warrior Programmer26-Jun-07 4:11
Iain Clarke, Warrior Programmer26-Jun-07 4:11 
AnswerRe: Loading bitmap on Combo control Pin
Mark Salsbery26-Jun-07 7:42
Mark Salsbery26-Jun-07 7:42 
QuestionCTreeCtrl::EnsureVisible() -- failed to show selected item. Pin
brakeshbaldhab26-Jun-07 0:13
brakeshbaldhab26-Jun-07 0:13 
QuestionSet cursor to hourglass before window appears Pin
MeniB25-Jun-07 23:37
MeniB25-Jun-07 23:37 

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.