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:00PM
    Try
    #include "frxClass.hpp"
    #include "frxPreview.hpp"
    #include "frxChart.hpp"
    #include "frxBarcode.hpp"
    #include "frxBarcode2D.hpp"
    
  • edited 9:00PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.