URGENT : C/FRONT - DBL_Allow

varodvarod Member Posts: 14
edited 2006-06-14 in Navision Financials
Hi all,

Is there someone who has already used DBL_Allow in CFRONT. I want my program to not raise exit error when there a Record Not Found Error.
I used so DBL_Allow(1246192) which the error code of not found record.

Now it raises me an internal error 7 ; module 39 ...

Could you help me !! Please !! :)

Thanks in advance,

Vincent.

Comments

  • PoweRoyPoweRoy Member Posts: 43
    in the example in help:

    DBL_Allow(DBL_Err_RecordNotFound);

    in the cf.h:

    #define Module_DB 19
    #define DEFINE_DBERR(xErrNo) ((((DBL_S32)(Module_DB) * 0x10000L + (DBL_S32)(xErrNo)) | 0x1000000L) | 0x4000000L)

    #define DBL_Err_TableNotFound DEFINE_DBERR(1008)
    #define DBL_Err_RecordNotFound DEFINE_DBERR(1008)
    #define DBL_Err_RecordExists DEFINE_DBERR(1009)
    #define DBL_Err_KeyNotFound DEFINE_DBERR(1007)

    Hf calculating (or u got the nr already right =D> )
  • varodvarod Member Posts: 14
    Hi Roy,

    I found the macro in CF.h before posting but i made a mistake when i try to calculate it.

    In .NET 'long' type is not the same as in C. In C long ==> 32 bits ; in .NET long ==> 64 bits.

    So in order to find the correct answer yo have to remove 'L' on hexadecimal values. In my code i convert them.

    And now it works well \:D/

    I'm going to post the .Net wrapper, as soon as I finish my project.

    Bye.

    Vince.
  • PoweRoyPoweRoy Member Posts: 43
    hehe :P

    im almost done with my internship (some navision implementations: handterminals and the performance issues)

    friday next week is my last day and ill post some performance timings i founded (C/c++/c#)
Sign In or Register to comment.