topic
stringlengths
1
63
text
stringlengths
1
577k
error win 2000
Yes l am sure bla bla bla exetype window 3.1 bla bla bla exetype tutor08.exe 3.95 l try this because in my error.log that said window reelease 3.95 and msdos release 7.1 When l ask for the release of window that said 4.10
error win 2000
You are using a very old FW version. You should upgrade to the current version 7.04
error with 3 FOLDEREX
I use 3 FolderEx contro into a Dialog and it make a strange Error Application =========== Path and name: C:\Work\Errori\TEST_FLD\TEST.Exe (32 bits) Size: 1,820,160 bytes Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6715) FiveWin Version: FWHX 12.03 Windows version: 6.1, Build 7600 Time from start: 0 hours 0 mins 0 secs Error occurred at: 02/10/13, 23:03:27 Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 1 Stack Calls =========== Called from: .\source\classes\TFOLDEX.PRG => TFOLDEREX:DEFAULT( 753 ) Called from: .\source\classes\TFOLDEX.PRG => TFOLDEREX:INITIATE( 975 ) Called from: => __OBJSENDMSG( 0 ) Called from: => HB_EXECFROMARRAY( 0 ) Called from: .\source\function\HARBOUR.PRG => OSEND( 219 ) Called from: => HB_EXECFROMARRAY( 0 ) Called from: .\source\function\HARBOUR.PRG => ASEND( 197 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE( 630 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 870 ) Called from: => DIALOGBOXINDIRECT( 0 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 270 ) Called from: TEST.PRG => TEST( 45 ) [b:wdsu33o8]If I change the last FolderEx control into normal Folder th e test run ok [/b:wdsu33o8] [b:wdsu33o8]the test[/b:wdsu33o8] [code=fw:wdsu33o8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> LIGHTCYAN            nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">203</span>, <span style="color: #000000;">225</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Function</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> oDlg<br /><br /><span style="color: #00C800;">Local</span> oFld<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">Local</span> oFnt,oFnt1<br /><br /><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span><br /><br /><br />        <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg        ;<br />        <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"test folderex"</span>   ;<br />         GRADIENT <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>,CLR_WHITE, LIGHTCYAN <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>    ;<br />        <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">720</span>, <span style="color: #000000;">700</span>   <span style="color: #0000ff;">PIXEL</span>               ;<br />        <span style="color: #0000ff;">FONT</span> oFnt1  ;<br />        TRANSPARENT<br /><br /><br />        @ <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>  FOLDEREX oFld<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span>   ;<br />         <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&Billing"</span>,<span style="color: #ff0000;">"Shipping"</span>;<br />         <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">100</span><br /><br />        @ <span style="color: #000000;">3</span>, <span style="color: #000000;">270</span>  FOLDEREX oFld<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span>   ;<br />         <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&Invoice"</span>;<br />         <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>,<span style="color: #000000;">100</span><br /><br />          @ <span style="color: #000000;">234</span>, <span style="color: #000000;">4</span>  FOLDEREX oFld<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span>   ;<br />         <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&Comments"</span>,<span style="color: #ff0000;">"Private comments"</span>;<br />         <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span><br /><br />          <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /><br /> </div>[/code:wdsu33o8]
error with 3 FOLDEREX
Silvio the last folderex height is small [code=fw:2pqn9oki]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span></div>[/code:2pqn9oki] try with SIZE 100,100
error with 3 FOLDEREX
SAME ERROR @ 3, 4 FOLDEREX oFld[1] PIXEL ; ITEMS "&Billing","Shipping"; SIZE 120,100 @ 3, 270 FOLDEREX oFld[2] PIXEL ; ITEMS "&Invoice"; SIZE 150,100 @ 234, 4 FOLDEREX oFld[3] PIXEL ; ITEMS "&Comments","Private comments"; SIZE 100,100
error with 3 FOLDEREX
to run goo I must make SIZE 120,100 and the folder is too big !!! I wish nheight more small than nwidth
error with Excel and ArrayTranspose sample Mr. Rao
Hello, Checking a Mr. Rao´s post, I want to transfer a excel sheet to an Array: [code=fw:32f8oyt0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oRange<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aArray &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cExePath := cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Driver CDX----------------------------------------------------------------</span><br />&nbsp; &nbsp;REQUEST DBFCDX, DBFFPT<br /><br />&nbsp; &nbsp;RDDSETDEFAULT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br /><br /><br />&nbsp; &nbsp;oRange &nbsp; := GetExcelRange<span style="color: #000000;">&#40;</span> cExePath + <span style="color: #ff0000;">"hoja.xls"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aArray &nbsp; := ArrTranspose<span style="color: #000000;">&#40;</span> oRange:<span style="color: #000000;">Value</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oRange:<span style="color: #000000;">WorkSheet</span>:<span style="color: #000000;">Parent</span>:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">XBrowse</span><span style="color: #000000;">&#40;</span> aArray <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;msgalert<span style="color: #000000;">&#40;</span>aArray<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:32f8oyt0] But it shows: [quote:32f8oyt0] Error description: Error BASE/1004 No exported method: VALUE Args: [ 1] = U Stack Calls =========== Called from: => VALUE( 0 ) Called from: array.prg => MAIN( 34 ) [/quote:32f8oyt0] Line 34 is: aArray := ArrTranspose( oRange:Value ) Any clue please?. Thank you very much.
error with Excel and ArrayTranspose sample Mr. Rao
oRange must be nil. Please check if oRange is a valid range before calling oRange:Value. oRange can be nil, if the excel file could not be opened (for whatever reason) or some other reason.
error with Excel and ArrayTranspose sample Mr. Rao
Yes, it ´s nill. You are a Master. Is there any way to retrive the error?. Because the operation of GetExcelRange does not show any errors. Thank you very much. PD: B the way, please any tips to increase xBrowse speed with ADS/AIS?. Thank you again. Do you have a blog about Fivewin and Harbour?.
error with Harbour and Windows 7
Hi, When using an application in a folder different that Program Files, such as Desktop, sometimes I get this error: Error description: Error DBCMD/2001 WORKAREA NOT IN USE: ORDLISTADD Stack Calls =========== Called from: => ORDLISTADD( 0 ) Called from: ../../../rddord.prg => DBSETINDEX( 0 ) Called from: H:\spa\files.PRG => Openfiles( 108 ) [code=fw:31c3h41r]<div class="fw" id="{CB}" style="font-family: monospace;">openfiles.prg: <br />==================== <br />&nbsp;<span style="color: #00C800;">LOCAL</span> pPath := <span style="color: #ff0000;">".<span style="color: #000000;">\"</span><br />&nbsp;[...]<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SELECT 7 <br />lin 108 USE (pPath+"</span>\NOTES<span style="color: #ff0000;">") NEW </span></div>[/code:31c3h41r] What is wrong?. Thanks.
error with Harbour and Windows 7
Hope this helps .. I always query the location where the .exe starts up and then use that as my Set Defa ... path .. Consider this code .. [code=fw:350c6r7h]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// where .exe started from is default directory //</span><br />cFILE    := GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />cSTART := RAT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<span style="color: #000000;">\"</span>, cFILE )<br />cDEFA   := SUBSTR(cFILE,1,cSTART-1)<br /><br />SET DEFA to ( cDEFA )<br /><br />// if data is located in the same folder as the executable<br /><br />Select 7<br />Use ( cDefa+"</span>\<span style="color: #00C800;">Data</span>\User.dbf<span style="color: #ff0000;">" )<br /><br />// or if data is located backwards<br /><br />Select 7<br /><br />Use ( cDefa+"</span>..\<span style="color: #00C800;">data</span>\User.dbf<span style="color: #ff0000;">" )<br /><br /></span></div>[/code:350c6r7h] The above code works whether you access the .exe via unc or a mapped drive. Rick Lipkin
error with Harbour and Windows 7
Thank you very much. Also, Harbour now provides HB_DIRBASE().
error with Metafile
why it let me show this message "Could not find the enchaned metafile, please check your TEMP enviroment variable" and the it make a gpf ??? [code:3hg8yb72] function GenChild&#40;&#41; local oWndChild, oBar, oBmp DEFINE WINDOW oWndChild OF oWnd MDICHILD COLOR "N/W" VSCROLL HSCROLL DEFINE BUTTONBAR oBar 3D SIZE 25, 25 OF oWndChild DEFINE BUTTON OF oBar ACTION PutLabel&#40; oBmp &#41; TOOLTIP "Label" DEFINE BUTTON OF oBar ACTION PutBitmap&#40; oBmp &#41; TOOLTIP "Bitmap" DEFINE BUTTON OF oBar ACTION PreView&#40; oBmp &#41; TOOLTIP "Preview" oBmp&#58;=TEnhMetaFile&#40;&#41;&#58;New&#40; 20, 40, 535, 784, "TEST", oWndChild,; CLR_WHITE, CLR_BLACK &#41; ACTIVATE WINDOW oWndChild return nil [/code:3hg8yb72]
error with Metafile
Silvio, Because the metafile file is not found [code:3m9qpaxt] if file&#40; &#58;&#58;cCaption &#41; &#58;&#58;hMeta = GetEnhMetaFile&#40; &#58;&#58;cCaption &#41; elseif ! Empty&#40; &#58;&#58;cCaption &#41; Alert&#40; "Could not find the enhanced Metafile," + CRLF + ; "please check your TEMP environment variable" &#41; endif [/code:3m9qpaxt]
error with Metafile
and How I must make to not show it ?
error with Metafile
Use the filename of an existing metafile file
error with Metafile
and if I create an temp metafile How I must make it ?
error with Metafile
Silvio, Use CreateEnhMetaFile()
error with Metafile
I not found the parameters for it
error with Metafile
<!-- m --><a class="postlink" href="http://msdn2.microsoft.com/en-us/library/ms534576.aspx">http://msdn2.microsoft.com/en-us/library/ms534576.aspx</a><!-- m -->
error with chm files
I have a strange problem When I call a file Help chm from an Fwh application I have a strange error [b:8e60u6vf]"Action canceled!"[/b:8e60u6vf] is displayed instead of the topic text. I set the help file at main.prg with SetHelpfile("family.chm") and then on a menu HelpIndex() I try to search on Internet If there are problems with new Windows and i found on a site this but I not understood [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp] [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions] "UrlAllowList"="u:\\productmanuals\\helpfiles;file://u:\\productmanuals\\helpfiles" on another site I found [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions] "MaxAllowedZone"=dword:00000004 Some have had this problem ?
error with chm files
Silvio, [url:oqms8em3]http&#58;//digital&#46;ni&#46;com/public&#46;nsf/allkb/9DAEBB38037356E7862570E700607B3D[/url:oqms8em3]
error with chm files
Antonio, on win7 I not have that button on properties of my file chm
error with chm files
Refer <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=29957&p=170514&hilit=.chm#p170514">viewtopic.php?f=6&t=29957&p=170514&hilit=.chm#p170514</a><!-- l -->
error with chm files
I have this error on Windows Xp professional and Windows Seven 64 bit because at school I have Winxp and atHome i have Win764bit On Winxp I not have the Unblock button on link <!-- m --><a class="postlink" href="https://support.microsoft.com/it-it/kb/917607/es">https://support.microsoft.com/it-it/kb/917607/es</a><!-- m --> I found files mnu for Win7 x86 and x64 and this afternoon I try at Home But I not found solution for Windows Xp To create chm file I use Help & Manual 5
error with chm files
On Windows Xp I resolve with WinExec ( "HH " + "namehlp.chm" ) But this solution is no good because I cannot use helptopic func to call a specific page [b:3naiegxi]To Gurus[/b:3naiegxi] I think there is a [b:3naiegxi]Problem [/b:3naiegxi]on functions[b:3naiegxi] Helpindex()[/b:3naiegxi] and [b:3naiegxi]SetHelpfile("namehlp.chm")[/b:3naiegxi] and I think there's an error on [b:3naiegxi]Help32.prg[/b:3naiegxi] or/and [b:3naiegxi]Helpchm.prg[/b:3naiegxi] ( WinApi Folder)
error with chm files
I download the file Windows6.1-KB917607-x64 from Microsoft ( for seven 64 bit) I close the pc and the n I open the pc ,remade the file chm and the module exe I tried to press f1 and it make the same not run I see allway the page black with the error "Action canceled!" is displayed instead of the topic text. it not depend from Microsoft but the function of fwh/xharbour winapi
error with compiling 11.3
when I compiling any sources with 11.3 i got error Type: C >>>xhb.exe -o"t.c" -m -n -p0 -q -gc0 -I"S:\include" -I"R:\include" -I"R:\include\w32" "t.prg"<<< xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6726) Copyright 1999-2010, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Generating object output to 't.obj'... Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"S:\lib" -LIBPATH:"R:\lib" -LIBPATH:"R:\c_lib" -LIBPATH:"R:\c_lib\win" "t.obj" "s:\xhb2.obj" "xhb3.obj" "FiveHCM.lib" "FiveHMX.lib" "OptG.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:"t.exe"<<< Creating object: t.EXP Creating library: t.LIB xLINK: error: Unresolved external symbol '_HB_FUN_EXCELOBJ referenced from Fivehmx.lib(xbrowse.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_SUNCALCOBJ referenced from Fivehmx.lib(xbrowse.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_WINWORDOBJ referenced from Fivehmx.lib(rpreview.obj)'. xLINK: fatal error: 3 unresolved external(s). Type: C >>>Couldn't build: t.exe<<< Type: C >>>TMAKEPROJECT<<< Type: C >>>TMAKEPROJECT:REFRESH<<< Type: N >>> 1423<<<
error with compiling 11.3
Kajot, Those functions are implemented in FWH\source\function\olefuncs.prg
error with compiling 11.3
while I have to add \source\function\olefuncs.prg to may scrript ?
error with compiling 11.3
Yes, please <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
error with fget
Antonio,i tried to use the fget object.When building the testfget.exe from the fwh samples you get an error when clicking 'information' from the format menu.It looks like a typo :[code:2jo0k4w4]tobject&#46;prg => TFLINE&#58;NALING&#40;0&#41;[/code:2jo0k4w4]I think it should be TFLINE:NALIGN().Regards,Detlef
error with fget
Antonio,could you please, have a look to this issue?Since the function doesn't belog to the provided source code of FWH i can't do this patch myself.Thanks and regards,Detlef
error with fget
We may make the corrections in the testfget.prg in our samples folder. Mr Antonio may fix the error in the next release.The typo is only in the sample program, not in the libraries.After you pointed out, I made these corrections in the testfget.prgLine:217 local aAlign := { "LEFT", "CENTERED", "RIGHT" }Line: 225 "Align: " + aAlign[ oLine:nAlign + 1 ] + CRLF +;Now the sample works fine with this.
error with fget
NageswaraRao,yes, you are right. This sample works ok now.Thanks for pointing me out that.Moreover, the same patch is needed in the sample testfge2.prg.( replace all 'aling' with 'align' )Thanks and regards,Detlef
error with group
@ 2.8, 0.2 GROUP TO 7.8,27.4 PROMPT "&Tabella" OF oFld:aDialogs[3] [img:3ca5vyxb]http&#58;//img404&#46;imageshack&#46;us/img404/2640/grouperror&#46;jpg[/img:3ca5vyxb] I see & on prompt instead of _ under the "T"
error with group
Y para que serviría ??? si es un control estático o me equivoco. Saludos
error with group
groups have no accelerator
error with hb_AtX
Linea:="<REPORTNUM>001</REPORTNUM>" cField := hb_AtX( "<[^>]*>", Linea, .F. ) give me cField empty , why ? I'm using Harbour, perhaps it is a xharbour function ?
error with hb_AtX
HB_AtX(...) works both in Harbour and xHarbour. But the first parameter should be a valid RegEx expression. Refer <!-- m --><a class="postlink" href="https://en.wikipedia.org/wiki/Regular_expression">https://en.wikipedia.org/wiki/Regular_expression</a><!-- m -->
error with hb_AtX
[quote="nageswaragunupudi":30cebiq1]HB_AtX(...) works both in Harbour and xHarbour. But the first parameter should be a valid RegEx expression. Refer <!-- m --><a class="postlink" href="https://en.wikipedia.org/wiki/Regular_expression">https://en.wikipedia.org/wiki/Regular_expression</a><!-- m -->[/quote:30cebiq1] resolved I forget to link a lib
error with nExtMem()
Hello. In errsysw.prg, nExtMem() does not indicate my 6 GB of Ram. It only says 1 megs: [quote:n0z05ww7]Hardware memory: 1 megs[/quote:n0z05ww7] Also, it may cause internal problems to FWH, as it points out no memory, when in fact it is plenty of gbs!!.
error with nExtMem()
Hello, Is there any update?. Thanks
error with nExtMem()
John, Please run this and let us know what you get, thanks: MsgInfo( Int( nExtMem() / ( 1024 * 1024 * 1024 ) ) + 1 )
error with nExtMem()
Antonio, I just get 1. Thanks.
error with nExtMem()
Here we get 2 which it is right, Could someone else test it and report the result here ? thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
error with nExtMem()
I get 2, which is right too. EMG
error with nExtMem()
I get 1, wich is wrong. Felix
error with nExtMem()
Are you using latest FWH? EMG
error with nExtMem()
Enrico, yes and Harbour 3. Felix
error with nExtMem()
I have 8 GB of RAM, so I can´t get 1!!
error with nExtMem()
FWH function nExtMem() is a simple wrapper to the Windows API function GlobalMemoryStatus() : [url:2gy8foth]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/aa366586(v=VS&#46;85)&#46;aspx[/url:2gy8foth] that fills a struct: [url:2gy8foth]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/aa366772(v=VS&#46;85)&#46;aspx[/url:2gy8foth] In that struct we check the value of dwTotalPhys that as the API explains: [quote:2gy8foth]The amount of actual physical memory, in bytes.[/quote:2gy8foth] FWH code: [code=fw:2gy8foth]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> NEXTMEM <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// --> nHardwareMemory</span><br /><span style="color: #000000;">&#123;</span><br />   MEMORYSTATUS mst;<br /><br />   mst.dwLength = sizeof<span style="color: #000000;">&#40;</span> MEMORYSTATUS <span style="color: #000000;">&#41;</span>;<br /><br />   GlobalMemoryStatus<span style="color: #000000;">&#40;</span> &mst <span style="color: #000000;">&#41;</span>;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> mst.dwTotalPhys <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span></div>[/code:2gy8foth] Our code does nothing except the call to Windows API, so the question is; is that WIndows API function failing ? <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
error with nExtMem()
Hi Antonio, [quote="Antonio Linares":2glt3yhq]FWH function nExtMem() is a simple wrapper to the Windows API function GlobalMemoryStatus() : Our code does nothing except to call to Windows API, so the question is; is that WIndows API function failing ? <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->[/quote:2glt3yhq] Have a look here: [url:2glt3yhq]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/aa366586&#46;aspx[/url:2glt3yhq]: [i:2glt3yhq]On computers with more than 4 GB of memory, the [b:2glt3yhq]GlobalMemoryStatus[/b:2glt3yhq] function can return incorrect information, reporting a value of –1 to indicate an overflow. For this reason, applications should use the [b:2glt3yhq]GlobalMemoryStatusEx[/b:2glt3yhq] function instead.[/i:2glt3yhq]
error with nExtMem()
Ruediger, Thanks for the info, I wasn't aware of this API function. So this is the new code to test: [code=fw:q7if6yko]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> NEXTMEM <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// --> nHardwareMemory</span><br /><span style="color: #000000;">&#123;</span><br />   MEMORYSTATUSEX mst;<br /><br />   mst.dwLength = sizeof<span style="color: #000000;">&#40;</span> MEMORYSTATUSEX <span style="color: #000000;">&#41;</span>;<br /><br />   GlobalMemoryStatusEx<span style="color: #000000;">&#40;</span> &mst <span style="color: #000000;">&#41;</span>;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> mst.ullAvailPhys <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span></div>[/code:q7if6yko] we could also try:    hb_retnll( mst.ullAvailPhys );
error with nExtMem()
The correct is: [code=fw:12g9bpwh]<div class="fw" id="{CB}" style="font-family: monospace;">hb_retnll<span style="color: #000000;">&#40;</span> mst.ullTotalPhys <span style="color: #000000;">&#41;</span>;</div>[/code:12g9bpwh] I got 8. So I hope MsgInfo( Int( nExtMem() / ( 1024 * 1024 * 1024 ) ) + 1 ) refers to 8 GB. Is it correct?. Thanks,.
error with nExtMem()
Yes, it seems so <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
error with nExtMem()
Thanks. Hope is fixed in FW 11.09?. What about xBrowse and Win 7 look?.
error with nExtMem()
John, Already included for FWH 11.09: * Enhancement: function nExtMem() now uses Windows API GlobalMemoryStatusEx() instead of GlobalMemoryStatus() as it was failing on some computers. Regarding xbrowse, we have already talked about it and we have decided to implement it, though it is not ready yet.
error with nExtMem()
Antonio, I used the following to compile mem.c, [code=fw:2cy57vsb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />c:\bcc582\bin\bcc32 -c -Ic:\bcc582\include;c:\fwh\include;c:\xhb\include -o%<span style="color: #000000;">1</span>.obj %<span style="color: #000000;">1</span>.c > comp.log</div>[/code:2cy57vsb] but I got so many errors and warnings. What did I do wrong?[code=fw:2cy57vsb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Borland C++ <span style="color: #000000;">5.82</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2005</span> Borland<br />mem.c:<br /><span style="color: #000000;">Warning</span> W8065 mem.c <span style="color: #000000;">44</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8065 mem.c <span style="color: #000000;">45</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">46</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">46</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'GLOBALALLO'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">55</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">41</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">56</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">57</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">57</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'GLOBALCOMP'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">62</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">53</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">63</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8065 mem.c <span style="color: #000000;">67</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parc'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">70</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">70</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'GLOBALDATA'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">75</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">61</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">76</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8065 mem.c <span style="color: #000000;">80</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_retl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8065 mem.c <span style="color: #000000;">84</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_retl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">85</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">85</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'GLOBALFREE'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">90</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">74</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">91</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8065 mem.c <span style="color: #000000;">94</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_retnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8065 mem.c <span style="color: #000000;">96</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_retnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">97</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">97</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'GLOBALSIZE'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">106</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">89</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8070 mem.c <span style="color: #000000;">110</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">110</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'LOCALSHRIN'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">119</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">104</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">120</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_retnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">121</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">121</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'GETFREESPA'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">126</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">117</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">128</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parni'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">137</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">137</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'MOREHEAP'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">160</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'pMem'</span> is never used in <span style="color: #00C800;">function</span> _xrealloc<br />Warning W8057 mem.c <span style="color: #000000;">165</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'pMem'</span> is never used in <span style="color: #00C800;">function</span> _xfree<br />Error E2238 mem.c <span style="color: #000000;">173</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">125</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">174</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">175</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">175</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'GLOBALLOCK'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">184</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">172</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">185</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">186</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">186</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'GLOBALUNLO'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">195</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">182</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">196</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_parnl'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">197</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">197</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'GLOBALREAL'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Error E2238 mem.c <span style="color: #000000;">204</span>: <span style="color: #000000;">Multiple</span> declaration <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Error E2344 mem.c <span style="color: #000000;">193</span>: <span style="color: #000000;">Earlier</span> declaration <span style="color: #0000ff;">of</span> <span style="color: #ff0000;">'HB_FUNC'</span><br />Warning W8065 mem.c <span style="color: #000000;">211</span>: <span style="color: #000000;">Call</span> <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'hb_retnll'</span> with no prototype in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8070 mem.c <span style="color: #000000;">212</span>: <span style="color: #00C800;">Function</span> should <span style="color: #00C800;">return</span> a value in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />Warning W8057 mem.c <span style="color: #000000;">212</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'NEXTMEM'</span> is never used in <span style="color: #00C800;">function</span> <span style="color: #00C800;">HB_FUNC</span><br />*** <span style="color: #000000;">22</span> errors in Compile ***</div>[/code:2cy57vsb] TIA
error with nExtMem()
Hua, Please check that your mem.c starts with: #include <Windows.h> #include <hbapi.h>
error with nExtMem()
Thanks Antonio. Was missing hbapi.h
error with new buildhd.bat
?????????????????????????????????????????????????????????????????????????????? ? FiveWin for Harbour 2.7 - June 2006 Harbour development power ?? ? (c) FiveTech, 1993-2006 for Microsoft Windows 95/98/NT/2000/ME and XP ?? ??????????????????????????????????????????????????????????????????????????????? &#1576; ????????????????????????????????????????????????????????????????????????????? Compiling... Harbour Compiler Alpha build 46.2 (Flex) Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'sitex.prg' and generating preprocessed output to 'sitex.ppo'... Lines 2941, Functions/Procedures 43 Generating C source output to 'sitex.c'... Done. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland sitex.c: Borland Resource Compiler Version 5.40 Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved. Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Warning: Image linked as an executable, but with a .DLL or .BPL extension * self contained DLL successfully built 'sitex' is not recognized as an internal or external command, operable program or batch file.
error with new buildhd.bat
Ehab, Have you checked for a sitex.dll file ? It should be there. And it has to be executed from an EXE. You can't run a DLL by itself.
error with new buildhd.bat
How can I call DLL from EXE directly ?
error with new buildhd.bat
Ehab, Please review samples\TestDLLP.prg
error with new buildhd.bat
[quote="Antonio Linares":3d060khr]Ehab, Have you checked for a sitex.dll file ? It should be there. And it has to be executed from an EXE. You can't run a DLL by itself.[/quote:3d060khr] Yes you can. A DLL is considered an executable file by Windows. EMG
error with new buildhd.bat
Enrico, Yes, of course, but you can't double click on a DLL and execute it, or type its name, press enter and execute it. Neither you can use WinExec() to run it. It has to be invoked using LoadLibrary().
error with new buildhd.bat
[quote="Antonio Linares":21q4hk3j]Enrico, Yes, of course, but you can't double click on a DLL and execute it, or type its name, press enter and execute it. Neither you can use WinExec() to run it. It has to be invoked using LoadLibrary().[/quote:21q4hk3j] Normally yes, because a DLL is not write to be self-executing. But if you rename an EXE to DLL then you still can execute it. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
error with new buildhd.bat
Enrico, > But if you rename an EXE to DLL then you still can execute it. Thats because EXEs and DLLs have different headers and their startup codes are different. Windows recognizes the EXE even if you rename it. Another major difference between them, as explained in Charles Petzold "Programming Windows" book, is that a DLL uses the DATA segment of the EXE that calls the DLL, thats why a DLL can attend multiple EXEs simultaneously.
error with new buildhd.bat
[quote="Antonio Linares":3pgdvnrt]Windows recognizes the EXE even if you rename it.[/quote:3pgdvnrt] Ops, you are right. I can rename the EXE with any extension and it is still executable. EMG
error with new buildhd.bat
as to finalize the conversation which batch should I use to create EXE application I use rdd server in it in new FHW June2006 ?
error with new buildhd.bat
Ehab, samples\buildh.bat for Harbour samples\buildx.bat for xharbour
error with rpreview with W7
look this picture [img:20vjlt8v]http&#58;//img231&#46;imageshack&#46;us/img231/3608/goodprint&#46;jpg[/img:20vjlt8v] on the bottom the paper is over the window and if you zoom max and the zoom min then you can see the line of the shadow remain at right of the screen the same test on with xp run ok
error with rpreview with W7
This is a problem on the recent widescreens, where the vertical pixel height is smaller than before. This needs to be fixed. I have this problem too.
error with rpreview with W7
recent ???? I have an oldest fwh release
error with temporal table
Guys: I have create a temporary table in MSSQL with ADO from my program with succesful, but that table does not see it in the Microsoft SQL Server Management, someone know where is it, in tempdb? The table has a single field and I insert a record, Up there all right, after I want to show its contents but I get this Message: [b:30jlnirk]Error description: (DOS Error -2147352567) WINOLE/1007 No se encontró el elemento en la colección que corresponde al nombre o el ordinal solicitado. (0x800A0CC1): ADODB.Recordset[/b:30jlnirk] this is my code: [code=fw:30jlnirk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />    oCon:=AbreConexBd<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    cSQL := <span style="color: #ff0000;">"CREATE TABLE #ppru"</span><br />    cSQL += <span style="color: #ff0000;">"("</span><br />    cSQL += <span style="color: #ff0000;">"numero CHAR(6) NOT NULL "</span><br />    cSQL += <span style="color: #ff0000;">")"</span><br /><br />   <span style="color: #00C800;">Try</span><br />      oCon:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> cSQL <span style="color: #000000;">&#41;</span><br />   Catch<br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Table Create ppru Failed"</span> <span style="color: #000000;">&#41;</span><br />      oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span><br />   End <span style="color: #00C800;">try</span><br /><br />oRs := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADODB.Recordset"</span> <span style="color: #000000;">&#41;</span><br />oRs:<span style="color: #000000;">CursorType</span>     := <span style="color: #000000;">1</span>        <span style="color: #B900B9;">// opendkeyset</span><br />oRs:<span style="color: #000000;">CursorLocation</span> := <span style="color: #000000;">3</span>        <span style="color: #B900B9;">// local cache</span><br />oRs:<span style="color: #000000;">LockType</span>       := <span style="color: #000000;">3</span>        <span style="color: #B900B9;">// lockoportunistic</span><br /><br />cSQL := <span style="color: #ff0000;">"SELECT * from [#ppru]"</span><br /><br /><span style="color: #00C800;">TRY</span><br />  oRS:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span>cSQL,oCon <span style="color: #000000;">&#41;</span><br />CATCH oErr<br />  <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error in Opening #ppru table"</span> <span style="color: #000000;">&#41;</span><br />  oCon:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />END <span style="color: #00C800;">TRY</span><br /><br /> oRs:<span style="color: #000000;">CLose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  cSQL := <span style="color: #ff0000;">" insert into [#ppru] (numero) "</span><br />  cSQL += <span style="color: #ff0000;">"values('123456') "</span><br /><br />oRs := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADODB.Recordset"</span> <span style="color: #000000;">&#41;</span><br />oRs:<span style="color: #000000;">CursorType</span>     := <span style="color: #000000;">1</span>        <span style="color: #B900B9;">// opendkeyset</span><br />oRs:<span style="color: #000000;">CursorLocation</span> := <span style="color: #000000;">3</span>        <span style="color: #B900B9;">// local cache</span><br />oRs:<span style="color: #000000;">LockType</span>       := <span style="color: #000000;">3</span>        <span style="color: #B900B9;">// lockoportunistic</span><br /><br />oRS:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span>cSQL,oCon <span style="color: #000000;">&#41;</span><br />msgalert<span style="color: #000000;">&#40;</span>oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"numero"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//>>>>>>> AQUI ME BOTA ERROR <<<<<<<<<<<<<<</span><br />…<br />…<br />…<br /><span style="color: #00C800;">Function</span> AbreConexBD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">LOCAL</span> cCString, oError, oCon1<br /><br />  xPROVIDER := <span style="color: #ff0000;">"SQLOLEDB"</span>                  <span style="color: #B900B9;">// oledb provider</span><br />  xSOURCE   := <span style="color: #ff0000;">"PYSASERVER"</span>                <span style="color: #B900B9;">// sql server name</span><br />  xCATALOG  := <span style="color: #ff0000;">"PysaBD"</span>                    <span style="color: #B900B9;">// sql server database</span><br />  xUSERID   := <span style="color: #ff0000;">"sa"</span><br />  xPASSWORD := <span style="color: #ff0000;">"Pysa123456"</span><br />  xConnect  := <span style="color: #ff0000;">'Provider='</span>+xPROVIDER+<span style="color: #ff0000;">';Data Source='</span>+xSOURCE+<span style="color: #ff0000;">';Initial Catalog='</span>+xCATALOG+<span style="color: #ff0000;">';User Id='</span>+xUSERID+<span style="color: #ff0000;">';Password='</span>+xPASSWORD<br /><br />  <span style="color: #00C800;">TRY</span><br />    oCon1 := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADODB.Connection"</span> <span style="color: #000000;">&#41;</span><br />    oCon1:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> xConnect <span style="color: #000000;">&#41;</span><br />  CATCH oError<br />     MsgStop<span style="color: #000000;">&#40;</span> oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />  END<br /><span style="color: #00C800;">Return</span> oCon1<br /><br /> </div>[/code:30jlnirk]
error with temporal table
Temporary tables are seen only by the connection that created it and is deleted when that connection is closed. They are not seen by a different connection. Management Studio's connection is different from the connection you created in your application. So, Mangement studio cannot see the temporary table you created. That is the correct behaviour.
error with temporal table
[quote="nageswaragunupudi":rkaeyka0]Temporary tables are seen only by the connection that created it and is deleted when that connection is closed. They are not seen by a different connection. Management Studio's connection is different from the connection you created in your application. So, Mangement studio cannot see the temporary table you created. That is the correct behaviour.[/quote:rkaeyka0] Thanks mr. rao always clear in the explanation
error with tm picker
my code [code:3323x6gq] #include "dtpicker&#46;ch" STATIC FUNCTION PRENOTAZIONE&#40; oBtn &#41; LOCAL oDlg, lReg&#58;=&#46;F&#46; LOCAL cCustomer &#58;=Space&#40;40&#41;,oCustomer LOCAL oFont1,aOra,aVar&#58;= Hora&#40;&#41; DEFINE DIALOG oDlg ; FROM 317, 412 TO 475, 732 PIXEL ; TITLE "Prenotazione!" @ 1, 2 SAY " Sig&#46;/ra &#58; " OF oDlg @ 1&#46;3, 6 GET oCustomer VAR cCustomer OF oDlg SIZE 100, 10 VALID ! Empty&#40;cCustomer&#41;picture "@!" @ 2&#46;6, 6 SAY "Alle ore &#58; " OF oDlg @ 2, 12 TMPicker aOra Var aVar SIZE 40, 10 Update of oDlg @ 3, 7 BUTTON "&Conferma" OF oDlg SIZE 30, 12 ACTION&#40;lReg&#58;=&#46;T&#46;, oDlg&#58;End&#40;&#41;&#41; @ 3, 16 BUTTON "&Annula" OF oDlg SIZE 30, 12 ACTION&#40;lReg&#58;=&#46;F&#46;, oDlg&#58;End&#40;&#41;&#41; CANCEL ACTIVATE DIALOG oDlg return nil STATIC FUNCTION Hora&#40;&#41; local nAux, nMin, nHor, nSec, cMin, cHor, cSec nSec &#58;= Seconds&#40;&#41; nAux &#58;= Int&#40;nSec&#41; / 3600 nHor &#58;= Int&#40;nAux&#41; nAux &#58;= &#40;nAux - nHor&#41; * 60 nMin &#58;= Int&#40;nAux&#41; nSec &#58;= Int&#40; &#40;nAux - nMin&#41; * 60 &#41; cHor &#58;= Padl&#40; alltrim&#40;str&#40;nHor&#41;&#41;, 2, '0'&#41; cMin &#58;= Padl&#40; alltrim&#40;str&#40;nMin&#41;&#41;, 2, '0'&#41; cSec &#58;= Padl&#40; alltrim&#40;str&#40;nSec&#41;&#41;, 2, '0'&#41; return cHor + cMin + cSec [/code:3323x6gq]it open a calendar instead of time selectwhy in tmpicker I see only datepicker ?
error with tm picker
After @ 2, 12 TMPicker aOra Var aVar SIZE 40, 10 Update of oDlg Insert this line aOra:nStyle := nOr( aOra:nStyle, 9 )
error with xbrowse
give me error on text [b:38ijy2qn] bold[/b:38ijy2qn] @ 45, 40 XBROWSE oBrw1 SIZE 400,-65 PIXEL OF oDlg ; COLUMNS 5,2,4,7,8,9,12,11; HEADERS "Tipo","Descrizione","Costo","Disp.","A4", "Pos", "Ord.",""; COLSIZES 40,110,50,50,28,28,30,34 ; CELL LINES NOBORDER ; DATASOURCE "oServiziSingoli" WITH OBJECT oBrw1 :nRowHeight := 30 [b:38ijy2qn] WITH OBJECT oBrw1:aCols[ 1][/b:38ijy2qn] :lBmpStretch := .F. :lBmpTransparent := .T. :nwidth := 40 :bStrImage := {|| oServiziSingoli:IMAGE } END end oBrw1:CreateFromCode() oBrw1:cAlias := oServiziSingoli:cAlias [b:38ijy2qn]the error[/b:38ijy2qn] Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } length: 0 [ 2] = N 1
error with xbrowse
There is no alias by name "oServiziSingoli". How do you think it works? If oServiziSingoli:cAlias is a valid alias, then change as [code=fw:36atlizi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />DATASOURCE oServiziSingoli:<span style="color: #000000;">cAlias</span><br /> </div>[/code:36atlizi] If oServiziSingoli is a valid TDatabase object [code=fw:36atlizi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />DATASOURCE oServiziSingoli<br /> </div>[/code:36atlizi] In the columns clause please give field names.
error with xbrowse
same errors I'm trying with tdata lib [code=fw:16vmaemm]<div class="fw" id="{CB}" style="font-family: monospace;">  <br /> oServiziSingoli:= TServizi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oServiziSingoli:<span style="color: #000000;">setFilter</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"multiple == .f."</span><span style="color: #000000;">&#41;</span><br />   oServiziSingoli:<span style="color: #000000;">gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">45</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">XBROWSE</span> oBrw1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">-65</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg  ;<br />     COLUMNS <span style="color: #000000;">5</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">8</span>,<span style="color: #000000;">9</span>,<span style="color: #000000;">12</span>,<span style="color: #000000;">11</span>;<br />     HEADERS <span style="color: #ff0000;">"Tipo"</span>,<span style="color: #ff0000;">"Descrizione"</span>,<span style="color: #ff0000;">"Costo"</span>,<span style="color: #ff0000;">"Disp."</span>,<span style="color: #ff0000;">"A4"</span>, <span style="color: #ff0000;">"Pos"</span>, <span style="color: #ff0000;">"Ord."</span>,<span style="color: #ff0000;">""</span>;<br />     COLSIZES <span style="color: #000000;">40</span>,<span style="color: #000000;">110</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">28</span>,<span style="color: #000000;">28</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">34</span> ;<br />     CELL LINES NOBORDER;<br />     DATASOURCE <span style="color: #ff0000;">"oServiziSingoli:cAlias"</span><br /><br />                WITH OBJECT oBrw1<br />                  :<span style="color: #000000;">nRowHeight</span>    := <span style="color: #000000;">30</span><br />                      WITH OBJECT oBrw1:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />                             :<span style="color: #000000;">lBmpStretch</span>     := .F.<br />                             :<span style="color: #000000;">lBmpTransparent</span> := .T.<br />                             :<span style="color: #000000;">nwidth</span> := <span style="color: #000000;">40</span><br />                             :<span style="color: #000000;">bStrImage</span>       := <span style="color: #000000;">&#123;</span>|| oServiziSingoli:<span style="color: #0000ff;">IMAGE</span> <span style="color: #000000;">&#125;</span><br />                          END<br />                        WITH OBJECT oBrw1:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span><br />                             :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"CHECK2"</span> ,<span style="color: #ff0000;">"CHECK3"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />                             :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span> || iif<span style="color: #000000;">&#40;</span> oServiziSingoli:<span style="color: #000000;">a4</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />                             :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#125;</span><br />                         END<br />                         WITH OBJECT oBrw1:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span><br />                             :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"CHECK2"</span> ,<span style="color: #ff0000;">"CHECK3"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />                             :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span> || iif<span style="color: #000000;">&#40;</span> oServiziSingoli:<span style="color: #000000;">pos</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />                             :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#125;</span><br />                         END<br />                         WITH OBJECT oBrw1:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span><br />                             :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"LOCK"</span> ,<span style="color: #ff0000;">"LOCK_OPEN"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />                             :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span> || iif<span style="color: #000000;">&#40;</span> oServiziSingoli:<span style="color: #000000;">ISlock</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />                             :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#125;</span><br />                         END<br />                      :<span style="color: #000000;">lHscroll</span>            := .F.<br />                      :<span style="color: #000000;">l2007</span>               := .F.<br />                      :<span style="color: #000000;">l2015</span>               := .T.<br />                      :<span style="color: #000000;">lRecordSelector</span>     := .f.<br />                      :<span style="color: #000000;">nStretchCol</span>         := STRETCHCOL_WIDEST<br />                      :<span style="color: #000000;">lAllowRowSizing</span>     := .F.<br />                      :<span style="color: #000000;">lAllowColSwapping</span>   := .F.<br />                      :<span style="color: #000000;">lAllowColHiding</span>     := .F.<br />                      :<span style="color: #000000;">nMarqueeStyle</span>       := MARQSTYLE_HIGHLWIN7<br />                      :<span style="color: #000000;">cAlias</span> := oServiziSingoli:<span style="color: #000000;">cAlias</span><br />                      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                 END<br /><br /> </div>[/code:16vmaemm] Also James Bott not resolved
error with xbrowse
Why do you put this in quotes? [code=fw:2qh8ji5l]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #ff0000;">"oServiziSingoli:cAlias"</span><br />&nbsp;</div>[/code:2qh8ji5l] Remove the quotes [code=fw:2qh8ji5l]<div class="fw" id="{CB}" style="font-family: monospace;"><br />DATASOURCE oServiziSingoli:<span style="color: #000000;">cAlias</span><br /><span style="color: #B900B9;">//OR</span><br />DATASOURCE oServiziSingoli<br />&nbsp;</div>[/code:2qh8ji5l]
error with xbrowse
Silvio, I did send you a working copy. Did you not get it? James
error xbrowse toexcel
I have a simply dbf with 3 field concep c 4 descr c 60 tipo n 1 why I cannot converte it on excel from this command directly ? oApp():oGrid:ToExcel() Error description: Error BASE/2022 Error de argumento: ALLTRIM Args: [ 1] = N 3 Stack Calls =========== Called from: => ALLTRIM(0) Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:CLPTEXT(11110) Called from: .\source\classes\XBROWSE.PRG => TXBRWIN7:CLPROW(6196) Called from: .\source\classes\XBROWSE.PRG => TXBRWIN7:TOEXCEL(6741) Called from: source\PLaboratori.prg => (b)LABORATORI(200)
error(6) deleting enhanced metafile
Error message received when opening preview on a print.Anybody know what this is and what might be causing it.
error(6) deleting enhanced metafile
hag,Check that you do not have an ENDPAGE of moreregardspaco
error(6) deleting enhanced metafile
PacoThanks...it needed a PAGE
error creating enhanced metafile/deleting enhanced metafile
veo que para los enhanced metafiles, crea archivos del tipo tmp0001.emf, tmp0002.emf... El problema es que en algunos casos me da estos errores: error (32), creating enhanced metafile: en este caso, me sucede porque estoy probando 2 estaciones de trabajo (2 sesiones del programa) en la misma estacion, a 16 bits no tenia este problema. error (6) deleting enhanced metafile: ese error deberia ser de manejador no valido... Como hago? A veces me hace bien la impresion, a veces imprime solo algunas cosas (hablando del preview, claramente) Pedro Gonzalez Savona - Italia FWH2.6/BCC55/xHarbour el que viene con FWH 0.99.51
error creating enhanced metafile/deleting enhanced metafile
Hola, El problema está en la clase tprinter, en el método _startpage. Parece ser que la generación de nombres de ficheros temporales emf es consecutiva, empezando por 1 cada vez que se lanza un listado al previsualizador. El nombre de fichero tiene esta forma: tmpXXXX.emf o tmpXXXX.wmf (para los antiguos 16 bits). Una solución para evitar este problema podría ser la siguiente: [code:15fcx7k7] AAdd&#40; &#58;&#58;aMeta, &#58;&#58;cDir + "\tmp"+ALLTRIM&#40;cTempFile&#40;&#41;&#41; + PadL&#40; &#58;&#58;nPage, 4, "0" &#41; + "&#46;emf" &#41; [/code:15fcx7k7] Aunque, siendo también un poco críticos, la función cTempFile() tampoco nos asegura un nombre único de fichero. Espero que esto te ayude. Saludos, José Luis Capel <!-- w --><a class="postlink" href="http://www.capelblog.com">www.capelblog.com</a><!-- w -->
error creating enhanced metafile/deleting enhanced metafile
José Luis: esto me resuelve el tema poder imprimir en dos o mas estaciones de trabajo en el mismo pc, pero me sigue dando el error algunas veces que no puede eliminar el archivo, cosa que cuando voy a verificar el archivo no está, por lo que eliminarlo, lo elimina, pero me da este error. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Gracias Pedro Gonzalez
error creating enhanced metafile/deleting enhanced metafile
Ya descubrí donde estaba el problema <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> y era en mi codigo, para variar... solo que antes no se quejaba... llamaba dos veces el endpage, y claro, no lo podía borrar a la segunda vez... Pedro Gonzalez
error.log
Stack Calls =========== Called from REF_VAR(938) Called from EDITSCHE(93) Called from VAL_REL2(380) is it possibile to add "in module <nameofprgfile> ? " information for each row ?
error.log
I agree. It would be useful. EMG
error.log
Marco, Enrico, Please modify source\function\errsysw.prg with this code: [code:b8ky316x] if ! Empty&#40;ProcName&#40; n &#41; &#41; AAdd&#40; aStack, " Called from&#58; " + ProcFile&#40; n &#41; + " => " + Trim&#40; ProcName&#40; n &#41; &#41; + ; "&#40;" + NTRIM&#40; ProcLine&#40; n &#41; &#41; + "&#41;" &#41; cErrorLog += ATail&#40; aStack &#41; + CRLF endif[/code:b8ky316x] Notice the use of ProcFile(). Warning: with Harbour it returns an empty string. With xharbour you get the PRG name.
error.log
Wonderful! Thank you! EMG
error.log
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> OK ThankYou very much.
error.log
Unfortunately it seems not working as expected... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
error.log
Enrico, But that may be something specific to Harbour/xHarbour ProcLine() function.