ParallelGraphics Forums
SDK
You are here:
[Forums]
::
[General]
::
[SDK]
All forums
How to use forums
Favorites
Services
Registration
Registration
Forgot your password?
Help
Help
Support
Quick search
Subscribe to newsletters
email:
password:
 
General
-
SDK
[reply]
[back to forum]
[new message]
[all forums]
Subject:
Add() Method
Sender:
mutafchiev@gmx.de
12.06.07 05:04
Hello,
I have a question about MFNode.Add() method.
I create a "Switch" node and an "IndexedFaceSet" node with:
if(SUCCEEDED(this->m_Engine->CreateNode(L"IndexedFaceSet", L"IndexedFaceSetNode", &vrmlLayer)))
AfxMessageBox(L"IndexedFaceSetNode created");
and add it to the "switch" node. I catch the "coord" field of
the "IndexedFaceSet" node and cast it to IID_IMFNodeObject with:
if(SUCCEEDED(pField->QueryInterface(IID_IMFNodeObject, (void**) &m_coordFMNode)))
AfxMessageBox(L"m_coordFMNode OK");
The problem occur when I want to add some "Coordinate" object to that field:
VARIANT CoordVar;
VariantInit(&CoordVar);
CoordVar.vt = VT_ERROR;
CoordVar.lVal = 0;
if(SUCCEEDED(m_coordFMNode->Add(Coordinate, &CoordVar)))
AfxMessageBox(L"add Coordinate succeeded");
Could somebody tell me why and how can I prevent this problem.
Tanks o lot!
[reply]
[back to forum]
[new message]
[all forums]
Add() Method
/
mutafchiev@gmx.de
/ 12.06.07 05:04
Re: Add() Method
/
nalex@parallelgaphics.com
/ 13.06.07 04:32
Re: Add() Method
/
mutafchiev@gmx.de
/ 13.06.07 05:53
Messages in thread:
3
[reply]
[back to forum]
[new message]
[all forums]
© 1998-2007
ParallelGraphics
. All rights reserved.
Terms of use
.