Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GetPrinters bug ?

25 views
Skip to first unread message

Stefan Haupt

unread,
Dec 13, 2011, 7:19:23 AM12/13/11
to
Hello,

in the last version of xHarbour (Build 1.2.1 Rev. 9411) the functions
GetPrinters() and GetDefaultPrinter() both return an undefined value

aPrn := GetPrinters ()
? valtype (aPrn) -> returns U

? valType (GetDefaultPrinter ()) -> returns U

My OS is Win 7, 64bit

Any suggestions ?

cul...@gmail.com

unread,
Dec 13, 2011, 8:35:58 AM12/13/11
to
Did you have printer instaled?

Regards
Luiz

Stefan Haupt

unread,
Dec 13, 2011, 9:37:49 AM12/13/11
to
Yes, 3 local printers and 2 network printers

Mel Smith

unread,
Dec 13, 2011, 11:20:20 AM12/13/11
to
Stefan:

With Build *9417* on a Win XP Pro (sp3) :


FUNCTION MAIN()
// Separate Printer test
LOCAL aPRN
CLS

aPRN := GetPrinters()
? VALTYPE(aPRN) // results in 'A'
? VALTYPE(GETDEFAULTPRINTER()) // Results in 'C'
?
INKEY(0)

RETURN NIL

// end of printer test


Stefan Haupt

unread,
Dec 14, 2011, 4:13:57 AM12/14/11
to
Mel,

thanks for the sample, but I am not able to compile it. I dont know where
I have to change the path to bcc and xharbour in the batches. Do you have a
more simple batch to compile the samples ?

If I compile it with my fwh environment with bcc55 I get an unresolved
external hb_stack. I think I cannot mix fwh (built with bcc58) and your build.

Your build is not compatible with bcc582, could you please make a build for
bcc582 ?

Stefan

Stefan Haupt

unread,
Dec 14, 2011, 6:07:28 AM12/14/11
to
Ok, I could build the sample and it is working.

But the problem using this build with fwh remains. I get these unresolved
externals

Error: Unresolved external '__rwstd::__rw_stdexcept_NoNamedException'
referenced from D:\XHARBOUR_9\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::__nullref' referenced from
D:\XHARBOUR_9\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::__getRep(unsigned int, unsigned int)' referenced
from D:\XHARBOUR_9\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::ref_counted::~ref_counted()'
referenced from D:\XHARBOUR_9\LIB\HBZIP.LIB|ziparchive

thanks for help

Stefan

dlzc

unread,
Dec 14, 2011, 9:29:21 AM12/14/11
to
On Dec 14, 4:07 am, Stefan Haupt <stha...@uni.kassel.de> wrote:
> Ok, I could build the sample and it is working.
>
> But the problem using this build with fwh remains. I get
> these unresolved externals

OK, so the fault lies with using FWH (which you did not tell us), not
with xHarbour. You need to ask the FWH folks what was missed.

David A. Smith

Stefan Haupt

unread,
Dec 15, 2011, 2:49:18 AM12/15/11
to
David,

you are right, I found the reason. It was indeed an incompatibility with
fwh. I posted it in the fwh forum yesterday evening.

Thanks for your help

Stefan
0 new messages