c++ pointers

c++ pointers

Anonymous
Not applicable
268 Views
0 Replies
Message 1 of 1

c++ pointers

Anonymous
Not applicable
Hi,



have a look to the following code :



int CISU_BaseObj::ProiettaLinea( CComPtr<PlanarSketch> pSketch2D

, CComPtr<SketchLine> pSketchLineSource

, struct SketchLine** pSketchLineTarget)

{



/// EEC_2009_04_22



HRESULT hr = S_OK;

CComPtr<SketchEntity> pSketchEntityLine;

hr=pSketch2D->AddByProjectingEntity( pSketchLineSource, &pSketchEntityLine);



*pSketchLineTarget=(SketchLinePtr)pSketchEntityLine;



return hr;



}



pSketchEntityLine and *pSketchLineTarget have differnet values so any further access to pSketchLineTarget assert.



What it's wrong ?



Thankyou in advance.



Ezio
0 Likes
269 Views
0 Replies
Replies (0)