Cannot run some samples using cas4.0

I have tried and failed to run some of the samples provided. I get a fatal error on graphics initialisation when trying to run sampleTopologyPrimitives.

I have also seen the patches for Opengl etc. for cas3.1 but how do i use them, i'm still a novice in this programming.

Math's picture

I think the problem is that samples were written for OCC 3.1 ... That's maybe why all of them don't work...