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 03:12
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

 


CreateField() / mutafchiev@gmx.de / 5.06.07 09:38
     Re: CreateField() / nalex@parallelgraphics.com / 5.06.07 10:33
         Re: CreateField() result is 0 / mutafchiev@gmx.de / 5.06.07 10:42
             Re: CreateField() result is 0 / nalex@parallelgraphics.com / 5.06.07 11:03
                 Re: CreateField() result is 0 / mutafchiev@gmx.de / 6.06.07 03:12
                     Re: CreateField() result is 0 / nalex@parallelgraphics.com / 6.06.07 04:19
                         Re: CreateField() result is 0 / nalex@parallelgraphics.com / 6.06.07 04:20
                             Re: CreateField() result is 0 / mutafchiev@gmx.de / 6.06.07 10:40
         Re: CreateField() / mutafchiev@gmx.de / 5.06.07 10:35

Messages in thread: 9


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