topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
xHarbour ADS problem | Tim,
I'm not sure why you would expect it to create a problem, unless:
1) The "local" system is using a different locking scheme, or;
2) The "local" system is using the tables EXCLUSIVEly
At any rate, it *does* sound like Windows (firewall?) is blocking remote access. How are you USEing the tables? I remember seeing somewhere ADS AUTOUSE functions that default to LOCAL mode if REMOTE mode is unavailable. Does that sound like a possibility? The USE *should* fail unless there is some code defaulting to LOCAL use. |
xHarbour Builder + FivewinH Con Outlook Office 2003 | Hola foro,
El siguiente codigo trabaja *PERO*
[code:g787e6bw]
FUNCTION SendEmailByOutLook (cReportName) //Using Ole
LOCAL oOutLook,;
oMailItem,;
oRecip,;
oAttach
/* creating the OLE object */
oOutLook := TOleAuto():New("Outlook.Application")
/* creating a Mail Item object*/
oMailItem := oOutLook:Invoke("CreateItem", 0)
// creating Recipients object and attaching addresses
oRecip := oMailItem:Invoke("Recipients")
oRecip:Invoke("Add", "my_email_address@msn.com")
/* creating subject and body of the mail message using the
SET method of the mail item object */
oMailItem:Set("Subject", "Sending an e-mail with Outlook")
oMailItem:Set("Body", "Email test using outlook"+CRLF+CRLF)
/* creating an Attachment object and adding files to send */
oAttach := oMailItem:Invoke("Attachments")
oAttach:Invoke("Add", cReportName)
//oMailItem:Display(.T.)
/* Mail message created, now send the full featured message*/
oMailItem:Invoke("Send")
/* Destroy all the created OLE objects
oRecip:End()
oAttach:End()
oMailItem:End()
oOutLook:End()
*/
/* done */
MsgInfo("Email Message sent")
[/code:g787e6bw]
PERO si trato de cancelar antes de enviar el mensaje recibo el siguiente error:
[code:g787e6bw]
Time from start: 0 hours 1 mins 31 secs
Error occurred at: 09/04/2006, 09:52:21
Error description: Error Outlook.Application:CREATEITEM/16389 E_FAIL: RECIPIENTS
Args:
Stack Calls
===========
Called from: win32ole.prg => TOLEAUTO:RECIPIENTS(0)
Called from: => HB_EXECFROMARRAY(0)
Called from: win32ole.prg => TOLEAUTO:INVOKE(415)
Called from: rpreview0.prg => SENDEMAILBYOUTLOOK(2069)[/code:g787e6bw]
PERO si uso los mensajes para cerrar los objetos creados por ole
tambien recibo mensaje de error.
Alguna idea compañeros por donde anda el problema.
Estoy usando FWH 2.7 Aug_06, xHarbour Builder RC9 Aug_06 y Ms-Office 2003
Por otro lado me gustaria aber si alguien ha usado BLAT.DLL para enviar email y cual ha sido su experiencia
Saludos
George[/code] |
xHarbour Builder + FivewinH with Outlook Office 2003 | Hello forum,
The following code work *BUT*
[code:1opkr8xs]
FUNCTION SendEmailByOutLook (cReportName) //Using Ole
LOCAL oOutLook,;
oMailItem,;
oRecip,;
oAttach
/* creating the OLE object */
oOutLook := TOleAuto():New("Outlook.Application")
/* creating a Mail Item object*/
oMailItem := oOutLook:Invoke("CreateItem", 0)
// creating Recipients object and attaching addresses
oRecip := oMailItem:Invoke("Recipients")
oRecip:Invoke("Add", "my_email_address@msn.com")
/* creating subject and body of the mail message using the
SET method of the mail item object */
oMailItem:Set("Subject", "Sending an e-mail with Outlook")
oMailItem:Set("Body", "Email test using outlook"+CRLF+CRLF)
/* creating an Attachment object and adding files to send */
oAttach := oMailItem:Invoke("Attachments")
oAttach:Invoke("Add", cReportName)
//oMailItem:Display(.T.)
/* Mail message created, now send the full featured message*/
oMailItem:Invoke("Send")
/* Destroy all the created OLE objects
oRecip:End()
oAttach:End()
oMailItem:End()
oOutLook:End()
*/
/* done */
MsgInfo("Email Message sent")
[/code:1opkr8xs]
BUT if I did cancel, before to send the email, the following message show:
[code:1opkr8xs]
Time from start: 0 hours 1 mins 31 secs
Error occurred at: 09/04/2006, 09:52:21
Error description: Error Outlook.Application:CREATEITEM/16389 E_FAIL: RECIPIENTS
Args:
Stack Calls
===========
Called from: win32ole.prg => TOLEAUTO:RECIPIENTS(0)
Called from: => HB_EXECFROMARRAY(0)
Called from: win32ole.prg => TOLEAUTO:INVOKE(415)
Called from: rpreview0.prg => SENDEMAILBYOUTLOOK(2069)[/code:1opkr8xs]
BUT if I try to destroy all the created OLE objects, also get ERRORS
Some ideas programmers fellows and friends?
I am using FWH 2.7 Aug_06, xHarbour Builder RC9 Aug_06 and Ms-Office 2003
Beside, I would like to know if your are using or used in the past, BLAT.DLL, (or BLAT.EXE command line) to send emails, and how is your experience with it.
Regards
George |
xHarbour Builder + FivewinH with Outlook Office 2003 | MAPI Mail Sample:
define mail oMail ;
to ::oCustomer:email;
subject "Invoice "+::invno;
from user;
files (cFile),cFile
activate mail oMail
Note that cFile MUST contain the path.
Clauses
FILES - the first parameter must contain the full name of the file including the path. The second parameter must contain the name you want to apprear as the attachment name. Doing (cFile),cFile makes the attachment appear with the filename (without path). |
xHarbour Builder + FivewinH with Outlook Office 2003 | [quote="George":17557jpz]Hello forum,
The following code work *BUT*
[code:17557jpz]
FUNCTION SendEmailByOutLook (cReportName) //Using Ole
LOCAL oOutLook,;
oMailItem,;
oRecip,;
oAttach
/* creating the OLE object */
oOutLook := TOleAuto():New("Outlook.Application")
/* creating a Mail Item object*/
oMailItem := oOutLook:Invoke("CreateItem", 0)
// creating Recipients object and attaching addresses
oRecip := oMailItem:Invoke("Recipients")
oRecip:Invoke("Add", "my_email_address@msn.com")
/* creating subject and body of the mail message using the
SET method of the mail item object */
oMailItem:Set("Subject", "Sending an e-mail with Outlook")
oMailItem:Set("Body", "Email test using outlook"+CRLF+CRLF)
/* creating an Attachment object and adding files to send */
oAttach := oMailItem:Invoke("Attachments")
oAttach:Invoke("Add", cReportName)
//oMailItem:Display(.T.)
/* Mail message created, now send the full featured message*/
oMailItem:Invoke("Send")
/* Destroy all the created OLE objects
oRecip:End()
oAttach:End()
oMailItem:End()
oOutLook:End()
*/
/* done */
MsgInfo("Email Message sent")
[/code:17557jpz]
BUT if I did cancel, before to send the email, the following message show:
[code:17557jpz]
Time from start: 0 hours 1 mins 31 secs
Error occurred at: 09/04/2006, 09:52:21
Error description: Error Outlook.Application:CREATEITEM/16389 E_FAIL: RECIPIENTS
Args:
Stack Calls
===========
Called from: win32ole.prg => TOLEAUTO:RECIPIENTS(0)
Called from: => HB_EXECFROMARRAY(0)
Called from: win32ole.prg => TOLEAUTO:INVOKE(415)
Called from: rpreview0.prg => SENDEMAILBYOUTLOOK(2069)[/code:17557jpz]
BUT if I try to destroy all the created OLE objects, also get ERRORS
Some ideas programmers fellows and friends?
I am using FWH 2.7 Aug_06, xHarbour Builder RC9 Aug_06 and Ms-Office 2003
Beside, I would like to know if your are using or used in the past, BLAT.DLL, (or BLAT.EXE command line) to send emails, and how is your experience with it.
Regards
George[/quote:17557jpz]
have you testet
[code:17557jpz]
TRY
... sendroutine
CATCH
MsgAlert("No Mail send")
END
[/code:17557jpz]
??
Best regards, Norbert |
xHarbour Builder + FivewinH with Outlook Office 2003 | James and NK
Thanks for your help.
Now I get the following alert dialog message:
Can't contact LDAP directory server (81)
Nothing is working for me to send eMails <!-- s:x --><img src="{SMILIES_PATH}/icon_mad.gif" alt=":x" title="Mad" /><!-- s:x -->
Regards
George |
xHarbour Builder + FivewinH with Outlook Office 2003 | George,
If you use the FROM USER clause does the Outlook new message dialog come up? If not perhaps Outlook is not set as the default MAPI client.
James |
xHarbour Builder + FivewinH with Outlook Office 2003 | James,
The OUTLOOK dialog came up OK with attachment included. But I receive the message
Can't contact LDAP directory server (81);
Pressing the SEND button do nothing, but the email is in outlook INBOX folder. I have to go to OUTLOOK and do the send/receive menu option in order to send the email. I would like that after press SEND button, from outlook dialog, the email gone inmediately.
Regards
George |
xHarbour Builder + FivewinH with Outlook Office 2003 | George,
>The OUTLOOK dialog came up OK with attachment included. But I receive the message
>Can't contact LDAP directory server (81);
OK, a Google search shows that the above message has nothing to do with Fivewin, but is an Outlook bug that can be fixed. See here:
"Can't Contact LDAP Directory server (81)" error message when you write an e-mail message in Outlook 2002
<!-- m --><a class="postlink" href="http://support.microsoft.com/kb/323612/">http://support.microsoft.com/kb/323612/</a><!-- m -->
>Pressing the SEND button do nothing, but the email is in outlook INBOX folder.
I presume you meant the OUTBOX not the INBOX.
>I have to go to OUTLOOK and do the send/receive menu option in order to send the email. I would like that after press SEND button, from outlook dialog, the email gone inmediately.
This could be one of two things. Either Outlook is not configured to send all emails immediately, or the email is not being sent because the address is not being resolved per the bug causing the error message. Once you fix the Outlook bug, then maybe this will be solved too.
If you have another computer around you might try tesing the Fivewin MAPI email code on it too.
James |
xHarbour Builder + FivewinH with Outlook Office 2003 | James,
"Can't Contact LDAP Directory server (81)" error message when you write an e-mail message in Outlook 2002
<!-- m --><a class="postlink" href="http://support.microsoft.com/kb/323612/">http://support.microsoft.com/kb/323612/</a><!-- m -->
This problem is resolved. Thank you.
>I presume you meant the OUTBOX not the INBOX.
You are right is OUTBOX
>I have to go to OUTLOOK and do the send/receive menu option in order >to send the email. I would like that after press SEND button, from >outlook dialog, the email gone inmediately.
Nothing is sent until I enter to Outlook. I tried everything I believe but does not work
Regards
George |
xHarbour Builder + FivewinH with Outlook Office 2003 | George,
>I have to go to OUTLOOK and do the send/receive menu option in order >to send the email. I would like that after press SEND button, from >outlook dialog, the email gone inmediately.
>Nothing is sent until I enter to Outlook. I tried everything I believe but does not work.
OK, but is Oulook configured to send emails immediately? I don't have a copy of Oulook on this PC, but with Outlook Express go to Tools, Options, select the Send tab and check "Send messages immediately." If that is not checked then you have to manually select the Send button as you are having to do.
James |
xHarbour Builder and Fivewin | use:
Version S.O.: Windows NT Professional 6.02.9200
Compilador..: XCC ISO C Compiler 2.70
BuildDate...: Nov 17 2011 11:26:59
CodeVer.....: PCode Version: 10
xHarbour....: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 9382)
FiveWin.....: FWHX 12.08
SQLRDD
everything works great...
I would now like to move to FiveWin 15.07 but there is a problem with compiling...
Is the versions FWH15.07 and xHarbour 1.2.1 are compatible? I tried with the latest demo version of xHarboura but the problems are only increasing?
Please look <!-- m --><a class="postlink" href="https://groups.google.com/forum/#!topic/xharbour-builder/oUAlSMWN7II">https://groups.google.com/forum/#!topic ... UAlSMWN7II</a><!-- m -->
Best regards,
Milos Tajkov |
xHarbour Builder and Fivewin | Milos,
That is not a public group
Please copy the post contents here, thanks |
xHarbour Builder and Fivewin | Sorry
I use:
Version S.O.: Windows NT Professional 6.02.9200
Compilador..: XCC ISO C Compiler 2.70
BuildDate...: Nov 17 2011 11:26:59
CodeVer.....: PCode Version: 10
xHarbour....: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 9382)
FiveWin.....: FWHX 12.08
SQLRDD
everything works great...
I would now like to move to FiveWin 15.07 but there is a problem with compiling...
Is the versions FWH15.07 and xHarbour 1.2.1 are compatible? I tried with the latest demo version of xHarboura but the problems are only increasing?
Please help,
Best regards,
Milos Tajkov
[b:lmi34nhl]Ron Pinkas
What kind of compiling errors? Please provide more details.[/b:lmi34nhl]
Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"C:\fwh1507\lib" -LIBPATH:"C:\xHB2011\lib" -LIBPATH:"C:\xHB2011\c_lib" -LIBPATH:"C:\xHB2011\c_lib\win" "obj32\LdSql.obj" "obj32\scintila.obj" "obj32\Util.obj" "obj32\Imenik.obj" "obj32\LDSQL.res" "C:\xHb2011\Lib\mem32.lib" "C:\xHb2011\Lib\send32.lib" "FiveHCM.lib" "FiveHMX.lib" "OptG.lib" "sql.lib" "ace32.lib" "libmysql.lib" "xhb.lib" "dbf.lib" "nsx.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3comm.lib" crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib OleDlg.lib version.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"LdSql.exe"<<<
xLINK: warning: Symbol 'C:\fwh1507\lib\FiveHCM.lib(DATETIME.obj)->_HB_FUN_SETDATE previously defined at C:\xHB2011\lib\xhb.lib(dattime3.obj)' is multiply defined.
xLINK: warning: Symbol 'C:\fwh1507\lib\FiveHCM.lib(DATETIME.obj)->_HB_FUN_SETTIME previously defined at C:\xHB2011\lib\xhb.lib(dattime3.obj)' is multiply defined.
Creating object: LdSql.EXP
Creating library: LdSql.LIB
xLINK: error: Unresolved external symbol '_HB_FUN_HB_GETFILESINZIP referenced from FiveHMX.lib(OLEFUNCS.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_UNZIPFILE referenced from FiveHMX.lib(OLEFUNCS.obj)'.
xLINK: error: Unresolved external symbol '_GetMenuInfo referenced from FiveHCM.lib(MENUDRAW.obj)'.
xLINK: error: Unresolved external symbol '_SetMenuInfo referenced from FiveHCM.lib(MENUDRAW.obj)'.
xLINK: error: Unresolved external symbol '_GetMenuBarInfo referenced from FiveHCM.lib(MENUDRAW.obj)'.
xLINK: error: Unresolved external symbol '_GdiplusStartup referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdiplusShutdown referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipAlloc referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateFromHDC referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipFree referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDeleteGraphics referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSetSmoothingMode referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreatePen1 referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSetPenWidth referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSetPenColor referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSetPenLineCap197819 referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSetPenMode referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDeletePen referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateSolidFill referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCloneBrush referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDeleteBrush referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreatePathGradientFromPath referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDrawLine referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDrawRectangle referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipFillRectangle referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDrawEllipse referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipFillEllipse referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreatePath referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipStartPathFigure referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDeletePath referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipAddPathLineI referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipAddPathRectangleI referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipAddPathArcI referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipClosePathFigure referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDrawPath referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDrawArc referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipIsClipEmpty referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSetPageUnit referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateBitmapFromFileICM referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateBitmapFromFile referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDisposeImage referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCloneImage referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateBitmapFromScan0 referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateBitmapFromHBITMAP referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateBitmapFromResource referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCloneBitmapAreaI referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDrawImageI referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDrawImageRectI referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipGetImageGraphicsContext referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSaveImageToFile referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipGetImageThumbnail referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateHBITMAPFromBitmap referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipGetImageWidth referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipGetImageHeight referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipImageRotateFlip referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipBitmapSetPixel referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipGetImagePixelFormat referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipBitmapGetPixel referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateBitmapFromHICON referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateHICONFromBitmap referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateBitmapFromStreamICM referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateBitmapFromStream referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipFillRectangleI referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipBitmapLockBits referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipBitmapUnlockBits referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateImageAttributes referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSetImageAttributesColorMatrix referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSetImageAttributesColorKeys referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipCreateMatrix referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDeleteMatrix referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipTranslateMatrix referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipScaleMatrix referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipRotateMatrix referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipSetWorldTransform referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipResetWorldTransform referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: error: Unresolved external symbol '_GdipDrawImageRectRectI referenced from FiveHCM.lib(GDIPLUS.obj)'.
xLINK: fatal error: 76 unresolved external(s).
Type: C >>>Couldn't build: LdSql.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>> 1409<<<
[b:lmi34nhl]Ron Pinkas
You should ask Antonio, about these MISSING EXTERNALS errors.[/b:lmi34nhl] |
xHarbour Builder and Fivewin | Easy, please add the library
\xhb\lib\xhbzip.lib
\xhb\c_lib\win\gsiplus.lib
\fwh\lib\xfw.lib
[img:1r7iase8]https://i.imgur.com/rvB2kyD.png[/img:1r7iase8]
[img:1r7iase8]https://i.imgur.com/srC4ydd.png[/img:1r7iase8]
[img:1r7iase8]https://i.imgur.com/EGJkUsB.png[/img:1r7iase8]
salu2
carlos vargas |
xHarbour Builder and Fivewin | you can download xfw.zip here:
[url:3izlj6ep]https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/xfw.zip[/url:3izlj6ep] |
xHarbour CVS y FHW | Holas,
saben cual es la ultima version de FWH que se puede utilizar con la version del CVS de xHarbour, he recompilado la version 2.6 pero los ejecutables no corren, que version o que modificaciones hay que hacer para utilizar el ultimo xHarbour.
saludos y gracias
Marcelo |
xHarbour CVS y FHW | Marcelo,
Desde la versión 2.6 de FWH hay cambios internos hasta la 2.7. Lo idóneo es actualizar FWH para usar el xHarbour más reciente. |
xHarbour Commercial and latest FWH | I recently upgraded to the latest FWH and I am able to compile my program using xBuilder/xHarbour however, I'm getting an error in a particular function.
I'm using a 3rd party lib for emailing. This is the code in question:
hSmtp := LoadLibrary("CSMTPAV9.dll")
// Must initialize first. Should return true
lSmtpInit := SmtpInitialize(CSTOOLS9_LICENSE_KEY)
DLL FUNCTION SmtpInitialize(license AS LPSTR, initdata AS LPSTR) AS BOOL ;
PASCAL FROM "SmtpInitializeA" LIB hSmtp
The license key is a define for a long string of random letters.
The error I get is:
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20170127)
FiveWin version: FWH 23.04
C compiler version: Pelles ISO C Compiler 3.0 (32-bit)
Windows 10 32 Bits, version: 6.2, Build 9200
Time from start: 0 hours 0 mins 23 secs
Error occurred at: 08/04/23, 20:52:10
Error description: Error BASE/1099 Argument error: STR
Args:
[ 1] = P 0x51000000
[ 2] = U
[ 3] = U
Stack Calls
===========
Called from: => STR( 0 )
Called from: Catalyst.Prg => SMTPINITIALIZE( 0 )
Called from: Catalyst.Prg => INITIALIZECATALYST( 230 )
Called from: Catalyst.Prg => LOADCATALYST( 204 )
Called from: Catalyst.Prg => (b)LOADCATLIBS( 192 )
Has something changed about the DLL FUNCTION? Should I be defining and calling this function another way? This has worked for years in previous versions of FWH and xHarbour.
Thanks,
Randal Ferguson |
xHarbour Commercial and latest FWH | Dear Randal,
Your dll.ch must contain this:
[code=fw:2249ulx8]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"P"</span> ;;<br /> _pOld = _hDLL ;;<br /> _hDLL = PtrToNum<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> ;;<br /> end ;;</div>[/code:2249ulx8]
Please double check that you are using the most recent dll.ch, here it is
[code=fw:2249ulx8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Copyright FiveTech 1993-2022</span><br /><br />#ifndef _DLL_CH<br /><span style="color: #00D7D7;">#define</span> _DLL_CH<br /><br />#ifndef _C_TYPES<br /> <span style="color: #00D7D7;">#define</span> _C_TYPES<br /> <span style="color: #00D7D7;">#define</span> VOID <span style="color: #000000;">0</span><br /> <span style="color: #00D7D7;">#define</span> BYTE <span style="color: #000000;">1</span><br /> <span style="color: #00D7D7;">#define</span> CHAR <span style="color: #000000;">2</span><br /> <span style="color: #00D7D7;">#define</span> WORD <span style="color: #000000;">3</span><br /><br />#ifdef __CLIPPER__<br /> <span style="color: #00D7D7;">#define</span> _INT <span style="color: #000000;">4</span> <span style="color: #B900B9;">// conflicts with Clipper Int()</span><br />#else<br /> <span style="color: #00D7D7;">#define</span> _INT <span style="color: #000000;">7</span><br />#endif<br /><br /> <span style="color: #00D7D7;">#define</span> BOOL <span style="color: #000000;">5</span><br /> <span style="color: #00D7D7;">#define</span> HDC <span style="color: #000000;">6</span><br /> <span style="color: #00D7D7;">#define</span> LONG <span style="color: #000000;">7</span><br /> <span style="color: #00D7D7;">#define</span> STRING <span style="color: #000000;">8</span><br /> <span style="color: #00D7D7;">#define</span> LPSTR <span style="color: #000000;">9</span><br /> <span style="color: #00D7D7;">#define</span> PTR <span style="color: #000000;">10</span><br /> <span style="color: #00D7D7;">#define</span> _DOUBLE <span style="color: #000000;">11</span> <span style="color: #B900B9;">// conflicts with BORDER DOUBLE</span><br /> <span style="color: #00D7D7;">#define</span> DWORD <span style="color: #000000;">12</span><br /> <br /> <span style="color: #00D7D7;">#define</span> LONGLONG <span style="color: #000000;">13</span><br />#endif<br /><br />#translate NOREF<span style="color: #000000;">(</span><span style="color: #000000;">[</span>@<span style="color: #000000;">]</span><x><span style="color: #000000;">)</span> => <x><br /><br />#ifndef __HARBOUR__<br /> #ifndef __XPP__<br /> #ifndef __CLIPPER__<br /> #ifndef __C3__<br /> <span style="color: #00D7D7;">#define</span> __CLIPPER__<br /> #endif<br /> #endif<br /> #endif<br />#endif<br /><br />#ifndef __CLIPPER__<br /> #translate DLL32 => DLL<br />#endif<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#xcommand DLL <span style="color: #000000;">[</span><static:<span style="color: #000000;">STATIC</span>><span style="color: #000000;">]</span> <span style="color: #00C800;">FUNCTION</span> <FuncName><span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <uParam1> AS <type1> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span>, <uParamN> AS <typeN> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;<br /> AS <return> <span style="color: #000000;">[</span><pascal:<span style="color: #000000;">PASCAL</span>><span style="color: #000000;">]</span> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FROM</span> <SymName> <span style="color: #000000;">]</span> LIB <*DllName*> ;<br /> => ;<br /> <span style="color: #000000;">[</span><static><span style="color: #000000;">]</span> <span style="color: #00C800;">function</span> <FuncName><span style="color: #000000;">(</span> <span style="color: #000000;">[</span>NOREF<span style="color: #000000;">(</span><uParam1><span style="color: #000000;">)</span><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,NOREF<span style="color: #000000;">(</span><uParamN><span style="color: #000000;">)</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">local</span> _hDLL := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span>, <DllName>, LoadLibrary<span style="color: #000000;">(</span> <<span style="color: #000000;">(</span>DllName<span style="color: #000000;">)</span>> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">local</span> uResult ;;<br /> <span style="color: #00C800;">local</span> cFarProc ;;<br /> <span style="color: #00C800;">local</span> _pOld ;;<br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"P"</span> ;;<br /> _pOld = _hDLL ;; <br /> _hDLL = PtrToNum<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> ;;<br /> end ;;<br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">Abs</span><span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> > <span style="color: #000000;">32</span> ;;<br /> cFarProc = GetProcAdd<span style="color: #000000;">(</span> _hDLL,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> <span style="color: #000000;">[</span> Empty<span style="color: #000000;">(</span> <SymName> <span style="color: #000000;">)</span> == <span style="color: #000000;">]</span> .t., <<span style="color: #000000;">(</span><span style="color: #0000ff;">FuncName</span><span style="color: #000000;">)</span>>, <SymName> <span style="color: #000000;">)</span>,;<br /> <span style="color: #000000;">[</span><.pascal.><span style="color: #000000;">]</span>, <return> <span style="color: #000000;">[</span>,<type1><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,<typeN><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> uResult = FWCallDLL<span style="color: #000000;">(</span> cFarProc <span style="color: #000000;">[</span>,<uParam1><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,<uParamN><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> _pOld <span style="color: #000000;">)</span> ;;<br /> _hDLL = _pOld ;;<br /> end ;; <br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span>,, FreeLibrary<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">else</span> ;;<br /> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Error code: "</span> + LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" loading "</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"C"</span>, <DllName>, Str<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> end ;;<br /> <span style="color: #00C800;">return</span> uResult<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#xcommand DLL32 <span style="color: #000000;">[</span><static:<span style="color: #000000;">STATIC</span>><span style="color: #000000;">]</span> <span style="color: #00C800;">FUNCTION</span> <FuncName><span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <uParam1> AS <type1> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span>, <uParamN> AS <typeN> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;<br /> AS <return> <span style="color: #000000;">[</span><pascal:<span style="color: #000000;">PASCAL</span>><span style="color: #000000;">]</span> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FROM</span> <SymName> <span style="color: #000000;">]</span> LIB <*DllName*> ;<br /> => ;<br /> <span style="color: #000000;">[</span><static><span style="color: #000000;">]</span> <span style="color: #00C800;">function</span> <FuncName><span style="color: #000000;">(</span> <span style="color: #000000;">[</span>NOREF<span style="color: #000000;">(</span><uParam1><span style="color: #000000;">)</span><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,NOREF<span style="color: #000000;">(</span><uParamN><span style="color: #000000;">)</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">local</span> _hDLL := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span>, <DllName>, LoadLib32<span style="color: #000000;">(</span> <<span style="color: #000000;">(</span>DllName<span style="color: #000000;">)</span>> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">local</span> uResult ;;<br /> <span style="color: #00C800;">local</span> cFarProc ;;<br /> <span style="color: #00C800;">local</span> _pOld ;;<br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"P"</span> ;;<br /> _pOld = _hDLL ;; <br /> _hDLL = PtrToNum<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> ;;<br /> end ;;<br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">Abs</span><span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> > <span style="color: #000000;">32</span> ;;<br /> cFarProc = GetProcAdd32<span style="color: #000000;">(</span> _hDLL,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> <span style="color: #000000;">[</span> Empty<span style="color: #000000;">(</span> <SymName> <span style="color: #000000;">)</span> == <span style="color: #000000;">]</span> .t., <<span style="color: #000000;">(</span><span style="color: #0000ff;">FuncName</span><span style="color: #000000;">)</span>>, <SymName> <span style="color: #000000;">)</span>,;<br /> <span style="color: #000000;">[</span><.pascal.><span style="color: #000000;">]</span>, <return> <span style="color: #000000;">[</span>,<type1><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,<typeN><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> uResult = FWCallDLL32<span style="color: #000000;">(</span> cFarProc <span style="color: #000000;">[</span>,<uParam1><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,<uParamN><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> _pOld <span style="color: #000000;">)</span> ;;<br /> _hDLL = _pOld ;;<br /> end ;; <br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span>,, FreeLib32<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">else</span> ;;<br /> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Error code: "</span> + LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" loading "</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"C"</span>, <DllName>, Str<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> end ;;<br /> <span style="color: #00C800;">return</span> uResult<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#endif</div>[/code:2249ulx8] |
xHarbour Commercial and latest FWH | I put together a small test and if works fine with Fivewin and Harbour (Borland) but not xBuilder/xHarbour.
The problem is with LoadLibrary, this function returns a pointer instead of a numeric value.
I'm linking these libs:
\fwh\lib\xfw.lib
\xhb\lib\xHBZIP.LIB
\xhb\lib\xHBZipDll.lib
\xhb\c_lib\win\gdiplus.lib
I made sure I was including the most recent dll.ch however, when I linked in dll.c from the \fwh\source\winapi folder it now works. Perhaps there is another version of LoadLIbrary contained in one of the above libs.
Thanks,
Randal |
xHarbour Commercial and latest FWH | Dear Randal,
xHarbour provides a function LoadLibrary() that returns a pointer, thats why we modified dll.ch to check if a pointer is returned and then we turn it into a number.
When you link FWH dll.c then you are using FWH LoadLibrary() that retuns a number and everything is correct.
So, again, it seems as you are not using the most recent FWH dll.ch
Please double check it again, thanks |
xHarbour Error irrecuperable 9024 | el mensaje de error todo o que dice es:
hb_xrealloc requested to resize to zero bytes
y se sale del programa.
Se produce dentro de un bucle for-next cuando la variable local i que hace de contador llega exactamente a 42824.
No se a que se debe el error. |
xHarbour Error irrecuperable 9024 | Verhoven,
Estás usando una versión reciente de xharbour ?
Has probado con la que proporcionamos desde <!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/xharbour.exe">www.fivetechsoft.com/files/xharbour.exe</a><!-- w --> ? |
xHarbour Error irrecuperable 9024 | La versión para w2.4 de Puerto Sur.
Saludos. |
xHarbour Error irrecuperable 9024 | Verhoven,
Prueba con la versión <!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/xharbour.exe">www.fivetechsoft.com/files/xharbour.exe</a><!-- w --> que es la más reciente. |
xHarbour Libs for LogRdd | What libs do we need to link in in order to use LOGRDD for xHarbour?
TIA |
xHarbour Libs for LogRdd | UsrRdd.Lib or hbUsrRdd.lib |
xHarbour Libs for LogRdd | Tq. Solved my issue by adding in usrRdd.lib and rdds.lib |
xHarbour Modo Consola (Solucionado) | Hola de nuevo,
¿Cómo se puede evitar que se abran dos ventanas al enlazar la librería GTWVG? (Se me abre una consola negra con el nombre del ejecutable) y otra delante con el programa).
Sigo a vueltas con la programación en modo consola.
He conseguido recompilar el programa para que se ejecute en modo consola, pero me encuentro que al ejecutarlo se abre una ventana en Windows y se puede cerrar directamente con el botón cerrar de Windows, con la consiguiente perdida de información.
Buscando información he encontrado que puede enlazar la librería GTWVG , de esta forma se puede definir el tipo de letra de la ventana y deshabilitar el botón Cerrar, pero tiene el inconveniente que aparece otra ventana detrás y al cerrar la de atrás se cierran las dos.
Gracias |
xHarbour Modo Consola (Solucionado) | Hi...
Esta configuración la usaba con xharbour org + gtwvw ( con xharbour.com no lo se, y también lo estoy requiriendo)
rem %BCC_DIR%\bin\ilink32 -Gn -aa -Tpe -s -L%BCC_DIR%\LIB\ @b32.bc >> otro1
rem sin pantalla dos al inicio
%BCC_DIR%\bin\ilink32 -Gn -ap -Tpe -s -L%BCC_DIR%\LIB\ @b32.bc >> otro1
rem con pantalla dos al inicio
Johnson Russi |
xHarbour Modo Consola (Solucionado) | Gracias. Es lo que necesitaba.
Un saludo |
xHarbour PROCEDURE/FUNCTION call from the Client | Hi All,
I wanted to write some business logic in the xHarbour code as like stored procedure. So the Client program (FWH UI) will call the another pure xHarbour procedure (which will be in local server ) and the xHarbour procedure should execute at server side and once the execution is done the control should return to Client Program (FWH UI). What is best method to implement the this requirement ? Thanks in advance!
Thanks
Shridhar |
xHarbour SVN | Tratando de compilar desde SVN de xHarbour, obtengo los siguientes errores:
[quote:2ucx2dwa]
Turbo Incremental Link 6.10 Copyright (c) 1997-2010 Embarcadero Technologies, Inc.
Error: Unresolved external '_hb_s_hb_exc' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_trace_critical_Destroy' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|trace
Error: Unresolved external '_hb_trace_critical_Init' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|trace
Error: Unresolved external '_hb_trace_critical_Lock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|trace
Error: Unresolved external '_hb_trace_critical_UnLock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|trace
Error: Unresolved external '_hb_idle_releaseCPU' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|idle
Error: Unresolved external '_hb_idle_msec_default' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|idle
Error: Unresolved external '_hb_stack_lock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|console
Error: Unresolved external '_hb_stack_unlock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|console
Error: Unresolved external '_hb_console_safe_lock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|console
Error: Unresolved external '_hb_console_safe_unlock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|console
Error: Unresolved external '_hb_console_Lock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|console
Error: Unresolved external '_hb_console_UnLock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|console
Error: Unresolved external '_hb_filebuf_critical_Lock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|filebuf
Error: Unresolved external '_hb_filebuf_critical_UnLock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|filebuf
Error: Unresolved external '_hb_filebuf_critical_Init' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|filebuf
Error: Unresolved external '_hb_rddGetAliasNameTH' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wafunc
Error: Unresolved external '_hb_get_Area_Sym' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wafunc
Error: Unresolved external '_hb_get_Area_Handle_From_Name' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wafunc
Error: Unresolved external '_hb_get_Area_Handle_From_Sym' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wafunc
Error: Unresolved external '_hb_rdd_wacore_LockInit' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wacore
Error: Unresolved external '_hb_rdd_wacore_rddWaInit' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wacore
Error: Unresolved external '_hb_rdd_wacore_hb_atomic_inc' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wacore
Error: Unresolved external '_hb_rdd_wacore_rddChangeSetWorkareasShared' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wacore
Error: Unresolved external '_hb_rdd_wacore_rddWaShutDown' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wacore
Error: Unresolved external '_hb_rdd_wacore_Lock' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wacore
Error: Unresolved external '_hb_rdd_wacore_Unlock' referenced from L:\SVN\XHARBOUR\LIB\RDD.LIB|wacore
Error: Unresolved external '_hb_service_threadCancel' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|hbserv
Error: Unresolved external '_hb_service_ConsoleHandlerRoutineInit' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|hbserv
Error: Unresolved external '_hb_service_ConsoleHandlerRoutineDestroyStack' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|hbserv
Error: Unresolved external '_hb_service_LockInit' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|hbserv
Error: Unresolved external '_hb_service_hbstartservice' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|hbserv
Error: Unresolved external '_hb_service_Lock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|hbserv
Error: Unresolved external '_hb_service_UnLock' referenced from L:\SVN\XHARBOUR\LIB\RTL.LIB|hbserv
Error: Unresolved external '_hb_macro_critical_Lock' referenced from L:\SVN\XHARBOUR\LIB\MACRO.LIB|macroy
Error: Unresolved external '_hb_macro_critical_UnLock' referenced from L:\SVN\XHARBOUR\LIB\MACRO.LIB|macroy
Error: Unable to perform link
FiveWin for (x)Harbour 12.04
[/quote:2ucx2dwa]
Alguien sabe qué librería(s) me faltan para poder compilar???? |
xHarbour SVN | Bayron,
¿Has mirado en samples buildhx.bat?. |
xHarbour SVN | Gracias Lucas...
Cuando encuentro un error de estos, empiezo un proceso de prueba y error, y efectivamente lo primero que hago es ver ese archivo...
El problema actual ya lo resolví con
make_b32 clean
y recontruirlo de nuevo... |
xHarbour September 2008 | Hello,Should I replace my current version of xHarbour (FWH-gtwin.lib-05/14/2008) with the xHarbour version September 2008? |
xHarbour September 2008 | [quote="cdmmaui":pjiv4rt3]Should I replace my current version of xHarbour (FWH-gtwin.lib-05/14/2008) with the xHarbour version September 2008?[/quote:pjiv4rt3]Yes, you should <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->Patrick |
xHarbour September 2008 | Hi Patrick,Is there a newer version of xbScript to correct the previous problems of connecting to an ADS database? |
xHarbour September 2008 | [quote="cdmmaui":jgy7iqkr]Is there a newer version of xbScript to correct the previous problems of connecting to an ADS database?[/quote:jgy7iqkr]xbScript.LIB, yes. xbScript.DLL, no.Which one are you using?Patrick |
xHarbour September 2008 | Hi Patrick, I am using xbscript.dll, how would I get xbscript.lib to work? Would I create CGI applications? If so, can you provide sample source code with compile and link command lines? This would help me greatly as we had to switch to another application to handle web processing. |
xHarbour September 2008 | [quote="cdmmaui":158y1eur]Hi Patrick, I am using xbscript.dll, how would I get xbscript.lib to work? Would I create CGI applications? If so, can you provide sample source code with compile and link command lines? This would help me greatly as we had to switch to another application to handle web processing.[/quote:158y1eur]Ok, for xbScript.dll I dont have an update availabe at this time. I will try to release one ASAP. Please use the XBScript open news group on <!-- m --><a class="postlink" href="news://news.xHarbour.com">news://news.xHarbour.com</a><!-- m --> for support questions regarding XBScript.ThanksPatrick |
xHarbour Toleauto and Fivewin 2.7 | Antonio,
Could you please comments about this information told me Rene:
[quote:35pxekg1]
On the other hand, be sure to be using the xHarbour's TOLE, in the recent versions of FW, as far as I Know, (not tested yet), Vykthor commented me that it there's a TOLE class in the FiveHC.LIB, that overwrites the xHarbour TOLe when linking, so, you may need to manually remove the TOLE module in the FiveHC.lib.[/i]
[/quote:35pxekg1]
If it is true can you fix that or give us some instruction about how to fix.
Regards
George |
xHarbour Toleauto and Fivewin 2.7 | George,
FWH does not include any Class TOLE. |
xHarbour Toleauto and Fivewin 2.7 | Antonio,
Thanks
Regards
George |
xHarbour and Pelles C 7.0 | I use:
- fwh1507
- xHarbour 1.2.3
- Pelles C 7
When I make a change to the RC file, three lines of codes are automatically added in the same file:
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
In that case, the application won’t compile (error #endif before #if) . When I erase those lines from RC file, compilation is successfully completed and the application is functioning. Is there any solution to the problem?
Best regards! |
xHarbour and hash functions | Hello,
does xHarbour support hash functions?
Best regards,
Otto
Hash table
hb_Hash() Returns a hash table
hb_HAllocate() Preallocates a hash table
hb_HAutoAdd() Sets the 'auto add' flag for the hash table
hb_HBinary() Sets the 'binary' flag for the hash table
hb_HCaseMatch() Sets the 'case match' flag for the hash table
hb_HClone() Creates a copy of a hash table
hb_HCopy() Adds entries from the source hash table to the destination hash table
hb_HDefault() Returns/sets a default value for a hash table.
hb_HDel() Removes a key/value pair from a hash table
hb_HDelAt() Removes an entry from a hash table based on its index position
hb_HEval() Evaluate a code block across the contents of a hash table
hb_HFill() Fills a hash table with a value
hb_HGet() Returns a hash value
hb_HGetDef() Returns a hash value, or a default value if the key is not present
hb_HHasKey() Determines whether a hash table has an entry with a give key
hb_HKeyAt() Gets a hash table key at a given position
hb_HKeys() Returns an array of the keys of a hash table
hb_HMerge() Merges a source hash table into a destination hash table
hb_HPairAt() Returns a two-dimensional array of a hash table entry key/value pair
hb_HPos() Locates the index of a key within a hash table
hb_HScan() Scans a hash table
hb_HSet() Sets a hash value
hb_HSort() Reorganizes the internal list of the hash table to be sorted
hb_HValueAt() Gets/sets a hash value at a given position
hb_HValues() Returns an array of the values of a hash table |
xHarbour and hash functions | Both Harbour and xHarbour support all these functions but with slightly different names.
hbcompat.ch provides cross translations.
[code=fw:xdu8y94l]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#ifdef __XHARBOUR__<br /> <span style="color: #B900B9;">/* Hash item functions */</span><br /> #xtranslate hb_Hash<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => Hash<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HHasKey<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HHasKey<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HPos<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HGetPos<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HGet<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HGet<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HSet<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HSet<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HDel<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HDel<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HKeyAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HGetKeyAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HValueAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HGetValueAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HValueAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HSetValueAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HPairAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HGetPairAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HDelAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HDelAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HKeys<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HGetKeys<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HValues<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HGetValues<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HFill<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HFill<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HClone<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HClone<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HCopy<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HCopy<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HMerge<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HMerge<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HEval<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HEval<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HScan<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HScan<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HSetCaseMatch<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HSetCaseMatch<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HCaseMatch<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HGetCaseMatch<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HSetAutoAdd<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HSetAutoAdd<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HAutoAdd<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HGetAutoAdd<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HAllocate<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HAllocate<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate hb_HDefault<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => HDefault<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br />#else<br /> <span style="color: #B900B9;">/* Hash item functions */</span><br /> #xtranslate Hash<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_Hash<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HHasKey<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HHasKey<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGetPos<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HPos<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGet<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HGet<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HSet<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HSet<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HDel<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HDel<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGetKeyAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HKeyAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGetValueAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HValueAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HSetValueAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HValueAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGetPairAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HPairAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HDelAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HDelAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGetKeys<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HKeys<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGetValues<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HValues<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HFill<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HFill<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HClone<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HClone<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HCopy<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HCopy<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HMerge<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HMerge<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HEval<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HEval<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HScan<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HScan<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HSetCaseMatch<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HSetCaseMatch<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGetCaseMatch<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HCaseMatch<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HSetAutoAdd<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HSetAutoAdd<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGetAutoAdd<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HAutoAdd<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HAllocate<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HAllocate<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HDefault<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HDefault<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HSetPartition<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> =><br /><br /> <span style="color: #B900B9;">/* Associative hash array functions */</span><br /> #xtranslate haAGetKeyAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HKeyAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate haAGetValueAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HValueAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate haADelAt<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HDelAt<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate haAGetPos<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => hb_HPos<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate haAGetRealPos<span style="color: #000000;">(</span> <x>, <y> <span style="color: #000000;">)</span> => iif<span style="color: #000000;">(</span> HB_ISNUMERIC<span style="color: #000000;">(</span> <y> <span style="color: #000000;">)</span> .AND. <y> >= <span style="color: #000000;">1</span> .AND. ;<br /> Int<span style="color: #000000;">(</span> <y> <span style="color: #000000;">)</span> <= Len<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span>, Int<span style="color: #000000;">(</span> <y> <span style="color: #000000;">)</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> #xtranslate HGetVaaPos<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span> => <span style="color: #000000;">{</span>| h | ;;<br /> <span style="color: #00C800;">LOCAL</span> a := Array<span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> h <span style="color: #000000;">)</span>, v ;;<br /> <span style="color: #00C800;">FOR</span> EACH v IN a ;;<br /> v := v:__enumIndex<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">NEXT</span> ;;<br /> <span style="color: #00C800;">RETURN</span> a ; <span style="color: #000000;">}</span>:<span style="color: #000000;">eval</span><span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HGetAACompatibility<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span> => hb_HKeepOrder<span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /> #xtranslate HSetAACompatibility<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> => <span style="color: #000000;">{</span>| h | ;;<br /> hb_HKeepOrder<span style="color: #000000;">(</span> h <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">RETURN</span> .T. ; <span style="color: #000000;">}</span>:<span style="color: #000000;">eval</span><span style="color: #000000;">(</span> <x> <span style="color: #000000;">)</span><br /><br />#endif<br /> </div>[/code:xdu8y94l] |
xHarbour and hash functions | Dear Mr. Rao,
thank you so much.
Best regards,
Otto |
xHarbour bcc7 2016/Dec/18 | [url:33l7uy2c]https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/xharbour_bcc70_20161218.zip[/url:33l7uy2c] |
xHarbour bcc7.2 bcc7.0 2016/Oct/12 | [url:1l85bbh8]https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/xharbour_bcc72_bcc70_20161012.zip[/url:1l85bbh8] |
xHarbour bug in ADO Date\Time field | To All
The recent builds of xHarbour ( ships with FWH 1201 xHarbour 1.21 rev 9421 ) appears to have a bug in assigning a variable from an ADO date\time field and assigns it a T valtype rather than D for date.
When comparing date values there is an obvious data type mis-match .. I posted a small sample on the xHarbour forum and am awaiting an answer.
Rick Lipkin |
xHarbour bug in ADO Date\Time field | I don't consider this as a bug because all those values are in fact date-time values, though many of us use it with timepart as zero.
It is for us to handle the datetime values as date values or time values appropriately in our program.
But the real problem is there are other issues with the datetime values in xHarbour. I do not know if they are resolved recently though. |
xHarbour bug in ADO Date\Time field | Rick has reported that there is an update for xHarbour that solves it.
We have built a new xHarbour and sent it to him waiting for his feedback |
xHarbour bug in ADO Date\Time field | To All
xHarbour has created a new valtype T for DateTime .. when you extract a DateTime value from an ADO database like dDate := oRs:Fields("StartDate"):Value .. xHarbour "NOW" considers this expression to be valtype T... prior to valtype D.
The problem occurs where you do some math or comparison between dDate as in :
nDiff := Date() - dDate or
If Date() < dDate ....
As you can see the datatype mismatch can be a potential nightmare for existing applications written with ADO databases that use DateTime fields.
I have just replied back to the xHarbour developers .. they have resolved the Math problem even with the datatype mismatch .. however, the value comparison between expressions will still need to be fixed.
Rick |
xHarbour bug in ADO Date\Time field | [quote:2znou4li]Ado datetime field the table stores 12:00 am only[/quote:2znou4li]
This is a known behavior of MSSql only. |
xHarbour bug in ADO Date\Time field | Gale
I have tuns of code and applications written with with Date or Datetime comparisons depending if I am using .dbf or Ado ( sql server or Access ). Up until recently both date and datetime have been treated as D valtypes.
I would hope for the sake of 'clipper' compatibility the xHarbour folks can make their new T valtype work. So far I have tested two commits and the math and comparison operators now work.
Unfortunately, when the value writes back to the Ado datetime field the table stores 12:00 am only <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
I think they are very close.
Rick Lipkin |
xHarbour bug in ADO Date\Time field | I did not know you could compare different date types without errors. I have been converting Date from type 'T' to type 'D' in SQL and ADS databases.
nDiff := date() - ttodate( tDate )
if date() < ttodate( tDate )
function ttodate( tDate )
return( stod( substr( ttos( tDate ), 1, 8 ) ) |
xHarbour bug in ADO Date\Time field | To All
It appears that xHarbour build 9444 has all the DateTime fixes .. Many thanks to Andi Jahja
for all his work !
Rick Lipkin
<!-- m --><a class="postlink" href="https://groups.google.com/forum/#!topic/comp.lang.xharbour/5U8fSJVmpN0">https://groups.google.com/forum/#!topic ... U8fSJVmpN0</a><!-- m -->
Hi Rick,
I am very sorry for very late follow-up on this issue.
BTW, I have just committed a quick fix for the subject matter.
Please test it and report any problem.
Thanks.
Andi
//------------------------
Andi
YES .. In build 9444 it appears that all your changes work GREAT .. Math between DateTime variables work as well as writing the value of DateTime back to SQL tables work as well.
Many Thanks
Rick Lipkin |
xHarbour build | Antonio,
Estoy usando xHarbour 1.2.3 simplex build 20150319 para bcc68, no me ha dado problemas, es correcto? o Cual es la ultima version de xharbour para bcc68 32 bits? de donde la descargo?
Gracias
Saludos |
xHarbour build | Paco,
Esta es la versión más reciente que nosotros hemos publicado:
[url:2s780p45]https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/xharbour_1.2.3_32bits_bcc7_20150603.zip[/url:2s780p45]
Pero usa Bcc 7 |
xHarbour build | Enterado,
y a partir de que version de fwh se puede usar bcc 7? y de donde se puede obtener bcc7 o es de paga ?
Saludos |
xHarbour build Build 20150419 | [url:3gf0mnb1]https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/xharbour10121_20150503_bcc58.zip[/url:3gf0mnb1]
Many thanks to Enrico! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
xHarbour builder & FWH - workaround | There is a problem with the most recent xHarbour builder and FWH. Copy this code in your main PRG and it fixes it:
[code:2x9dm63c]
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
typedef struct
{
FARPROC farProc;
BYTE bType;
BYTE bReturn;
BYTE bParams;
BYTE bParam[ 15 ];
} STRFUNC;
HB_FUNC( GETPROCADDRESS )
{
STRFUNC strFunc;
BYTE b = 0;
BYTE bFunc[ 4 ];
strFunc.bParams = hb_pcount() - 4;
if( ISNUM( 2 ) )
{
bFunc[ 0 ] = hb_parni( 2 );
bFunc[ 1 ] = 0;
strFunc.farProc = GetProcAddress( ( HMODULE ) hb_parnl( 1 ), ( LPSTR ) bFunc );
}
else
strFunc.farProc = GetProcAddress( ( HMODULE ) hb_parnl( 1 ), hb_parc( 2 ) );
strFunc.bType = hb_parl( 3 );
strFunc.bReturn = hb_parni( 4 );
while( b < strFunc.bParams )
{
strFunc.bParam[ b ] = hb_parni( 5 + b );
b++; // keep this here cause Borland 5
}
hb_retclen( ( char * ) &strFunc, sizeof( STRFUNC ) - 15 + strFunc.bParams );
}
#pragma ENDDUMP
[/code:2x9dm63c] |
xHarbour builder & FWH - workaround | Hello, sorry, me again!
I copied (cut & pasted) the temporary fix into my main .prg but when compiling I now get the following xHB error:
hbole.h Line 62 Error F0026 Parse error in constant expression '\'
Help!
Regards,
Dale. |
xHarbour builder & FWH - workaround | Dale,
What xHarbour builder version or RC are you using ?
Have you tried with a fresh install of xHarbour builder ? Here it works ok. |
xHarbour builder & FWH - workaround | Hello,
I am using the latest release of XHB i.e. August 2006 RC-8.
I always uninstall my current version and re-install the new one each time a new release is made available so there is no chance that it is a corrupt installation or contains old or modified files. I do the same with FWH.
Regards,
Dale. |
xHarbour builder & FWH - workaround | Dale,
Please build this sample with xHB. It should build and work ok with no problems. Let us know if it works ok, thanks.
[code:1qhxqp7a]
#include "FiveWin.ch"
function Main()
MsgInfo( GetCPU() )
ShellExecute( 0, 'Open', 'http://www.google.com/' )
return nil
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
typedef struct
{
FARPROC farProc;
BYTE bType;
BYTE bReturn;
BYTE bParams;
BYTE bParam[ 15 ];
} STRFUNC;
HB_FUNC( GETPROCADDRESS )
{
STRFUNC strFunc;
BYTE b = 0;
BYTE bFunc[ 4 ];
strFunc.bParams = hb_pcount() - 4;
if( ISNUM( 2 ) )
{
bFunc[ 0 ] = hb_parni( 2 );
bFunc[ 1 ] = 0;
strFunc.farProc = GetProcAddress( ( HMODULE ) hb_parnl( 1 ), ( LPSTR ) bFunc );
}
else
strFunc.farProc = GetProcAddress( ( HMODULE ) hb_parnl( 1 ), hb_parc( 2 ) );
strFunc.bType = hb_parl( 3 );
strFunc.bReturn = hb_parni( 4 );
while( b < strFunc.bParams )
{
strFunc.bParam[ b ] = hb_parni( 5 + b );
b++; // keep this here cause Borland 5
}
hb_retclen( ( char * ) &strFunc, sizeof( STRFUNC ) - 15 + strFunc.bParams );
}
#pragma ENDDUMP
[/code:1qhxqp7a] |
xHarbour builder & FWH - workaround | Dale,
There is a simpler solution. Please add these lines into FiveWin.ch:
[code:39s74vu2]
#ifdef __XHARBOUR__
REQUEST GetProcAddress
#endif
[/code:39s74vu2] |
xHarbour builder & FWH - workaround | Thanks very much for the help.
I tried both methods and both work perfectly - thanks.
I must apologise to you for posting the compile error. I did not realise that I had a comment before the '#pragma BEGINDUMP' statement i.e. I had '***#pragma BEGINDUMP'. Careless! Sorry about that!
Once again, thanks for the help.
Regards,
Dale. |
xHarbour builder & FWH - workaround | Dale,
You are welcome. Glad to know it is working fine <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
xHarbour builder Feb 2006 | Hi,
When recompiling with xHarbour released yesterday the 24th of Jan, I get an unresolved _hb_stack. Do we need a FWH update for this? Linking against FWH 2006-01
Alex |
xHarbour builder Feb 2006 | Alex,
Yes, xHarbour implemented several changes that requires an upgraded FWH. |
xHarbour builder Feb 2006 | Ok. I'm still fine on the previous xhb version, but any idea of a when this would be released <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> |
xHarbour builder Feb 2006 | Alex,
It is already available since FWH 2.7 release.
What module reports such missing external ? |
xHarbour builder Feb 2006 | I'm not sure what module, as I'm using commercial xHarbour
Will see what I can find out...
Alex |
xHarbour builder Feb 2006 | Olá Antonio,
Eu também estou com o mesmo problema. Eu estou usando:
FWHX 2.7 January 2006 + xhb (comercial) fevereiro/2006
Como resolver isto,
Rossine. |
xHarbour builder Feb 2006 | All your C files have to be recompiled using the new Harbour/xharbour builds.
Please check this if you are using some LIBs besides Harbour/xharbour and FWH ones. |
xHarbour builder Feb 2006 | Antonio,
I use xHarbour/FWH
I just installed the latest FWH from you ( sent just minutes ago )
I have no other .obj files
I have no other .lib files
I have no reference in my code to stack. I did a complete search of the code to be sure.
My program compiled beautifully with FWH 2.5 plus October xHarbour.
The same exact script now will not link because of the _hb_stack issue.
A utility program that does not use FWH builds just fine !
So ... what should we check next ?
Tim |
xHarbour builder Feb 2006 | Tim,
Does the linker report what module is using _hb_stack ? |
xHarbour builder Feb 2006 | Tim,
We have just emailed some files. Please check them. Thanks |
xHarbour builder Feb 2006 | As confirmed by direct email, the new files are working.
Thanks.
Tim |
xHarbour builder Feb 2006 | Tim,
Glad to know it is working <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
As explained by email, there was an old reference to _hb_stack inside FiveHCM.lib only (and just for Microsoft or xHarbour builder), that has been removed. |
xHarbour builder Feb 2006 | Hi,
Is there a place we can download the fixed lib? |
xHarbour builder Feb 2006 | Alex,
Please require it by email to me. Thanks. |
xHarbour builder Feb 2006 | Done, thanks |
xHarbour builder Feb 2006 | Alex,
Already sent. Thanks |
xHarbour builder Feb 2006 | Alex,
I love the picture. I guess thats normal for an old guy like me with 8, almost 9, grandkids ... and who loves every minute of it !
Tim |
xHarbour builder and FWH | We already have FiveHCM.lib for xHarbour builder and FWH users, using
xHarbour most recent CVS code. (Is xHarbour builder already using the most recent CVS code ?)
Please email us to get it. |
xHarbour builder y FWH | Ya tenemos preparada la librería FiveHCM.lib para los usuarios de xHarbour builder y FWH (¿ Está xHarbour builder usando ya el código más reciente del CVS ?)
Enviadnos un email para solicitarla. |
xHarbour builder y FWH - solución | Hay un problema con la versión más reciente de xHarbour builder y FWH. Copia este código a tu PRG principal, y se soluciona:
[code:2wr7xklr]
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
typedef struct
{
FARPROC farProc;
BYTE bType;
BYTE bReturn;
BYTE bParams;
BYTE bParam[ 15 ];
} STRFUNC;
HB_FUNC( GETPROCADDRESS )
{
STRFUNC strFunc;
BYTE b = 0;
BYTE bFunc[ 4 ];
strFunc.bParams = hb_pcount() - 4;
if( ISNUM( 2 ) )
{
bFunc[ 0 ] = hb_parni( 2 );
bFunc[ 1 ] = 0;
strFunc.farProc = GetProcAddress( ( HMODULE ) hb_parnl( 1 ), ( LPSTR ) bFunc );
}
else
strFunc.farProc = GetProcAddress( ( HMODULE ) hb_parnl( 1 ), hb_parc( 2 ) );
strFunc.bType = hb_parl( 3 );
strFunc.bReturn = hb_parni( 4 );
while( b < strFunc.bParams )
{
strFunc.bParam[ b ] = hb_parni( 5 + b );
b++; // keep this here cause Borland 5
}
hb_retclen( ( char * ) &strFunc, sizeof( STRFUNC ) - 15 + strFunc.bParams );
}
#pragma ENDDUMP
[/code:2wr7xklr] |
xHarbour class designations Protected and Hidden not working | I just noticed that the class designations "Protected" and "Hidden" are not working in xHarbour 1.2.1. Both Protected and Hidden vars [b:tugmmegi]ARE[/b:tugmmegi] visible outside the class and they should not be. Below is a simple test program. Can anyone test this under the latest xHarbour for me? Both msgInfo()'s should error out. I note that the preprocessor shows them with different scopes, but they are still visible.
Regards,
James
Test program:
[code=fw:tugmmegi]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />Purpose : Test protected and hidden variables in a class<br />Notes : Neither protected nor hidden vars should be visible outside the class<br />Compiler: xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)<br />Author : James Bott<br />Date : 5/1/2013<br />*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oTest<br /><br /> oTest:= TTest<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">(</span> oTest:<span style="color: #000000;">cProtectedText</span>,<span style="color: #ff0000;">"This should not be visible:"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">(</span> oTest:<span style="color: #000000;">cHiddenText</span>,<span style="color: #ff0000;">"This should not be visible:"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">class</span> TTest<br /><br /> exported:<br /> <span style="color: #00C800;">method</span> <span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">protected</span>:<br /> <span style="color: #00C800;">data</span> cProtectedText<br /><br /> hidden:<br /> <span style="color: #00C800;">data</span> cHiddenText<br /><br /><span style="color: #00C800;">endclass</span><br /><br /><span style="color: #00C800;">method</span> <span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">cProtectedText</span>:=<span style="color: #ff0000;">"Protected text"</span><br /> ::<span style="color: #000000;">cHiddenText</span>:= <span style="color: #ff0000;">"Hidden text"</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">self</span><br /> </div>[/code:tugmmegi]
Preprossor output:
[code=fw:tugmmegi]<div class="fw" id="{CB}" style="font-family: monospace;">#line <span style="color: #000000;">112</span> <span style="color: #ff0000;">"hbclass.ch"</span><br /> DYNAMIC DivertConstructorCall<br /><br />DECLARE HBClass <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> cName AS String, OPTIONAL SuperParams <span style="color: #000000;">)</span> AS <span style="color: #00C800;">CLASS</span> HBClass Create<span style="color: #000000;">(</span><span style="color: #000000;">)</span> AS Object Instance<span style="color: #000000;">(</span><span style="color: #000000;">)</span> AS Object AddClsMethod<span style="color: #000000;">(</span> cName AS String, @MethodName<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nScope AS Numeric, n2 AS Numeric, n3 AS Numeric <span style="color: #000000;">)</span> AddDelegate<span style="color: #000000;">(</span> cName AS String, cDelegate AS String, cObject AS String, nScope AS Numeric, lPersistent AS LOGICAL <span style="color: #000000;">)</span> AddMultiClsData<span style="color: #000000;">(</span> cType AS String, uVal, nScope AS Numeric, aDatas AS Array <span style="color: #0000ff;">OF</span> String <span style="color: #000000;">)</span> AddMultiData<span style="color: #000000;">(</span> cType AS String, uVal, nScope AS Numeric, aDatas AS Array <span style="color: #0000ff;">OF</span> String, x AS LOGICAL, lPer AS LOGICAL <span style="color: #000000;">)</span> AddMethod<span style="color: #000000;">(</span> cName AS String, @MethodName<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nScope AS Numeric, lPersistent AS LOGICAL <span style="color: #000000;">)</span> AddInLine<span style="color: #000000;">(</span> cName AS String, bBlock AS CodeBlock, nScope AS Numeric, lPersistent AS LOGICAL <span style="color: #000000;">)</span> AddVirtual<span style="color: #000000;">(</span> cName AS String <span style="color: #000000;">)</span> ModMethod<span style="color: #000000;">(</span> cName AS String, @MethodName<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nScope AS Numeric, lPersistent AS LOGICAL <span style="color: #000000;">)</span> ModClsMethod<span style="color: #000000;">(</span> cName AS String, @MethodName<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nScope AS Numeric <span style="color: #000000;">)</span> ModInline<span style="color: #000000;">(</span> cName AS String, bBlock AS CodeBlock, nScope AS Numeric, lPersistent AS LOGICAL <span style="color: #000000;">)</span> SetOnError<span style="color: #000000;">(</span> @MethodName<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />#line <span style="color: #000000;">86</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\f</span>ivewin.ch"</span><br /> EXTERNAL GetProcAdd<br /> EXTERNAL TActiveX<br /><br />extern errorsys<br />#line <span style="color: #000000;">11</span> <span style="color: #ff0000;">"TTest.prg"</span><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oTest<br /><br /> oTest:= TTest<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">(</span> oTest:<span style="color: #000000;">cProtectedText</span>,<span style="color: #ff0000;">"This should not be visible:"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">(</span> oTest:<span style="color: #000000;">cHiddenText</span>,<span style="color: #ff0000;">"This should not be visible:"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />_HB_CLASS TTest ; UTILITY <span style="color: #00C800;">FUNCTION</span> TTest<span style="color: #000000;">(</span>...<span style="color: #000000;">)</span>; <span style="color: #00C800;">static</span> s_oClass ; <span style="color: #00C800;">local</span> oClassInstance ; <span style="color: #00C800;">local</span> nScope ; nScope := <span style="color: #000000;">1</span> ; <span style="color: #00C800;">if</span> s_oClass == <span style="color: #00C800;">NIL</span> ; s_oClass := IIF<span style="color: #000000;">(</span>.F.,, HBClass<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"TTest"</span> , <span style="color: #000000;">{</span> HBObject<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Classh</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /><br /> nScope := <span style="color: #000000;">1</span><br /> _HB_MEMBER <span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>; IIF<span style="color: #000000;">(</span> .F., s_oClass:<span style="color: #000000;">ModMethod</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"new"</span>, @TTest_new<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nScope + IIF<span style="color: #000000;">(</span> .F., <span style="color: #000000;">16</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> + IIF<span style="color: #000000;">(</span> .F., <span style="color: #000000;">1024</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, .F. <span style="color: #000000;">)</span>, s_oClass:<span style="color: #000000;">AddMethod</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"new"</span>, @TTest_new<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nScope + IIF<span style="color: #000000;">(</span> .F., <span style="color: #000000;">16</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> + IIF<span style="color: #000000;">(</span> .F., <span style="color: #000000;">1024</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, .F. <span style="color: #000000;">)</span><span style="color: #000000;">)</span>;<br /><br /> nScope := <span style="color: #000000;">4</span><br /> _HB_MEMBER <span style="color: #000000;">{</span> cProtectedText<span style="color: #000000;">}</span> ; IIF<span style="color: #000000;">(</span> !.F., s_oClass:<span style="color: #000000;">AddMultiData</span><span style="color: #000000;">(</span>,, nScope + IIF<span style="color: #000000;">(</span> .F., <span style="color: #000000;">32</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"cProtectedText"</span> <span style="color: #000000;">}</span>, .F., .F. <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span><br /><br /> nScope := <span style="color: #000000;">8</span><br /> _HB_MEMBER <span style="color: #000000;">{</span> cHiddenText<span style="color: #000000;">}</span> ; IIF<span style="color: #000000;">(</span> !.F., s_oClass:<span style="color: #000000;">AddMultiData</span><span style="color: #000000;">(</span>,, nScope + IIF<span style="color: #000000;">(</span> .F., <span style="color: #000000;">32</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"cHiddenText"</span> <span style="color: #000000;">}</span>, .F., .F. <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span><br /><br />; <span style="color: #00C800;">IF</span> .F. ; __clsActive<span style="color: #000000;">(</span>s_oClass:<span style="color: #000000;">hClass</span><span style="color: #000000;">)</span> ; s_oClass:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; <span style="color: #00C800;">ELSE</span> ; s_oClass:<span style="color: #000000;">Create</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; END ; oClassInstance := __clsInst<span style="color: #000000;">(</span> s_oClass:<span style="color: #000000;">hClass</span> <span style="color: #000000;">)</span> ; <span style="color: #00C800;">IF</span> __ObjHasMsg<span style="color: #000000;">(</span> oClassInstance, <span style="color: #ff0000;">"InitClass"</span> <span style="color: #000000;">)</span>; oClassInstance:<span style="color: #000000;">InitClass</span><span style="color: #000000;">(</span> hb_aParams<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ; END ; <span style="color: #00C800;">ELSE</span> ; oClassInstance := __clsInst<span style="color: #000000;">(</span> s_oClass:<span style="color: #000000;">hClass</span> <span style="color: #000000;">)</span> ; END ; <span style="color: #00C800;">IF</span> PCount<span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">0</span> ; DIVERT <span style="color: #0000ff;">TO</span> <span style="color: #000000;">(</span>@DivertConstructorCall<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">OF</span> s_oClass ; END ; <span style="color: #00C800;">RETURN</span> oClassInstance AS <span style="color: #00C800;">CLASS</span> TTest ;<br /><br />UTILITY <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">function</span> TTest_new<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; <span style="color: #00C800;">local</span> <span style="color: #00C800;">Self</span> AS <span style="color: #00C800;">CLASS</span> TTest := QSelf<span style="color: #000000;">(</span><span style="color: #000000;">)</span> AS <span style="color: #00C800;">CLASS</span> TTest<br /> ::<span style="color: #000000;">cProtectedText</span>:=<span style="color: #ff0000;">"Protected text"</span><br /> ::<span style="color: #000000;">cHiddenText</span>:= <span style="color: #ff0000;">"Hidden text"</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">self</span><br /> </div>[/code:tugmmegi] |
xHarbour class designations Protected and Hidden not working | James,
the class definition must be in a different PRG for PROTECTED and HIDDEN to work:
[code=fw:1to3smir]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oWnd := TWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ? oWnd:<span style="color: #000000;">nHorzRes</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ? oWnd:<span style="color: #000000;">SetAlphaLevel</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1to3smir]
EMG |
xHarbour class designations Protected and Hidden not working | Enrico,
Well that explains a lot. Normally, I do have my classes in a separate PRG, but I was just doing some testing when I discovered I could access the hidden vars.
Thanks, I wouldn't have thought of that.
Regards,
James |
xHarbour class designations Protected and Hidden not working | In xHarbour protected and hidden data are visible in other classes/functions in the same module. That is something we do not expect but it is so. I do not know if this is a bug or intentional design.
But in Harbour they are not visible outside the class, even in the same module. |
xHarbour class designations Protected and Hidden not working | Thanks for the clarification Rao.
James |
xHarbour class designations Protected and Hidden not working | [quote="nageswaragunupudi":3s7n25mn]In xHarbour protected and hidden data are visible in other classes/functions in the same module. That is something we do not expect but it is so. I do not know if this is a bug or intentional design.
But in Harbour they are not visible outside the class, even in the same module.[/quote:3s7n25mn]
And in class we created "inherited" from them?
You can create methods type SET / GET to use?
regards |
xHarbour class designations Protected and Hidden not working | [quote:1md017ja]And in class we created "inherited" from them?
You can create methods type SET / GET to use?
[/quote:1md017ja]
Yes. Inherited classes see protected as it should be.
In case of xHarbour they can see hidden also if they are in the same module.
But it is not a good practice to use them. |
xHarbour con Hash | Buenas;
Alguien me puede proporcionar un ej. mas amplio que el que figura en los samples de FW 1204?
[code=fw:1tr3dshm]<div class="fw" id="{CB}" style="font-family: monospace;">#ifdef __XHARBOUR__<br /><br /> HSetAACompatibility<span style="color: #000000;">(</span> hData, .t. <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> each oCol in oBrw:<span style="color: #000000;">aCols</span><br /> HSet<span style="color: #000000;">(</span> hData, oCol:<span style="color: #000000;">cHeader</span>, oCol:<span style="color: #000000;">Value</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /><br />#else<br /><br /> <span style="color: #00C800;">for</span> each oCol in oBrw:<span style="color: #000000;">aCols</span><br /> HB_HSet<span style="color: #000000;">(</span> hData, oCol:<span style="color: #000000;">cHeader</span>, oCol:<span style="color: #000000;">Value</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /><br />#endif<br /><br /> <span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">(</span> hData, <span style="color: #ff0000;">'Hash Browse'</span> <span style="color: #000000;">)</span><br /> </div>[/code:1tr3dshm]
gracias |
xHarbour cvs needs bcc58 ? | Hi all,
I just downloaded the last cvs of xHarbour and I found that the standard Borland compiler is Bcc58.
Are we now forced also to use this version ? Are problems to be expected, if programs are compiled with Bcc55 and xharbour with Bcc58 ? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.