Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: System Command: Pin
_AnsHUMAN_ 1-Jul-08 2:31
_AnsHUMAN_ 1-Jul-08 2:31 
GeneralRe: System Command: Pin
toxcct1-Jul-08 2:49
toxcct1-Jul-08 2:49 
AnswerRe: System Command: Pin
Bram van Kampen1-Jul-08 12:31
Bram van Kampen1-Jul-08 12:31 
QuestionCDateTimeCtrl problem [modified] Pin
josip cagalj30-Jun-08 22:28
josip cagalj30-Jun-08 22:28 
AnswerRe: CDateTimeCtrl problem Pin
KarstenK30-Jun-08 23:24
mveKarstenK30-Jun-08 23:24 
AnswerRe: CDateTimeCtrl problem Pin
josip cagalj1-Jul-08 2:56
josip cagalj1-Jul-08 2:56 
GeneralRe: CDateTimeCtrl problem Pin
josip cagalj1-Jul-08 3:50
josip cagalj1-Jul-08 3:50 
Questionerror C2227 Pin
engilela30-Jun-08 19:34
engilela30-Jun-08 19:34 
Hi,
The following code complied properly in Vc++ 7.1.When I implemented the same code in VC++ 6.0 its giving the errors(I am not much used to VC++6.0).
The code is reading the data present in an XML file.


\****************************************************************\

MSXML::IXMLDOMNodePtr m_pDSNNode;
CString parNamevalue;
_bstr_t parName="name";
_bstr_t parval="value";
for(MSXML::IXMLDOMNodePtr pChild = m_pDSNNode->firstChild;
NULL != pChild;
pChild = pChild->nextSibling)
{
if (MSXML::NODE_ELEMENT== pChild->nodeType)
{
MSXML::IXMLDOMElementPtr pElement=pChild;
parNamevalue=pElement->getAttribute(parName);
if(parNamevalue.CompareNoCase("DataSourceName")==0)
{
strDSNName=pElement->getAttribute(parval);
strDSNName.TrimLeft();
strDSNName.TrimRight();
break;
}

}
}
\**********************************************\

The compile errors I got are

(1) error C2227: left of '->firstChild' must point to class/struct/union
(2) error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class _variant_t' (or there is no acceptable conversion)
(3)error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class _variant_t' (or there is no acceptable conversion)

Someone help me out of this problem

Thanks in advance

Regards
Engilela Smile | :)
AnswerRe: error C2227 Pin
KarstenK30-Jun-08 23:13
mveKarstenK30-Jun-08 23:13 
GeneralRe: error C2227 Pin
engilela1-Jul-08 20:52
engilela1-Jul-08 20:52 
AnswerRe: error C2227 Pin
Nelek3-Jul-08 21:48
protectorNelek3-Jul-08 21:48 
QuestionHelp with VC++... [modified] Pin
projectip30-Jun-08 18:46
projectip30-Jun-08 18:46 
AnswerRe: Help with VC++... Pin
projectip30-Jun-08 19:00
projectip30-Jun-08 19:00 
AnswerRe: Help with VC++... Pin
_AnsHUMAN_ 30-Jun-08 19:04
_AnsHUMAN_ 30-Jun-08 19:04 
GeneralRe: Help with VC++... Pin
projectip30-Jun-08 19:08
projectip30-Jun-08 19:08 
GeneralRe: Help with VC++... Pin
_AnsHUMAN_ 30-Jun-08 19:10
_AnsHUMAN_ 30-Jun-08 19:10 
GeneralRe: Help with VC++... Pin
projectip30-Jun-08 19:37
projectip30-Jun-08 19:37 
GeneralRe: Help with VC++... Pin
theCPkid30-Jun-08 19:11
theCPkid30-Jun-08 19:11 
GeneralRe: Help with VC++... Pin
projectip30-Jun-08 19:54
projectip30-Jun-08 19:54 
GeneralRe: Help with VC++... Pin
projectip30-Jun-08 19:55
projectip30-Jun-08 19:55 
QuestionMFC App Wizard generated SDI application crashes. Pin
Saurabh.Garg30-Jun-08 17:54
Saurabh.Garg30-Jun-08 17:54 
GeneralRe: MFC App Wizard generated SDI application crashes. Pin
theCPkid30-Jun-08 18:50
theCPkid30-Jun-08 18:50 
GeneralRe: MFC App Wizard generated SDI application crashes. Pin
Saurabh.Garg30-Jun-08 19:01
Saurabh.Garg30-Jun-08 19:01 
QuestionCoInitializeEx and MTA Pin
George_George30-Jun-08 17:09
George_George30-Jun-08 17:09 
AnswerRe: CoInitializeEx and MTA Pin
Hamid_RT30-Jun-08 20:52
Hamid_RT30-Jun-08 20:52 

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.