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: CreateField() result is 0
Sender: mutafchiev@gmx.de 6.06.07 00:20
but it does not work bacause CreateField() does not create "MFNode" and I can not use the MFNode.Add Method.
CComPtr<IFieldObject> field;
hr = m_Engine->CreateField(CComBSTR(L"MFNode"), &field);

Are you sure that field creation failed (field is NULL)?
What is the value of HRESULT returned by CreateField method?
I checked and hr==0

I don't know why? Does it mean that creation fails?
Nope, it means that field was successfully created (hr == S_OK).

Please read some book (or at least good paper) on COM essentials. It will be difficult for you to go further without this knowledge.


Tanks a lot! I gona do this.
But I still don't know why when I create the field with success I can not reach the functions of this object.
My project is an applications project and I have one wrapper class for cortona controls and the Shelley library.
Is it enought or I need something else?

Regards

 


Re: CreateField() result is 0 / mutafchiev@gmx.de / 6.06.07 00:20

Messages in thread: 1


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