Options

C++ and Navision database connectivity

jksjks Member Posts: 277
Hi all,

I want to access navision databases from C++ programs. How Can i do that?

How to compile such c++ programs? What .h files i need to include?

Please help.

Comments

  • Options
    kinekine Member Posts: 12,562
    Install C/FRONT interface and check the folder...

    there is sample code written in C...

    And it is not so hard to write C++ wrapper which will allow you use the C/FRONT interface in same way as you are using C/AL code in Navision...

    But do not forgt, that C/FRONT does not run triggers etc...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    jksjks Member Posts: 277
    Can't i use n\odbc driver from c++ to access database?
    Which one is better n\odbc or c\front?

    Please help.
  • Options
    DakkonDakkon Member Posts: 192
    I personally would recommend sticking to the C/Front component. It will give you greater flexibility
    Thad Ryker
    I traded my sanity for a railgun :mrgreen:
  • Options
    kinekine Member Posts: 12,562
    C/Front is better, because you have same interface independent on DB backend (MS SQL or Native...) - and in both env. you have FlowFields etc...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.