Friday, April 10, 2009

Using Harbour+WVG +xMate - Part II

If you recall from my previous article, this is what we got after recompiling with the Harbour Ready to Use Distro by Pritpal Bedi :-


Pretty disappointing, huh ! What you are looking at is a true 32 bit Windows application in a DOS window but how to convince your clients that this is indeed a Win32 executable ? This is where Pritpal Bedi comes to the rescue with his WVG library.

So where do we start to guify our Win32 'DOS looking" executable ?

This is what I have done, JUST add right after MAIN()

HB_GTSYS()

where

Function HB_GTSYS()
REQUEST HB_GT_WVG_DEFAULT
REQUEST HB_GT_WVT
REQUEST HB_GT_WGU
Return NIL

That's it !


Notice that the caption now shows FAS4WVG and not the Dos Prompt + path to FAS4WVG.
Hip... Hip... Hooray, no more DOS window !

Next on Part III

No comments:

Post a Comment