NTK and The NTK Project
are properties of Jn Dechereux
Home | Documentation | FAQ.

Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentTimeAug 6th 2013
    I have code that makes a browse “TotObj3”. When the user presses a button on a dialog I want to destroy the browse. The code is…

    IF TotObj3 <> NIL
    TotObj3:Destroy() // destroy the browse – line 378
    TotObj3 := NIL

    When I try to compile this I get this message in the command window…


    xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
    Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
    Compiling 'Type7_32.PRG'...
    Type7_32.PRG(378) Error E0030 Syntax error: "syntax error at '('"
    1 error
    No code generated

    //-- end quote

    Any ideas?

    • CommentTimeAug 7th 2013
    Weird indeed. Apparently, this code snippet seems correct and should compile fine.
    Did you compile Type7_32.PRG with MKRAD?
    Or, did you create your own makefile? If so, what compiler options have you specified?
    • CommentTimeAug 8th 2013
    Yes, I feel it is weird. It is my own makefile. The compiler line is:

    Harbour %1.PRG -n -i%HB_INSTALL%\include;%WNTK_INSTALL%\include %2 %3

    The %2 and %3 are empty (not passed in). The %1 is the program name. As you can see I only have 2 xH flags, -N and –I.
    • CommentTimeAug 9th 2013
    I must admit I'm quite a bit puzzled. Need more informations. Can you attach a copy of your prg and your makefile? Thus, this will be easier to help you.

    • CommentTimeAug 15th 2013
    I set the environment with XHRBENV.BAT then run RR.BAT which calls ONEPRG.BAT for each module.

    Type7_32.prg contains functions that are called by other progs.
    • CommentTimeAug 17th 2013
    Hi Reece,
    Your problem was due to a particular #translate in the C4W2NTK include file (L:183). For some reasons out of my understanding, the optional clauses defined in the command's syntax seem to cause a name conflict with the :Destroy() method of some NTK OO classes.
    After removing the brackets of the generic syntax I've got your TYPE7_32.PRG compiling fine. See attached. I will report this issue to JN. In the meantime feel free to use my modified version of C4W2NTK and keep us informed.

    Hope this helps.
    • CommentTimeAug 21st 2013
    Thanks for your help