Results 1 to 4 of 4

Thread: Enabling DAO in OG 10.4

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    22

    Enabling DAO in OG 10.4

    Is there an easy way to include DAO grid classes when building Objective Grid 10.4?

  2. #2

    Re: Enabling DAO in OG 10.4

    We dropped support for DAO officially, but fortunately you can modify make file to get it back. Please, run Grid BuildWizard before editing file and do not run after it, see below changes needed.
    Customers with current support license may ask support@roguewave.com for sample .mak files.


    In file C:\Program Files\Rogue Wave\Stingray Studio 10.4\Src\Grid\BkEndMak\ bldback10.mak, make following changes (copying code changes from this post may cause errors, please type code or copy from sample .mak files):
    1. Add
    CUSTOM_CPP=/D"SEC_NO_TMPL_EXPLICIT_INST" /D"_GX_CHECKBOX_RESOURCES" /D"_GX_RADIOBTN_RESOURCES" /D"_GX_CALENDAR_RESOURCES" /D"_GX_CALCULATOR_RESOURCES" /D"_GX_DAOBMP_RESOURCES" /D"COMPILER_OPTION_RTTI" /D"_GX_SELECTRANGE_RESOURCES" /D"_GX_RESIZECELL_RESOURCES" /D"_GX_EXCELAFILL_RESOURCES" /D"_GX_TABWND_RESOURCES" /D"_GX_OLEDND_RESOURCES" /D"_GX_IMOUSE_RESOURCES" /D"_GX_PROPERTYDIALOG_RESOURCES" /D"_GX_STYLESHEET_RESOURCES" /D"_GX_TABWNDSER_RESOURCES" /D"_GX_ARROWHEADER_RESOURCES"
    (/D"_GX_DAOBMP_RESOURCES" added here)

    2. Replace "$(INTDIR)\GXDATA.obj"\
    with

    "$(INTDIR)\gxdaforg.obj"\
    "$(INTDIR)\gxdagrid.obj"\
    "$(INTDIR)\gxdainl.obj"\
    "$(INTDIR)\gxdaobmp.obj"\
    "$(INTDIR)\GXDATA.obj"\
    "$(INTDIR)\gxdaval.obj"\
    "$(INTDIR)\gxdavw.obj"\
    "$(INTDIR)\gxdawnd.obj"\

    3. Replace
    SOURCE="..\src\grid\GXDATA.cpp"
    "$(INTDIR)\GXDATA.obj" : $(SOURCE) $(DEP_CPP_STDAF) "$(INTDIR)\$(BUILDTARG).pch"
    $(CPP) $(CPP_PROJ) $(SOURCE)
    With

    SOURCE="..\src\grid\gxdaforg.cpp"
    "$(INTDIR)\gxdaforg.obj" : $(SOURCE) $(DEP_CPP_STDAF) "$(INTDIR)\$(BUILDTARG).pch"
    $(CPP) $(CPP_PROJ) $(SOURCE)

    SOURCE="..\src\grid\gxdagrid.cpp"
    "$(INTDIR)\gxdagrid.obj" : $(SOURCE) $(DEP_CPP_STDAF) "$(INTDIR)\$(BUILDTARG).pch"
    $(CPP) $(CPP_PROJ) $(SOURCE)

    SOURCE="..\src\grid\gxdainl.cpp"
    "$(INTDIR)\gxdainl.obj" : $(SOURCE) $(DEP_CPP_STDAF) "$(INTDIR)\$(BUILDTARG).pch"
    $(CPP) $(CPP_PROJ) $(SOURCE)

    SOURCE="..\src\grid\gxdaobmp.cpp"
    "$(INTDIR)\gxdaobmp.obj" : $(SOURCE) $(DEP_CPP_STDAF) "$(INTDIR)\$(BUILDTARG).pch"
    $(CPP) $(CPP_PROJ) $(SOURCE)

    SOURCE="..\src\grid\GXDATA.cpp"
    "$(INTDIR)\GXDATA.obj" : $(SOURCE) $(DEP_CPP_STDAF) "$(INTDIR)\$(BUILDTARG).pch"
    $(CPP) $(CPP_PROJ) $(SOURCE)

    SOURCE="..\src\grid\gxdaval.cpp"
    "$(INTDIR)\gxdaval.obj" : $(SOURCE) $(DEP_CPP_STDAF) "$(INTDIR)\$(BUILDTARG).pch"
    $(CPP) $(CPP_PROJ) $(SOURCE)

    SOURCE="..\src\grid\gxdavw.cpp"
    "$(INTDIR)\gxdavw.obj" : $(SOURCE) $(DEP_CPP_STDAF) "$(INTDIR)\$(BUILDTARG).pch"
    $(CPP) $(CPP_PROJ) $(SOURCE)

    SOURCE="..\src\grid\gxdawnd.cpp"
    "$(INTDIR)\gxdawnd.obj" : $(SOURCE) $(DEP_CPP_STDAF) "$(INTDIR)\$(BUILDTARG).pch"
    $(CPP) $(CPP_PROJ) $(SOURCE)

  3. #3

    Enabling DAO in OG 10.4

    Sample .mak files for DAO
    Attached Files Attached Files

  4. #4
    DAO changes were tested with Stingray Studio 11.1 (OG 13.1) successfully
    Sample .mak file is attached (remove .txt to use the file)
    Attached Files Attached Files
    Last edited by boris; 01-03-2014 at 12:01 PM. Reason: attachment

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •