Bos Taurus functions declared external

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

Post Reply
bluebird
Posts: 172
Joined: Wed Sep 28, 2016 3:55 am
DBs Used: DBF

Bos Taurus functions declared external

Post by bluebird »

Dear Friends

I try to build a program with the function below that can save a Form as a BMP file. The Compiler declared the Bos Taurus functions external.
What am I doing wrong this time. It has worked before :(

FUNCTION SaveDisplay() //BUTTON PrintScreen

LOCAL cYesNoSave:="?", cImageFileName:=" Matrix Display.jpg"
DO WHILE !cYesNoSave $"YNyn"
cYesNoSave:=alltrim(Inputbox("Enter a Y to Save as BMP","Form_1","?"))
ENDDO
If cYesNoSave $ "Yy"
hBitmap:=BT_BitmapCaptureWindow("form_1",0,0,1040,920)
BT_BitmapSaveFile(hBitmap, cImageFileName )
BT_BitmapRelease( hBitmap )
Endif
RETURN NIL
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Bos Taurus functions declared external

Post by Pablo César »

Missed you mention which version of HMG you are using.

Has your HMG been installed or simply copied to a folder with restricted access ?

For me it worked perfectly your example without complaining of any fault... and did not have to do any addition or include.

Please note your cImageFileName contains a initial characters as name, one empty space character.

One tip and a request: Replace the Inputbox with MsgYesNo() and in your next post with source code, please put between CODE TAGS, It's easier to see your code.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
bluebird
Posts: 172
Joined: Wed Sep 28, 2016 3:55 am
DBs Used: DBF

Re: Bos Taurus functions declared external

Post by bluebird »

The program was written using Minigui. The installation was as per the instructions to set up BCC
The error message in compilation is

C:\MiniGUI\MySourceCode>..\batch\compile sudokudev
Harbour 3.2.0dev (r1607181832)
Copyright (c) 1999-2016, http://harbour-project.org/
Compiling 'sudokudev.prg'...
Lines 22907, Functions/Procedures 16
Generating C source output to 'sudokudev.c'... Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
sudokudev.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_BT_BITMAPCAPTUREWINDOW' referenced from C:\MINIGUI\MYSOURCECODE\SUDOKUDEV.OBJ
Error: Unresolved external '_HB_FUN_BT_BITMAPSAVEFILE' referenced from C:\MINIGUI\MYSOURCECODE\SUDOKUDEV.OBJ
Error: Unresolved external '_HB_FUN_BT_BITMAPRELEASE' referenced from C:\MINIGUI\MYSOURCECODE\SUDOKUDEV.OBJ

Link error.

Press any key to continue . .
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Bos Taurus functions declared external

Post by Pablo César »

bluebird wrote:The program was written using Minigui
:o Why did not you say that before?

Try to put in your prg:

#include "hmg.ch"

This include at HMG EE internally includes another one: i_hmgcompat.ch, which also includes another one: the BosTaurus.ch

Or try to include directly BosTaurus.ch

If all else did not work, I advise you to post to the appropriate HMG EE forum at: http://hmgextended.com/support.html
You should probably report this to them.

I do not know why of this mistake, because I did never go through it.
Here in HMG we have not this problem because BosTaurus is part of our HMG core.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
bluebird
Posts: 172
Joined: Wed Sep 28, 2016 3:55 am
DBs Used: DBF

Re: Bos Taurus functions declared external

Post by bluebird »

The incldue files make no difference to the result. If I get external notification using BosTaurus functions then the path to find them must be missing.
Can anyone tell me where to check for BT in case the BT library is missing or misplaced.

As an aside, I could like to move from minigui to HMG. I use the minigui GETBOX however. What is the best HMG alternative to HETBOX
Post Reply