Search found 41 matches: cmodel

Return to advanced search

Re: Using Microsoft AI Phi-2 from FWH

... #ifndef HB_LONGLONG #define HB_LONGLONG long #define hb_storvnll hb_stornl #endif agora o erro eh outro ao clicar em start DLL FUNCTION Llama( cModel AS LPSTR, cPrompt AS LPSTR, pFunc AS PTR ) AS VOID PASCAL LIB "llama64.dll" https://uploaddeimagens.com.br/images/004/700/688/original/erro.png?1703921284
by jhnsnlb
Sat Dec 30, 2023 7:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using Microsoft AI Phi-2 from FWH
Replies: 51
Views: 8234

Re: Using Microsoft AI Phi-2 from FWH

Dear Jimmy, many thanks Please try this using 64 bits only: HMG_CallDLL( "llama64.dll", HB_DYN_CTYPE_VOID, "Llama", cModel, cPrompt, CallBack( { | cStr | AI_FORM.oAnswer.SetFocus(), AI_FORM.oAnswer.Value += cStr } ) ) and add this at the bottom: #pragma BEGINDUMP #include ...
by Antonio Linares
Thu Dec 21, 2023 4:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using Microsoft AI Phi-2 from FWH
Replies: 51
Views: 8234

Re: Printer hDC is 0

Just to update. Enrico's post prompts me to eventually inspect var cModel value in my sub-class of TPrinter. To my surprise, it wasn't just a string of printer name but includes the driver and port too. In old PrintBegin(), the code at the end was      ...  ...
by hua
Thu Feb 16, 2023 6:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer hDC is 0
Replies: 6
Views: 362

Printer hDC is 0

... FWH1912   if lUser      ::hDC := GetPrintDC( GetActiveWindow(), lSelection, PrnGetPagNums() )      if ::hDC != 0         cModel = ::GetModel() + "," + ::GetDriver() + "," + ::GetPort()      endif   elseif cModel == nil      ::hDC ...
by hua
Wed Feb 15, 2023 4:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer hDC is 0
Replies: 6
Views: 362

Re: Font sizing for printout.

... was the dimension of the paper but it is the printable area of the page. All the vars refer to the printable area except for GetPhySize(). oPrn:cModel: HP DeskJet 420,winspool,LPT1: oPrn:nHorzRes(): 2400 [2400/300 dpi = 8 inches] oPrn:nVertRes(): 3025 [3025/300 dpi = 10.1 inches] oPrn:nLogPixelx(): ...
by James Bott
Tue Jun 23, 2020 12:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Font sizing for printout.
Replies: 3
Views: 751

bug Fivewin printer.prg

Hola, En source/printer.prg hay que usar FWStrings en : METHOD New( cDocument, lUser, lPreview, cModel, lModal, lSelection, cFile ) CLASS TPrinter MsgStop( "There are no printers installed!" + CRLF + ; "Please exit this application and install a printer." ...
by MOISES
Thu Feb 26, 2015 6:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: bug Fivewin printer.prg
Replies: 1
Views: 759

Re: Conversion 1303 to 1402 : PRINT ... cModel

I confirm the problem.
Because of this I didn't switch to 1402. Still I am using 1309.
by betoncu
Thu Apr 24, 2014 11:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Conversion 1303 to 1402 : PRINT ... cModel
Replies: 2
Views: 679

Re: Conversion 1303 to 1402 : PRINT ... cModel

... , probably all the methods which rebuild the printobject METHOD Rebuild() CLASS TPrinter   # ifdef FRANKDEMONT   local cModel := ::cModel      # endif............./* following modifications after fw1308 are commented out subject to further review 2014-02-15  ...
by Franklin Demont
Wed Apr 23, 2014 12:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Conversion 1303 to 1402 : PRINT ... cModel
Replies: 2
Views: 679

Conversion 1303 to 1402 : PRINT ... cModel

... the command : PRINT oPrn NAME cTitle TO aPrinters[nPrint] // Checked : PDFCREATOR , printer is defined in windows DBG oPrn oPrn Shows as expected cModel (PDFCreator) and a value for hDc BUT THE OUTPUT : DEFAULT WINDOWS PRINTER What has changed ? Frank
by Franklin Demont
Wed Apr 23, 2014 8:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Conversion 1303 to 1402 : PRINT ... cModel
Replies: 2
Views: 679

Re: PrinterDCFromName en FWH 12.04

Angel,

Puedes hacer MsgInfo( cModel ) y ver que valor te aparece ? gracias
by Antonio Linares
Sat Apr 12, 2014 9:51 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: PrinterDCFromName en FWH 12.04 (Solucionado)
Replies: 9
Views: 1743

Re: PrinterDCFromName en FWH 12.04

... comprobar y así lo tengo. De hecho lo rectifiqué en base al hilo que menciono en el anterior mensaje. METHOD New( cDocument, lUser, lPreview, cModel, lModal, lSelection, cFile ) CLASS TPrinter   local aOffset   local cPrinter   DEFAULT cDocument  := "FiveWin Report" ,;       lUser ...
by AngelSalom
Fri Apr 11, 2014 8:25 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: PrinterDCFromName en FWH 12.04 (Solucionado)
Replies: 9
Views: 1743

Re: Establecer impresora predeterminada

... impresora por defecto mediante la funcion de FW SetPrintDefault() Sets the specified printer as the default printer. Syntax: SetPrintDefault( <cModel> ) --> nil Parameters: <cModel> The name of the new default printer. Returns: Nil Source Code: SOURCE\CLASSES\PRINTER.PRG Repitiendo ...
by MarioG
Thu Feb 13, 2014 12:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Establecer impresora predeterminada
Replies: 10
Views: 3037

Re: FWH 13:09 Default Printer

Oscar, In Class TPrinter, function PrintBegin() we search for the printer based on the provided cModel name:      if ( nScan := Ascan( aPrn, { | v | Upper( xModel ) == Upper( v ) } ) ) == 0         nScan = Ascan( aPrn, { ...
by Antonio Linares
Sat Nov 16, 2013 10:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 13:09 Default Printer
Replies: 61
Views: 12633

Re: FWH 13:09 Default Printer

Default Printer in Windows = PDF reDirect V2 Selected Printer by User = \\OASYS4\Samsung SCX-4200 Series After ::hDC = PrinterDcFromName( , cModel, ) MsgInfo( cModel ) = \\OASYS4\Samsung SCX-4200 Series MsgInfo( GetProfString("Device") ) = CutePDF Writer Only the first time after the ...
by ORibeiro
Fri Nov 15, 2013 6:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 13:09 Default Printer
Replies: 61
Views: 12633

Re: FWH 13:09 Default Printer

What value has cModel ?

And what do you get for GetProfString( "Devices" ) ?
by Antonio Linares
Fri Nov 15, 2013 4:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 13:09 Default Printer
Replies: 61
Views: 12633
Next

Return to advanced search