TfrxBarcode2DView declaration in c++

I am trying to use TfrxBarcode2DView, here is my code.
TfrxBarcode2DView    *flBarcode;
flBarcode            = dynamic_cast<TfrxBarcode2DView *> (frxReport1->FindObject("Barcode2D1"));

where Barcode2D1 is the component name in frxReport.

but error said to the TfrxBarcode2DView : Type name expected.
but i have these in declaration:
#include "frxClass.hpp"
#include "frxPreview.hpp"
#include "frxChart.hpp"
#include "frxBarcode.hpp"

I don't get it.
Thanks!

Comments

  • gpigpi
    edited 9:46PM
    Try
    #include "frxClass.hpp"
    #include "frxPreview.hpp"
    #include "frxChart.hpp"
    #include "frxBarcode.hpp"
    #include "frxBarcode2D.hpp"
    
  • edited 9:46PM
    gpi wrote: »
    Try
    #include "frxClass.hpp"
    #include "frxPreview.hpp"
    #include "frxChart.hpp"
    #include "frxBarcode.hpp"
    #include "frxBarcode2D.hpp"
    

    That works!Thanks so much!

    I don't understand why it doesn't include itself?

Leave a Comment