On Thu, 11 Mar 2010, Szak�ts Viktor wrote: Hi Viktor,
> -gui doesn't set any GTs, only executable build mode. > You should use -gtgui (which will also set -gui automatically). > BTW, -gtnul should also work for normal cases. > The problem in your case is that the method hbmk2 > uses (inherited from hbmk script) to set default GT, > is an internal VM call executed on app startup. In > context of .dlls with full VM, such "app startup" > has no meaning. In such case a different stub would > be needed, something like Przemek posted. I can > add support for such thing to hbmk2, but first we > should clear up any issues with it. The startup code in DLLs is executed just like in normal application so it should work for DLLs two. At least I do not see any reasons why it should not work. Maurilio's messages are strongly confusing and it's hard to guess what he exactly does or even what it the exact problem. In this particular case he joined two different things. He disabled binding to GTWIN by defining defining HB_GTSYS and set default GT by using HB_GT_*_DEFAULT so I do not know what "problem" he resolved. Maurilio I know that we do not have good documentation but I strongly suggest to read at least these few peaces we have. In doc/gtapi.txt this is described and should help to understand how it works. IMHO it's much better method then trying different methods in the hope that some of them gives expected results because in such way you can unintentionally create sth what works only due to some side effects in current implementation and will not work in the future so you will report the problem to the list again. The code to select GTs in PRG code I implemented many years ago for xHarbour and only names has changed a little bit (i.e. now we have HB_GTSYS instead of original GTSYS). I think it's long enough period to find a while to read how it works to not have such problems in the future :-) best regards, Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour