ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: Re: Add() Method
Sender: mutafchiev@gmx.de 13.06.07 05:53
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");
What exactly is the problem?

(By the way, you're filling in variant for the optional parameter incorrectly. I think this is not a problem in this case, but please read on how to pass optional arguments here: http://support.microsoft.com/kb/q154039/ )

Hi there,
the problem was that I cast the "coord" field to
IMFNodeObject but it schould be ISFNodeObject. Now it works with the right type. Thanks for your advice about VARIANT class. I still have some problem with it (you sow that already);)

Regards

Stoyan

 


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


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.