How to use the NCollection_Haft variables in other DLL

Dear friends!

I create the New C++/CLI project which reference the OCCTProxy.dll( NCollection_Haft variables are there) and export the file names TEST.dll, and I want to use the NCollection_Haft variables(e.g "NCollection_Haft<Handle(AIS_InteractiveContext)> myAISContext;") in the TEST.dll.

When I build the Test.dll file , the Error will show that "c2227 Left of'->HasDetectedShape()' must point to class/struct/union/generic type".

This is part of my code:

public ref class CurveDeburr
{
OCCTProxy occtProxy;
public:

bool Shape(int number)
{
bool result = true;
if (!occtProxy.myAISContext()->HasDetectedShape())
return false;
}
};

Tell me how to use the NCollection_Haft variables in Test.dll from OCCTProxy.dll?
Thanks!

Guillaume CHAFFAROD's picture

OOps, wrong thread.. :)