messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2017-06-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Everyone,\n\nDoes FWH have capability for 3D modeling? I need to be able to enter dimensions of package, create an image, then place that image inside another package which is much larger.\n\nThank you in advance for your assistance.\n\nSincerely,",
"time": "17:03",
"topic": "3D modeling",
"username": "cdmmaui"
}
] |
3D modeling
|
[
{
"date": "2012-08-20",
"forum": "Off Topic / Otros temas",
"text": "[url:223tij8z]http://www.3dtin.com/[/url:223tij8z]",
"time": "11:56",
"topic": "3D modelling online",
"username": "Antonio Linares"
}
] |
3D modelling online
|
[
{
"date": "2007-12-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi, i see some tools , like codejoke xtreme:\n<!-- m --><a class=\"postlink\" href=\"http://www.codejock.com\">http://www.codejock.com</a><!-- m -->, someone has tested this??",
"time": "13:23",
"topic": "3rd components integrations with fwh, UI calendar",
"username": "norberto"
}
] |
3rd components integrations with fwh, UI calendar
|
[
{
"date": "2007-12-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Fernando,\n\ncan you drag & drop appointments with the mouse on your new scheduler?\nRegards,\nOtto",
"time": "14:37",
"topic": "3rd components integrations with fwh, UI calendar",
"username": "Otto"
}
] |
3rd components integrations with fwh, UI calendar
|
[
{
"date": "2007-12-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Someone started testing the controls with codejock but didn't get very far and stopped reporting.\n\nI downloaded it and communicated with the company. While it would be possible to run their controls, there is no method for working with the data in a .dbf file. You could write some functions to perhaps read the data from the file into memory and then work with the memory ( if you can get it into the format they read ), and then you would have to translate the memory data back into the .dbf. Although its possible, apparently no one followed up and actually did it ...\n\nTim",
"time": "00:50",
"topic": "3rd components integrations with fwh, UI calendar",
"username": "TimStone"
}
] |
3rd components integrations with fwh, UI calendar
|
[
{
"date": "2017-03-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello forum;\n\nI'm trying to use a 3rd party library .dll to OCR tif images. I chose Transym [url:2izdt5di]http://www.transym.com[/url:2izdt5di] . In order to access their functions I've written .c wrappers. Currently my sample app GPFs. Can someone help with harbour's vm .c interface?\n\nHere is my self-contained reduced sample code:\n[code=fw:2izdt5di]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//request hb_gt_win //needed for console mode app.</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBTYPE_TIFFFILE <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// TOCRJOBINFO.InputFile specifies a tiff file</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> TestTifFile := <span style=\"color: #ff0000;\">\"sample.tif\"</span><br /><br /> <span style=\"color: #B900B9;\">//SetMode(25,80) //25 lines by 80 columns console</span><br /> <span style=\"color: #00C800;\">IF</span> !FILE<span style=\"color: #000000;\">(</span> TestTifFile <span style=\"color: #000000;\">)</span> <br /> Alert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"testfile sample.tif not found\"</span> <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span> <br /> <span style=\"color: #00C800;\">ENDIF</span> <br /><br /> OCRFromFileUsingTransym<span style=\"color: #000000;\">(</span> TestTifFile, TOCRJOBTYPE_TIFFFILE <span style=\"color: #000000;\">)</span> <br /> <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------</span><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #B900B9;\">// Transym constants below </span><br /><span style=\"color: #00D7D7;\">#define</span> TOCR_OK <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBTYPE_TIFFFILE <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// TOCRJOBINFO.InputFile specifies a tiff file</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBTYPE_DIBFILE <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// TOCRJOBINFO.InputFile specifies a dib (bmp) file</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBTYPE_DIBCLIPBOARD <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// clipboard contains a dib (clipboard format CF_DIB)</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBTYPE_MMFILEHANDLE <span style=\"color: #000000;\">3</span> <span style=\"color: #B900B9;\">// TOCRJOBINFO.PageNo specifies a handle to a memory mapped DIB file</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> TOCRCONFIG_DEFAULTJOB <span style=\"color: #000000;\">-1</span> <span style=\"color: #B900B9;\">// default job number (all new jobs)</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRCONFIG_DLL_ERRORMODE <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// set the dll ErrorMode</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRCONFIG_SRV_ERRORMODE <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// set the service ErrorMode</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRCONFIG_SRV_THREADPRIORITY <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// set the service thread priority</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRCONFIG_DLL_MUTEXWAIT <span style=\"color: #000000;\">3</span> <span style=\"color: #B900B9;\">// set the dll mutex wait timeout (ms)</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRCONFIG_DLL_EVENTWAIT <span style=\"color: #000000;\">4</span> <span style=\"color: #B900B9;\">// set the dll event wait timeout (ms)</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRCONFIG_SRV_MUTEXWAIT <span style=\"color: #000000;\">5</span> <span style=\"color: #B900B9;\">// set the service mutex wait timeout (ms)</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRCONFIG_LOGFILE <span style=\"color: #000000;\">6</span> <span style=\"color: #B900B9;\">// set the log file name</span><br /><br /><span style=\"color: #B900B9;\">// Setting for JobNo for TOCRSetErrorMode and TOCRGetErrorMode</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRDEFERRORMODE <span style=\"color: #000000;\">-1</span> <span style=\"color: #B900B9;\">// set/get the default API error mode (applies</span><br /> <span style=\"color: #B900B9;\">// when there are no jobs and is applied to new jobs)</span><br /><br /><span style=\"color: #B900B9;\">// Settings for ErrorMode for TOCRSetErrorMode and TOCRGetErrorMode</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRERRORMODE_NONE <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// errors unseen (use return status of API calls)</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRERRORMODE_MSGBOX <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// errors will bring up a message box</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRERRORMODE_LOG <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// errors are sent to a log file</span><br /><br /><span style=\"color: #B900B9;\">// Values returned by TOCRGetJobStatus JobStatus</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBSTATUS_ERROR <span style=\"color: #000000;\">-1</span> <span style=\"color: #B900B9;\">// an error ocurred</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBSTATUS_BUSY <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// the job is still processing</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBSTATUS_DONE <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// the job completed successfully</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBSTATUS_IDLE <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// no job has been specified yet</span><br /><br /><span style=\"color: #B900B9;\">// Settings for Mode for TOCRGetJobResultsEx</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRGETRESULTS_NORMAL <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// return results for TOCRRESULTS</span><br /><span style=\"color: #00D7D7;\">#define</span> TOCRGETRESULTS_EXTENDED <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// return results for TOCRRESULTSEX</span><br /><br /><br />typedef struct tagTOCRProcessOptions<br /><span style=\"color: #000000;\">{</span><br /> long StructId;<br /> short InvertWholePage;<br /> short DeskewOff;<br /> char Orientation;<br /> short NoiseRemoveOff;<br /> short LineRemoveOff;<br /> short DeshadeOff;<br /> short InvertOff;<br /> short SectioningOn;<br /> short MergeBreakOff;<br /> short LineRejectOff;<br /> short CharacterRejectOff;<br /> short LexOff;<br /> short DisableCharacter<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">256</span><span style=\"color: #000000;\">]</span>;<br /><span style=\"color: #000000;\">}</span> TOCRPROCESSOPTIONS;<br /><br /><br />typedef struct tagTOCRJobInfo2<br /><span style=\"color: #000000;\">{</span><br /> long StructId;<br /> long JobType;<br /> char *InputFile;<br /> <span style=\"color: #B900B9;\">//HANDLE hMMF;</span><br /> long hMMF;<br /> long PageNo;<br /> TOCRPROCESSOPTIONS ProcessOptions;<br /><span style=\"color: #000000;\">}</span> TOCRJOBINFO2;<br /><br /><br />typedef struct tagTOCRJobInfo<br /><span style=\"color: #000000;\">{</span><br /> long StructId;<br /> long JobType;<br /> char *InputFile;<br /> long PageNo;<br /> TOCRPROCESSOPTIONS ProcessOptions;<br /><span style=\"color: #000000;\">}</span> TOCRJOBINFO;<br /><br /><br />typedef struct tagTOCRRESULTSHEADER<br /><span style=\"color: #000000;\">{</span><br /> long StructId;<br /> long XPixelsPerInch;<br /> long YPixelsPerInch;<br /> long NumItems;<br /> float MeanConfidence;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSHEADER;<br /><br />typedef struct tagTOCRRESULTSITEM<br /><span style=\"color: #000000;\">{</span><br /> unsigned short StructId;<br /> unsigned short OCRCha;<br /> float Confidence;<br /> unsigned short XPos;<br /> unsigned short YPos;<br /> unsigned short XDim;<br /> unsigned short YDim;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSITEM;<br /><br /><br />typedef struct tagTOCRRESULTS<br /><span style=\"color: #000000;\">{</span><br /> TOCRRESULTSHEADER Hdr;<br /> TOCRRESULTSITEM Item<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTS;<br /><br /><br />typedef struct tagTOCRRESULTSITEMEXALT<br /><span style=\"color: #000000;\">{</span><br /> unsigned short <span style=\"color: #0000ff;\">Valid</span>;<br /> unsigned short OCRCha;<br /> float Factor;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSITEMEXALT;<br /><br /><br />typedef struct tagTOCRRESULTSITEMEX<br /><span style=\"color: #000000;\">{</span><br /> unsigned short StructId;<br /> unsigned short OCRCha;<br /> float Confidence;<br /> unsigned short XPos;<br /> unsigned short YPos;<br /> unsigned short XDim;<br /> unsigned short YDim;<br /> TOCRRESULTSITEMEXALT Alt<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSITEMEX;<br /><br /><br />typedef struct tagTOCRRESULTSEX<br /><span style=\"color: #000000;\">{</span><br /> TOCRRESULTSHEADER Hdr;<br /> TOCRRESULTSITEMEX Item<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSEX;<br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//parameters </span><br /><span style=\"color: #B900B9;\">// 1. input file with image </span><br /><span style=\"color: #B900B9;\">// 2. type of file to ocr //should default to TIFF </span><br /><span style=\"color: #B900B9;\">//returns OCRed text </span><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> OCRFROMFILEUSINGTRANSYM <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> TOCRJOBINFO2 JobInfo2;<br /> TOCRRESULTS *Results = <span style=\"color: #000000;\">0</span>;<br /> long Status;<br /> long JobNo;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">8192</span><span style=\"color: #000000;\">]</span>;<br /> const char * InputFile = hb_parcx<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//parm 1 is input file</span><br /><br /> <span style=\"color: #B900B9;\">//Sets Transym to show error on a windows dialog box </span><br /> TOCRSetConfig<span style=\"color: #000000;\">(</span> TOCRCONFIG_DEFAULTJOB, TOCRCONFIG_DLL_ERRORMODE, TOCRERRORMODE_MSGBOX <span style=\"color: #000000;\">)</span>;<br /><br /> memset<span style=\"color: #000000;\">(</span> &JobInfo2, <span style=\"color: #000000;\">0</span>, sizeof<span style=\"color: #000000;\">(</span> TOCRJOBINFO2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> JobInfo2.JobType = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> ; <span style=\"color: #B900B9;\">//TOCRJOBTYPE_TIFFFILE;</span><br /> JobInfo2.InputFile = InputFile;<br /> Status = TOCRInitialise<span style=\"color: #000000;\">(</span> &JobNo <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status == TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> OCRWait<span style=\"color: #000000;\">(</span> JobNo, JobInfo2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> GetResults<span style=\"color: #000000;\">(</span> JobNo, &Results <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /><br /> FormatResults<span style=\"color: #000000;\">(</span> Results, Msg <span style=\"color: #000000;\">)</span>;<br /> hb_xfree<span style=\"color: #000000;\">(</span> Results <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//free( Results );</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><br /> TOCRShutdown<span style=\"color: #000000;\">(</span> JobNo <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">/**/</span><br /> hb_retc<span style=\"color: #000000;\">(</span> Msg <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br />BOOL OCRWait<span style=\"color: #000000;\">(</span> long JobNo, TOCRJOBINFO2 JobInfo2 <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long Status;<br /> long JobStatus;<br /> long ErrorMode;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4096</span><span style=\"color: #000000;\">]</span>;<br /><br /> Status = TOCRDoJob2<span style=\"color: #000000;\">(</span> JobNo, &JobInfo2 <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>Status == TOCR_OK<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> Status = TOCRWaitForJob<span style=\"color: #000000;\">(</span>JobNo, &JobStatus<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>Status == TOCR_OK && JobStatus == TOCRJOBSTATUS_DONE<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">TRUE</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">// If something hass gone wrong display a message</span><br /> <span style=\"color: #B900B9;\">// (Check that the OCR engine hasn't already displayed a message)</span><br /> TOCRGetConfig<span style=\"color: #000000;\">(</span>JobNo, TOCRCONFIG_DLL_ERRORMODE, &ErrorMode<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> ErrorMode == TOCRERRORMODE_NONE <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> TOCRGetJobStatusMsg<span style=\"color: #000000;\">(</span>JobNo, Msg<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #B900B9;\">//MessageBox( NULL, Msg, \"OCRWait\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP );</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// OCRWait()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Get the results from TOCR</span><br />BOOL getresults<span style=\"color: #000000;\">(</span>long JobNo, long mode, void **Results<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long Status;<br /> long ResultsInf;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4096</span><span style=\"color: #000000;\">]</span>;<br /><br /><br /> Status = TOCRGetJobResultsEx<span style=\"color: #000000;\">(</span>JobNo, mode, &ResultsInf, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status != TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//sprintf(Msg, \"TOCRGetJobResultsEx failed - %d\\n\", Status);</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, Msg, \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> ResultsInf > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">// Allocate memory for results</span><br /> *Results = <span style=\"color: #000000;\">(</span> char * <span style=\"color: #000000;\">)</span> hb_xgrab<span style=\"color: #000000;\">(</span> ResultsInf + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #B900B9;\">//memset( &Results, 0, sizeof( ResultsInf ) );</span><br /><br /> <span style=\"color: #B900B9;\">// Retrieve the results</span><br /> Status = TOCRGetJobResultsEx<span style=\"color: #000000;\">(</span>JobNo, mode, &ResultsInf, *Results<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status != TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//sprintf(Msg, \"TOCRGetJobResultsEx failed - %d\\n\", Status);</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, Msg, \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> hb_xfree<span style=\"color: #000000;\">(</span> Results <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//free(*Results);</span><br /> *Results = <span style=\"color: #000000;\">0</span>;<br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, \"No results found\\n\", \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span> ;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">TRUE</span>;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// getresults()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Get extended results</span><br />BOOL GetResults<span style=\"color: #000000;\">(</span> long JobNo, TOCRRESULTSEX **Results <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> getresults<span style=\"color: #000000;\">(</span> JobNo, TOCRGETRESULTS_EXTENDED, <span style=\"color: #000000;\">(</span>void **<span style=\"color: #000000;\">)</span>Results <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// GetResults()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Convert extended results to a string</span><br />BOOL FormatResults<span style=\"color: #000000;\">(</span>TOCRRESULTSEX *Results, char *Msg<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long ItemNo;<br /> long APos = <span style=\"color: #000000;\">0</span>;<br /> BOOL Status = <span style=\"color: #00C800;\">FALSE</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Results->Hdr.NumItems > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">for</span> <span style=\"color: #000000;\">(</span>ItemNo = <span style=\"color: #000000;\">0</span>; ItemNo < Results->Hdr.NumItems; ItemNo ++ <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Results->Item<span style=\"color: #000000;\">[</span>ItemNo<span style=\"color: #000000;\">]</span>.OCRCha == <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\r</span>'</span> <span style=\"color: #000000;\">)</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\n</span>'</span>;<br /> <span style=\"color: #00C800;\">else</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">(</span>char<span style=\"color: #000000;\">)</span>Results->Item<span style=\"color: #000000;\">[</span>ItemNo<span style=\"color: #000000;\">]</span>.OCRCha;<br /> APos ++;<br /> <span style=\"color: #000000;\">}</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">0</span>;<br /> Status = <span style=\"color: #00C800;\">TRUE</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">return</span> Status;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// FormatResults()</span><br /><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /><br /> </div>[/code:2izdt5di]\n\nIf someone here has experience with harbour's vm I will send you the API's documentation and .dll you will need to test. Please write to reinaldo dot crespo at gmail.\n\nThank you,\n\n\nReinaldo.",
"time": "18:43",
"topic": "3rd party c wrapper functions for harbour",
"username": "reinaldocrespo"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\n\nThe used DLL functions must be prototyped, in example:\n\n// Function TOCRInitialise (ByRef JobNo As Integer) As Integer\n\nint TOCRInitialise( int * JobNo );\n\nUsually the DLL developers should provide a header file with the C language prototypes.\nIf not, then you can build it yourself.\n\nWe need to include those prototypes in your code so the C compiler can properly use them.",
"time": "09:11",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "The easiest way to trace it is to place several calls to: \n\nMessageBox( 0, \"here\", \"ok 1\", 0 ); \n\nso you can find which function GPFs",
"time": "09:23",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You must include:\n\n#include <windows.h>\n\nin order to use MessageBox()",
"time": "09:24",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\nHave you tried the example they let you download?\nIn this example all the header files with the definitions of the functions",
"time": "09:46",
"topic": "3rd party c wrapper functions for harbour",
"username": "cnavarro"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Everyone;\n\nI did not include prototype definitions as it really doesn't make any difference. After all, you only get warnings back from the compiler. By not including these external headers I was hoping it would be easier for others to compile and give it a hack. To make things clearer, I've now added .h inclusions. You may download the .dll, .lib, my sample.tif as well as all the .h header files from a public directory I have at [url:1mq93baa]http://lac.structuredsystems.com/temp/[/url:1mq93baa]: I understand this is all you will need to build and test. Again, I believe the problem is with my wrapper functions or the structure declarations. The GPF happens when executing TOCRDoJob2().\n\nHere is my new source:\n[code=fw:1mq93baa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />request hb_gt_win <span style=\"color: #B900B9;\">//needed for console mode app.</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBTYPE_TIFFFILE <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// TOCRJOBINFO.InputFile specifies a tiff file</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> TestTifFile := <span style=\"color: #ff0000;\">\"sample.tif\"</span><br /><br /> SetMode<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">25</span>,<span style=\"color: #000000;\">80</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//25 lines by 80 columns console</span><br /> <span style=\"color: #00C800;\">IF</span> !FILE<span style=\"color: #000000;\">(</span> TestTifFile <span style=\"color: #000000;\">)</span> <br /> Alert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"testfile sample.tif not found\"</span> <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span> <br /> <span style=\"color: #00C800;\">ENDIF</span> <br /><br /> OCRFromFileUsingTransym<span style=\"color: #000000;\">(</span> TestTifFile, TOCRJOBTYPE_TIFFFILE <span style=\"color: #000000;\">)</span> <br /> <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------</span><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #B900B9;\">//#include <tocrdll.h></span><br /><span style=\"color: #00D7D7;\">#include</span> <tocruser.h><br /><span style=\"color: #00D7D7;\">#include</span> <tocrerrs.h><br /><br /><br />typedef struct _TOCRProcessOptions<br /><span style=\"color: #000000;\">{</span><br /> long StructId;<br /> short InvertWholePage;<br /> short DeskewOff;<br /> char Orientation;<br /> short NoiseRemoveOff;<br /> short LineRemoveOff;<br /> short DeshadeOff;<br /> short InvertOff;<br /> short SectioningOn;<br /> short MergeBreakOff;<br /> short LineRejectOff;<br /> short CharacterRejectOff;<br /> short LexOff;<br /> short DisableCharacter<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">256</span><span style=\"color: #000000;\">]</span>;<br /><span style=\"color: #000000;\">}</span> TOCRPROCESSOPTIONS;<br /><br /><br />typedef struct _TOCRJobInfo2<br /><span style=\"color: #000000;\">{</span><br /> long StructId;<br /> long JobType;<br /> char *InputFile;<br /> <span style=\"color: #B900B9;\">//HANDLE hMMF;</span><br /> long hMMF;<br /> long PageNo;<br /> TOCRPROCESSOPTIONS ProcessOptions;<br /><span style=\"color: #000000;\">}</span> TOCRJOBINFO2;<br /><br /><br />typedef struct _TOCRJobInfo<br /><span style=\"color: #000000;\">{</span><br /> long StructId;<br /> long JobType;<br /> char *InputFile;<br /> long PageNo;<br /> TOCRPROCESSOPTIONS ProcessOptions;<br /><span style=\"color: #000000;\">}</span> TOCRJOBINFO;<br /><br /><br />typedef struct _TOCRRESULTSHEADER<br /><span style=\"color: #000000;\">{</span><br /> long StructId;<br /> long XPixelsPerInch;<br /> long YPixelsPerInch;<br /> long NumItems;<br /> float MeanConfidence;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSHEADER;<br /><br />typedef struct _TOCRRESULTSITEM<br /><span style=\"color: #000000;\">{</span><br /> unsigned short StructId;<br /> unsigned short OCRCha;<br /> float Confidence;<br /> unsigned short XPos;<br /> unsigned short YPos;<br /> unsigned short XDim;<br /> unsigned short YDim;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSITEM;<br /><br /><br />typedef struct _TOCRRESULTS<br /><span style=\"color: #000000;\">{</span><br /> TOCRRESULTSHEADER Hdr;<br /> TOCRRESULTSITEM Item<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTS;<br /><br /><br />typedef struct _TOCRRESULTSITEMEXALT<br /><span style=\"color: #000000;\">{</span><br /> unsigned short <span style=\"color: #0000ff;\">Valid</span>;<br /> unsigned short OCRCha;<br /> float Factor;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSITEMEXALT;<br /><br /><br />typedef struct _TOCRRESULTSITEMEX<br /><span style=\"color: #000000;\">{</span><br /> unsigned short StructId;<br /> unsigned short OCRCha;<br /> float Confidence;<br /> unsigned short XPos;<br /> unsigned short YPos;<br /> unsigned short XDim;<br /> unsigned short YDim;<br /> TOCRRESULTSITEMEXALT Alt<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSITEMEX;<br /><br /><br />typedef struct _TOCRRESULTSEX<br /><span style=\"color: #000000;\">{</span><br /> TOCRRESULTSHEADER Hdr;<br /> TOCRRESULTSITEMEX Item<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>;<br /><span style=\"color: #000000;\">}</span> TOCRRESULTSEX;<br /><br />extern long TOCRInitialise<span style=\"color: #000000;\">(</span>long *JobNo<span style=\"color: #000000;\">)</span>;<br />extern long TOCRShutdown<span style=\"color: #000000;\">(</span>long JobNo<span style=\"color: #000000;\">)</span>;<br />extern long TOCRDoJob2<span style=\"color: #000000;\">(</span>long JobNo, TOCRJOBINFO2 *JobInfo2<span style=\"color: #000000;\">)</span>;<br />extern long TOCRWaitForJob<span style=\"color: #000000;\">(</span>long JobNo, long *JobStatus<span style=\"color: #000000;\">)</span>;<br />extern long TOCRWaitForAnyJob<span style=\"color: #000000;\">(</span>long *WaitAnyStatus, long *JobNo<span style=\"color: #000000;\">)</span>;<br />extern long TOCRGetJobDBInfo<span style=\"color: #000000;\">(</span>long *JobSlotInf<span style=\"color: #000000;\">)</span>;<br />extern long TOCRGetJobStatus<span style=\"color: #000000;\">(</span>long JobNo, long *JobStatus<span style=\"color: #000000;\">)</span>;<br />extern long TOCRGetJobStatusEx<span style=\"color: #000000;\">(</span>long JobNo, long *JobStatus, float *<span style=\"color: #0000ff;\">Progress</span>, long *AutoOrientation<span style=\"color: #000000;\">)</span>;<br />extern long TOCRGetJobStatusMsg<span style=\"color: #000000;\">(</span>long JobNo, char *Msg<span style=\"color: #000000;\">)</span>;<br />extern long TOCRGetNumPages<span style=\"color: #000000;\">(</span>long JobNo, char *Filename, long JobType, long *NumPages<span style=\"color: #000000;\">)</span>;<br />extern long TOCRGetJobResults<span style=\"color: #000000;\">(</span>long JobNo, long *ResultsInf, TOCRRESULTS *Results<span style=\"color: #000000;\">)</span>;<br />extern long TOCRGetJobResultsEx<span style=\"color: #000000;\">(</span>long JobNo, long Mode, long *ResultsInf, void *ResultsEx<span style=\"color: #000000;\">)</span>;<br />extern long TOCRGetLicenceInfoEx<span style=\"color: #000000;\">(</span>long JobNo, char *Licence, long *Volume, long *Time, long *Remaining, long *Features<span style=\"color: #000000;\">)</span>;<br />extern long TOCRConvertFormat<span style=\"color: #000000;\">(</span>long JobNo, void *InputAddr, long InputFormat, void *OutputAddr, long OutputFormat, long PageNo<span style=\"color: #000000;\">)</span>;<br />extern long TOCRSetConfig<span style=\"color: #000000;\">(</span>long JobNo, long Parameter, long Value<span style=\"color: #000000;\">)</span>;<br />extern long TOCRGetConfig<span style=\"color: #000000;\">(</span>long JobNo, long Parameter, long *Value<span style=\"color: #000000;\">)</span>;<br /><br />BOOL OCRWait<span style=\"color: #000000;\">(</span>long JobNo, TOCRJOBINFO2 JobInfo2<span style=\"color: #000000;\">)</span>;<br />BOOL GetResults<span style=\"color: #000000;\">(</span>long JobNo, TOCRRESULTSEX **Results<span style=\"color: #000000;\">)</span>;<br />BOOL FormatResults<span style=\"color: #000000;\">(</span>TOCRRESULTSEX *Results, char *Msg<span style=\"color: #000000;\">)</span>;<br /><br /><span style=\"color: #B900B9;\">/**/</span><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//parameters </span><br /><span style=\"color: #B900B9;\">// 1. input file with image </span><br /><span style=\"color: #B900B9;\">// 2. type of file to ocr //should default to TIFF </span><br /><span style=\"color: #B900B9;\">//returns OCRed text </span><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> OCRFROMFILEUSINGTRANSYM <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> TOCRJOBINFO2 JobInfo2;<br /> TOCRRESULTS *Results = <span style=\"color: #000000;\">0</span>;<br /> long Status;<br /> long JobNo;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">8192</span><span style=\"color: #000000;\">]</span>;<br /> const char * InputFile = hb_parcx<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//parm 1 is input file</span><br /><br /> <span style=\"color: #B900B9;\">//Sets Transym to print error to log file tocr.log</span><br /> TOCRSetConfig<span style=\"color: #000000;\">(</span> TOCRCONFIG_DEFAULTJOB, TOCRCONFIG_DLL_ERRORMODE, TOCRERRORMODE_MSGBOX <span style=\"color: #000000;\">)</span>;<br /><br /> memset<span style=\"color: #000000;\">(</span> &JobInfo2, <span style=\"color: #000000;\">0</span>, sizeof<span style=\"color: #000000;\">(</span> TOCRJOBINFO2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> JobInfo2.JobType = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> ; <span style=\"color: #B900B9;\">//TOCRJOBTYPE_TIFFFILE;</span><br /> JobInfo2.InputFile = InputFile;<br /> Status = TOCRInitialise<span style=\"color: #000000;\">(</span> &JobNo <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status == TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> OCRWait<span style=\"color: #000000;\">(</span> JobNo, JobInfo2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> GetResults<span style=\"color: #000000;\">(</span> JobNo, &Results <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /><br /> FormatResults<span style=\"color: #000000;\">(</span> Results, Msg <span style=\"color: #000000;\">)</span>;<br /> hb_xfree<span style=\"color: #000000;\">(</span> Results <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//free( Results );</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><br /> TOCRShutdown<span style=\"color: #000000;\">(</span> JobNo <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">/**/</span><br /> hb_retc<span style=\"color: #000000;\">(</span> Msg <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br />BOOL OCRWait<span style=\"color: #000000;\">(</span> long JobNo, TOCRJOBINFO2 JobInfo2 <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long Status;<br /> long JobStatus;<br /> long ErrorMode;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4096</span><span style=\"color: #000000;\">]</span>;<br /><br /> Status = TOCRDoJob2<span style=\"color: #000000;\">(</span> JobNo, &JobInfo2 <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>Status == TOCR_OK<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> Status = TOCRWaitForJob<span style=\"color: #000000;\">(</span>JobNo, &JobStatus<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>Status == TOCR_OK && JobStatus == TOCRJOBSTATUS_DONE<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">TRUE</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">// If something hass gone wrong display a message</span><br /> <span style=\"color: #B900B9;\">// (Check that the OCR engine hasn't already displayed a message)</span><br /> TOCRGetConfig<span style=\"color: #000000;\">(</span>JobNo, TOCRCONFIG_DLL_ERRORMODE, &ErrorMode<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> ErrorMode == TOCRERRORMODE_NONE <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> TOCRGetJobStatusMsg<span style=\"color: #000000;\">(</span>JobNo, Msg<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #B900B9;\">//MessageBox( NULL, Msg, \"OCRWait\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP );</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// OCRWait()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Get the results from TOCR</span><br />BOOL getresults<span style=\"color: #000000;\">(</span>long JobNo, long mode, void **Results<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long Status;<br /> long ResultsInf;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4096</span><span style=\"color: #000000;\">]</span>;<br /><br /><br /> Status = TOCRGetJobResultsEx<span style=\"color: #000000;\">(</span>JobNo, mode, &ResultsInf, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status != TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//sprintf(Msg, \"TOCRGetJobResultsEx failed - %d\\n\", Status);</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, Msg, \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> ResultsInf > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">// Allocate memory for results</span><br /> *Results = <span style=\"color: #000000;\">(</span> char * <span style=\"color: #000000;\">)</span> hb_xgrab<span style=\"color: #000000;\">(</span> ResultsInf + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #B900B9;\">//memset( &Results, 0, sizeof( ResultsInf ) );</span><br /><br /> <span style=\"color: #B900B9;\">// Retrieve the results</span><br /> Status = TOCRGetJobResultsEx<span style=\"color: #000000;\">(</span>JobNo, mode, &ResultsInf, *Results<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status != TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//sprintf(Msg, \"TOCRGetJobResultsEx failed - %d\\n\", Status);</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, Msg, \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> hb_xfree<span style=\"color: #000000;\">(</span> Results <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//free(*Results);</span><br /> *Results = <span style=\"color: #000000;\">0</span>;<br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, \"No results found\\n\", \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span> ;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">TRUE</span>;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// getresults()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Get extended results</span><br />BOOL GetResults<span style=\"color: #000000;\">(</span> long JobNo, TOCRRESULTSEX **Results <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> getresults<span style=\"color: #000000;\">(</span> JobNo, TOCRGETRESULTS_EXTENDED, <span style=\"color: #000000;\">(</span>void **<span style=\"color: #000000;\">)</span>Results <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// GetResults()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Convert extended results to a string</span><br />BOOL FormatResults<span style=\"color: #000000;\">(</span>TOCRRESULTSEX *Results, char *Msg<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long ItemNo;<br /> long APos = <span style=\"color: #000000;\">0</span>;<br /> BOOL Status = <span style=\"color: #00C800;\">FALSE</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Results->Hdr.NumItems > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">for</span> <span style=\"color: #000000;\">(</span>ItemNo = <span style=\"color: #000000;\">0</span>; ItemNo < Results->Hdr.NumItems; ItemNo ++ <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Results->Item<span style=\"color: #000000;\">[</span>ItemNo<span style=\"color: #000000;\">]</span>.OCRCha == <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\r</span>'</span> <span style=\"color: #000000;\">)</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\n</span>'</span>;<br /> <span style=\"color: #00C800;\">else</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">(</span>char<span style=\"color: #000000;\">)</span>Results->Item<span style=\"color: #000000;\">[</span>ItemNo<span style=\"color: #000000;\">]</span>.OCRCha;<br /> APos ++;<br /> <span style=\"color: #000000;\">}</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">0</span>;<br /> Status = <span style=\"color: #00C800;\">TRUE</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">return</span> Status;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// FormatResults()</span><br /><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /> </div>[/code:1mq93baa]\nNotice I'm not including their tocdll.h declarations. This is because their external functions declaration follows a more strict vc format and we need to declare them in a harbour vm more friendly manner.\n\nI hope I can recruit someone with harbour vm experience to help make Transym OCR work with Harbour. \n\nThank you,\n\n\nReinaldo.",
"time": "15:50",
"topic": "3rd party c wrapper functions for harbour",
"username": "reinaldocrespo"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"reinaldocrespo\":2wskujuq]I did not include prototype definitions as it really doesn't make any difference. After all, you only get warnings back from the compiler.[/quote:2wskujuq]\n\nThis is not true. In C language, if a function declaration is missing, the compiler assumes all int types for the parameter and the return value, that is most probably wrong and results in a GPF.\n\nEMG",
"time": "18:19",
"topic": "3rd party c wrapper functions for harbour",
"username": "Enrico Maria Giordano"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Well, thank you. I did not know the compiler assumed int. However, with my revised code that includes prototype declarations, I still have the same problem. Code with prototypes is shared on my previous entry on this thread. I have placed all the files needed to recreate the project on a temporary server directory: [url:s5sj4e7z]http://lac.structuredsystems.com/temp/[/url:s5sj4e7z]\n\nPerhaps someone can help?\n\n\nReinaldo.",
"time": "19:13",
"topic": "3rd party c wrapper functions for harbour",
"username": "reinaldocrespo"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This modified version is compiling clean:\n\ntransym.prg\n[code=fw:1s1a3go7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />request hb_gt_win <span style=\"color: #B900B9;\">//needed for console mode app.</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBTYPE_TIFFFILE <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// TOCRJOBINFO.InputFile specifies a tiff file</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> TestTifFile := <span style=\"color: #ff0000;\">\"sample.tif\"</span><br /><br /> SetMode<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">25</span>,<span style=\"color: #000000;\">80</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//25 lines by 80 columns console</span><br /> <span style=\"color: #00C800;\">IF</span> !FILE<span style=\"color: #000000;\">(</span> TestTifFile <span style=\"color: #000000;\">)</span> <br /> Alert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"testfile sample.tif not found\"</span> <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span> <br /> <span style=\"color: #00C800;\">ENDIF</span> <br /><br /> OCRFromFileUsingTransym<span style=\"color: #000000;\">(</span> TestTifFile, TOCRJOBTYPE_TIFFFILE <span style=\"color: #000000;\">)</span> <br /> <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"TOCRdll.h\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"TOCRuser.h\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"TOCRerrs.h\"</span><br /><br />BOOL OCRWait<span style=\"color: #000000;\">(</span> long JobNo, TOCRJOBINFO2 JobInfo2 <span style=\"color: #000000;\">)</span>;<br />BOOL GetResults<span style=\"color: #000000;\">(</span> long JobNo, TOCRRESULTSEX ** Results <span style=\"color: #000000;\">)</span>;<br />BOOL FormatResults<span style=\"color: #000000;\">(</span> TOCRRESULTSEX * Results, char * Msg <span style=\"color: #000000;\">)</span>;<br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//parameters </span><br /><span style=\"color: #B900B9;\">// 1. input file with image </span><br /><span style=\"color: #B900B9;\">// 2. type of file to ocr //should default to TIFF </span><br /><span style=\"color: #B900B9;\">//returns OCRed text </span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> OCRFROMFILEUSINGTRANSYM <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> TOCRJOBINFO2 JobInfo2;<br /> TOCRRESULTSEX * Results = <span style=\"color: #000000;\">0</span>;<br /> long Status;<br /> long JobNo;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">8192</span><span style=\"color: #000000;\">]</span>;<br /> char * InputFile = <span style=\"color: #000000;\">(</span> char * <span style=\"color: #000000;\">)</span> hb_parcx<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//parm 1 is input file</span><br /><br /> <span style=\"color: #B900B9;\">//Sets Transym to print error to log file tocr.log</span><br /> TOCRSetConfig<span style=\"color: #000000;\">(</span> TOCRCONFIG_DEFAULTJOB, TOCRCONFIG_DLL_ERRORMODE, TOCRERRORMODE_MSGBOX <span style=\"color: #000000;\">)</span>;<br /><br /> memset<span style=\"color: #000000;\">(</span> &JobInfo2, <span style=\"color: #000000;\">0</span>, sizeof<span style=\"color: #000000;\">(</span> TOCRJOBINFO2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> JobInfo2.JobType = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> ; <span style=\"color: #B900B9;\">//TOCRJOBTYPE_TIFFFILE;</span><br /> JobInfo2.InputFile = InputFile;<br /> Status = TOCRInitialise<span style=\"color: #000000;\">(</span> &JobNo <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status == TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> OCRWait<span style=\"color: #000000;\">(</span> JobNo, JobInfo2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> GetResults<span style=\"color: #000000;\">(</span> JobNo, &Results <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /><br /> FormatResults<span style=\"color: #000000;\">(</span> Results, Msg <span style=\"color: #000000;\">)</span>;<br /> hb_xfree<span style=\"color: #000000;\">(</span> Results <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//free( Results );</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><br /> TOCRShutdown<span style=\"color: #000000;\">(</span> JobNo <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">/**/</span><br /> hb_retc<span style=\"color: #000000;\">(</span> Msg <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br />BOOL OCRWait<span style=\"color: #000000;\">(</span> long JobNo, TOCRJOBINFO2 JobInfo2 <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long Status;<br /> long JobStatus;<br /> long ErrorMode;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4096</span><span style=\"color: #000000;\">]</span>;<br /><br /> Status = TOCRDoJob2<span style=\"color: #000000;\">(</span> JobNo, &JobInfo2 <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>Status == TOCR_OK<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> Status = TOCRWaitForJob<span style=\"color: #000000;\">(</span>JobNo, &JobStatus<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>Status == TOCR_OK && JobStatus == TOCRJOBSTATUS_DONE<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">TRUE</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">// If something hass gone wrong display a message</span><br /> <span style=\"color: #B900B9;\">// (Check that the OCR engine hasn't already displayed a message)</span><br /> TOCRGetConfig<span style=\"color: #000000;\">(</span>JobNo, TOCRCONFIG_DLL_ERRORMODE, &ErrorMode<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> ErrorMode == TOCRERRORMODE_NONE <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> TOCRGetJobStatusMsg<span style=\"color: #000000;\">(</span>JobNo, Msg<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #B900B9;\">//MessageBox( NULL, Msg, \"OCRWait\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP );</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// OCRWait()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Get the results from TOCR</span><br />BOOL getresults<span style=\"color: #000000;\">(</span>long JobNo, long mode, void **Results<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long Status;<br /> long ResultsInf;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4096</span><span style=\"color: #000000;\">]</span>;<br /><br /><br /> Status = TOCRGetJobResultsEx<span style=\"color: #000000;\">(</span>JobNo, mode, &ResultsInf, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status != TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//sprintf(Msg, \"TOCRGetJobResultsEx failed - %d\\n\", Status);</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, Msg, \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> ResultsInf > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">// Allocate memory for results</span><br /> *Results = <span style=\"color: #000000;\">(</span> char * <span style=\"color: #000000;\">)</span> hb_xgrab<span style=\"color: #000000;\">(</span> ResultsInf + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #B900B9;\">//memset( &Results, 0, sizeof( ResultsInf ) );</span><br /><br /> <span style=\"color: #B900B9;\">// Retrieve the results</span><br /> Status = TOCRGetJobResultsEx<span style=\"color: #000000;\">(</span>JobNo, mode, &ResultsInf, *Results<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status != TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//sprintf(Msg, \"TOCRGetJobResultsEx failed - %d\\n\", Status);</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, Msg, \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> hb_xfree<span style=\"color: #000000;\">(</span> Results <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//free(*Results);</span><br /> *Results = <span style=\"color: #000000;\">0</span>;<br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, \"No results found\\n\", \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span> ;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">TRUE</span>;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// getresults()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Get extended results</span><br />BOOL GetResults<span style=\"color: #000000;\">(</span> long JobNo, TOCRRESULTSEX **Results <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> getresults<span style=\"color: #000000;\">(</span> JobNo, TOCRGETRESULTS_EXTENDED, <span style=\"color: #000000;\">(</span>void **<span style=\"color: #000000;\">)</span>Results <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// GetResults()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Convert extended results to a string</span><br />BOOL FormatResults<span style=\"color: #000000;\">(</span>TOCRRESULTSEX *Results, char *Msg<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long ItemNo;<br /> long APos = <span style=\"color: #000000;\">0</span>;<br /> BOOL Status = <span style=\"color: #00C800;\">FALSE</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Results->Hdr.NumItems > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">for</span> <span style=\"color: #000000;\">(</span>ItemNo = <span style=\"color: #000000;\">0</span>; ItemNo < Results->Hdr.NumItems; ItemNo ++ <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Results->Item<span style=\"color: #000000;\">[</span>ItemNo<span style=\"color: #000000;\">]</span>.OCRCha == <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\r</span>'</span> <span style=\"color: #000000;\">)</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\n</span>'</span>;<br /> <span style=\"color: #00C800;\">else</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">(</span>char<span style=\"color: #000000;\">)</span>Results->Item<span style=\"color: #000000;\">[</span>ItemNo<span style=\"color: #000000;\">]</span>.OCRCha;<br /> APos ++;<br /> <span style=\"color: #000000;\">}</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">0</span>;<br /> Status = <span style=\"color: #00C800;\">TRUE</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">return</span> Status;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// FormatResults()</span><br /><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /> </div>[/code:1s1a3go7]\n\nc:\\fwh\\samples\\build.bat transym\n\n[img:1s1a3go7]https://bitbucket.org/fivetech/screenshots/downloads/transym.JPG[/img:1s1a3go7]\n\nNow we need to create the import library...",
"time": "19:25",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Try with the files I've placed on the server. [url:36cgrsxz]http://lac.structuredsystems.com/temp/[/url:36cgrsxz] Here you will find the exported .lib from .dll as well as all other needed files. I get a clean build using Borland c++ 5.82. \n\nYou will probably have to comment the line that includes TOCRdll.h and instead create prototypes using harbour vm declarations. For example, this\n\n[code=fw:36cgrsxz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />EXTERN_C long WINAPI TOCRInitialise<span style=\"color: #000000;\">(</span>long *JobNo<span style=\"color: #000000;\">)</span>;<br /> </div>[/code:36cgrsxz]\n\nNeeds to change to this:\n[code=fw:36cgrsxz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />extern long TOCRInitialise<span style=\"color: #000000;\">(</span>long *JobNo<span style=\"color: #000000;\">)</span>;<br /> </div>[/code:36cgrsxz]\n\nAll this is done on Transym.prg on the available link above. If I don't fix prototypes this way then I always get missing functions when linking even when the .lib is being linked. If you find any other way to get it to work, please let me know.\n\nReinaldo.",
"time": "19:52",
"topic": "3rd party c wrapper functions for harbour",
"username": "reinaldocrespo"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\n\n> You will probably have to comment the line that includes TOCRdll.h and instead create prototypes using harbour vm declarations\n\nThis is not needed at all. The transym.prg that I have posted compiles fine using the TOCRdll.h header file\n\nI have tried to create the import library using bcc 7 implib.exe but it failed, so I have created the TOCRdll.def by hand using this tool:\n[url:1yi98tfm]https://bitbucket.org/fivetech/fivewin-contributions/downloads/peinfo.exe[/url:1yi98tfm]\n\nTOCRdll.def\n[code=fw:1yi98tfm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">LIBRARY</span> TOCRDLL.DLL<br /><br />EXPORTS<br /><br />TOCRConvertFormat @<span style=\"color: #000000;\">1</span><br />TOCRConvertTIFFtoDIB @<span style=\"color: #000000;\">2</span><br />TOCRDoJob @<span style=\"color: #000000;\">3</span><br />TOCRDoJob2 @<span style=\"color: #000000;\">4</span><br />TOCRDoJobPDF_EG @<span style=\"color: #000000;\">5</span><br />TOCRDoJob_EG @<span style=\"color: #000000;\">6</span><br />TOCRExtraInfGetMMF @<span style=\"color: #000000;\">7</span><br />TOCRGetConfig @<span style=\"color: #000000;\">8</span><br />TOCRGetConfigStr @<span style=\"color: #000000;\">9</span><br />TOCRGetErrorMode @<span style=\"color: #000000;\">10</span><br />TOCRGetFontName @<span style=\"color: #000000;\">11</span><br />TOCRGetJobDBInfo @<span style=\"color: #000000;\">12</span><br />TOCRGetJobResults @<span style=\"color: #000000;\">13</span><br />TOCRGetJobResultsEx @<span style=\"color: #000000;\">14</span><br />TOCRGetJobResultsEx_EG @<span style=\"color: #000000;\">15</span><br />TOCRGetJobStatus @<span style=\"color: #000000;\">16</span><br />TOCRGetJobStatusEx @<span style=\"color: #000000;\">17</span><br />TOCRGetJobStatusEx2 @<span style=\"color: #000000;\">18</span><br />TOCRGetJobStatusMsg @<span style=\"color: #000000;\">19</span><br />TOCRGetLicenceInfo @<span style=\"color: #000000;\">20</span><br />TOCRGetLicenceInfoEx @<span style=\"color: #000000;\">21</span><br />TOCRGetNumPages @<span style=\"color: #000000;\">22</span><br />TOCRInitialise @<span style=\"color: #000000;\">23</span><br />TOCRPopulateCharStatusMap @<span style=\"color: #000000;\">24</span><br />TOCRRotateMonoBitmap @<span style=\"color: #000000;\">25</span><br />TOCRSetConfig @<span style=\"color: #000000;\">26</span><br />TOCRSetConfigStr @<span style=\"color: #000000;\">27</span><br />TOCRSetErrorMode @<span style=\"color: #000000;\">28</span><br />TOCRShutdown @<span style=\"color: #000000;\">29</span><br />TOCRTWAINAcquire @<span style=\"color: #000000;\">30</span><br />TOCRTWAINGetImages @<span style=\"color: #000000;\">31</span><br />TOCRTWAINSelectDS @<span style=\"color: #000000;\">32</span><br />TOCRTWAINShowUI @<span style=\"color: #000000;\">33</span><br />TOCRWaitForAnyJob @<span style=\"color: #000000;\">34</span><br />TOCRWaitForJob @<span style=\"color: #000000;\">35</span></div>[/code:1yi98tfm]\n\nTo create the import library from TOCRdll.def we do:\nc:\\bcc7\\bin>implib TOCRdll.lib TOCRdll.def\n\nNow the EXE is properly built:\n[img:1yi98tfm]https://bitbucket.org/fivetech/screenshots/downloads/transym_2.JPG[/img:1yi98tfm]",
"time": "20:30",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "There is something wrong with the DLL. If I try this:\n\n[code=fw:2p980cmb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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 /><br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> LoadLibrary<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TOCRdll.dll\"</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:2p980cmb]\n\nI get a zero, which means an error loading the DLL.",
"time": "20:48",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\n\nas I already wrote to you privately, the program compiles and links fine but when I run the EXE I get the error 0xc000007b.\n\nJust a note: in C language, when you include a non standard header file (ie. a header file that is not one of the C standard header files) you have to use the syntax\n\n[code=fw:1xhel6bf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"nonstandard.h\"</span></div>[/code:1xhel6bf]\n\ninstead of\n\n[code=fw:1xhel6bf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <nonstandard.h></div>[/code:1xhel6bf]\n\nEMG",
"time": "20:50",
"topic": "3rd party c wrapper functions for harbour",
"username": "Enrico Maria Giordano"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":21rab26j]There is something wrong with the DLL. If I try this:\n\n[code=fw:21rab26j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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 /><br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> LoadLibrary<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TOCRdll.dll\"</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:21rab26j]\n\nI get a zero, which means an error loading the DLL.[/quote:21rab26j]\n\nI suspected this...\n\nEMG",
"time": "20:51",
"topic": "3rd party c wrapper functions for harbour",
"username": "Enrico Maria Giordano"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "To check whats going on with the DLL I have created this simple test:\n\n[code=fw:1hbu7jyc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> Test<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TOCRdll.dll\"</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><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> TEST <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> LoadLibrary<span style=\"color: #000000;\">(</span> hb_parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> hb_retnl<span style=\"color: #000000;\">(</span> GetLastError<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span> <br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP</div>[/code:1hbu7jyc]\n\nAnd I get error number 193:\n[quote:1hbu7jyc]ERROR_BAD_EXE_FORMAT\n193 (0xC1)\n%1 is not a valid Win32 application.[/quote:1hbu7jyc]\n\n[url:1hbu7jyc]https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx[/url:1hbu7jyc]",
"time": "20:58",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "The TOCRdll.dll that you posted here:\n\n[url:2bt0umv5]http://lac.structuredsystems.com/temp/[/url:2bt0umv5]\n\nis loading fine",
"time": "21:08",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Now I get this error:\n\n[img:1786nqmd]https://bitbucket.org/fivetech/screenshots/downloads/transym_3.JPG[/img:1786nqmd]",
"time": "21:11",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I guess it is related with the license:\n\nLooking inside the TOCRdll.dll I find this:\n[quote:z6a39fsl]Invalid licence number Software\\Transym\\TOCR\\1.1\\Paths Failed to find Paths [/quote:z6a39fsl]",
"time": "21:16",
"topic": "3rd party c wrapper functions for harbour",
"username": "Antonio Linares"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I was hoping that by installing the key code here before coping over to the temp directory where you are download from would take care of that. \n\nI will email you and anyone interested on trying the key code to install the license. That should fix that problem.\n\nReinaldo.",
"time": "21:29",
"topic": "3rd party c wrapper functions for harbour",
"username": "reinaldocrespo"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ok, now I'm also getting \"Failed to find Paths\".\n\nSome other notes:\n\n1. Change this line from\n\n[code=fw:2kknd3d0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">JobInfo2.InputFile = InputFile;</div>[/code:2kknd3d0]\n\nto\n\n[code=fw:2kknd3d0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">JobInfo2.InputFile = <span style=\"color: #000000;\">(</span> char * <span style=\"color: #000000;\">)</span> InputFile;</div>[/code:2kknd3d0]\n\nto shut up the warning. But first check if it's correct to remove the constness from InputFile.\n\n2. Change this line from\n\n[code=fw:2kknd3d0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">TOCRRESULTS *Results = <span style=\"color: #000000;\">0</span>;</div>[/code:2kknd3d0]\n\nto\n\n[code=fw:2kknd3d0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">TOCRRESULTSEX *Results = <span style=\"color: #000000;\">0</span>;</div>[/code:2kknd3d0]\n\nas GetResults() function expects a TOCRRESULTSEX type as the second parameter.\n\nEMG",
"time": "09:15",
"topic": "3rd party c wrapper functions for harbour",
"username": "Enrico Maria Giordano"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you very much Enrico. Good observations. The problem I'm having now is linking the app. It complains of missing TOCR functions as if I wasn't linking TOCRdll.lib but I am.\n\n[code=fw:303tlh1f]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />xHarbour Compiler build <span style=\"color: #000000;\">1.2</span><span style=\"color: #000000;\">.1</span> <span style=\"color: #000000;\">(</span>SimpLex<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">(</span>Rev. <span style=\"color: #000000;\">6741</span><span style=\"color: #000000;\">)</span><br />Copyright <span style=\"color: #000000;\">1999</span><span style=\"color: #000000;\">-2010</span>, http:<span style=\"color: #B900B9;\">//www.xharbour.org <!-- m --><a class=\"postlink\" href=\"http://www.harbour-project.org/\">http://www.harbour-project.org/</a><!-- m --></span><br />Compiling <span style=\"color: #ff0000;\">'transym.prg'</span> and generating preprocessed output <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'transym.ppo'</span>...<br /><br /><span style=\"color: #000000;\">100</span><br /><br />Lines <span style=\"color: #000000;\">15</span>, Functions/Procedures <span style=\"color: #000000;\">1</span><br />Generating C source output <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'transym.c'</span>...<br />Done.<br />Borland C++ <span style=\"color: #000000;\">5.82</span> <span style=\"color: #00C800;\">for</span> Win32 Copyright <span style=\"color: #000000;\">(</span>c<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">1993</span>, <span style=\"color: #000000;\">2005</span> Borland<br />transym.c:<br /><span style=\"color: #000000;\">Turbo</span> Incremental Link <span style=\"color: #000000;\">5.69</span> Copyright <span style=\"color: #000000;\">(</span>c<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">1997</span><span style=\"color: #000000;\">-2005</span> Borland<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'TOCRSetConfig'</span> referenced <span style=\"color: #0000ff;\">from</span> F:\\FWH_2012_04\\SAMPLES\\TRANSYM.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'TOCRInitialise'</span> referenced <span style=\"color: #0000ff;\">from</span> F:\\FWH_2012_04\\SAMPLES\\TRANSYM.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'TOCRShutdown'</span> referenced <span style=\"color: #0000ff;\">from</span> F:\\FWH_2012_04\\SAMPLES\\TRANSYM.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'TOCRDoJob2'</span> referenced <span style=\"color: #0000ff;\">from</span> F:\\FWH_2012_04\\SAMPLES\\TRANSYM.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'TOCRWaitForJob'</span> referenced <span style=\"color: #0000ff;\">from</span> F:\\FWH_2012_04\\SAMPLES\\TRANSYM.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'TOCRGetConfig'</span> referenced <span style=\"color: #0000ff;\">from</span> F:\\FWH_2012_04\\SAMPLES\\TRANSYM.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'TOCRGetJobStatusMsg'</span> referenced <span style=\"color: #0000ff;\">from</span> F:\\FWH_2012_04\\SAMPLES\\TRANSYM.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'TOCRGetJobResultsEx'</span> referenced <span style=\"color: #0000ff;\">from</span> F:\\FWH_2012_04\\SAMPLES\\TRANSYM.OBJ<br />* Linking errors *<br /> </div>[/code:303tlh1f]\n\nThis is my Transym.prg\n[code=fw:303tlh1f]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#define</span> TOCRJOBTYPE_TIFFFILE <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// TOCRJOBINFO.InputFile specifies a tiff file</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> TestTifFile := <span style=\"color: #ff0000;\">\"sample.tif\"</span><br /><br /> <span style=\"color: #00C800;\">IF</span> !FILE<span style=\"color: #000000;\">(</span> TestTifFile <span style=\"color: #000000;\">)</span> <br /> Alert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"testfile sample.tif not found\"</span> <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span> <br /> <span style=\"color: #00C800;\">ENDIF</span> <br /><br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> OCRFromFileUsingTransym<span style=\"color: #000000;\">(</span> TestTifFile, TOCRJOBTYPE_TIFFFILE <span style=\"color: #000000;\">)</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: #B900B9;\">//-----------------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"TOCRdll.h\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"TOCRuser.h\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"TOCRerrs.h\"</span><br /><br />BOOL OCRWait<span style=\"color: #000000;\">(</span> long JobNo, TOCRJOBINFO2 JobInfo2 <span style=\"color: #000000;\">)</span>;<br />BOOL GetResults<span style=\"color: #000000;\">(</span> long JobNo, TOCRRESULTSEX ** Results <span style=\"color: #000000;\">)</span>;<br />BOOL FormatResults<span style=\"color: #000000;\">(</span> TOCRRESULTSEX * Results, char * Msg <span style=\"color: #000000;\">)</span>;<br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//parameters </span><br /><span style=\"color: #B900B9;\">// 1. input file with image </span><br /><span style=\"color: #B900B9;\">// 2. type of file to ocr //should default to TIFF </span><br /><span style=\"color: #B900B9;\">//returns OCRed text </span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> OCRFROMFILEUSINGTRANSYM <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> TOCRJOBINFO2 JobInfo2;<br /> TOCRRESULTSEX * Results = <span style=\"color: #000000;\">0</span>;<br /> long Status;<br /> long JobNo;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">8192</span><span style=\"color: #000000;\">]</span>;<br /> char * InputFile = <span style=\"color: #000000;\">(</span> char * <span style=\"color: #000000;\">)</span> hb_parcx<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//parm 1 is input file</span><br /><br /> <span style=\"color: #B900B9;\">//Sets Transym to print error to log file tocr.log</span><br /> TOCRSetConfig<span style=\"color: #000000;\">(</span> TOCRCONFIG_DEFAULTJOB, TOCRCONFIG_DLL_ERRORMODE, TOCRERRORMODE_MSGBOX <span style=\"color: #000000;\">)</span>;<br /><br /> memset<span style=\"color: #000000;\">(</span> &JobInfo2, <span style=\"color: #000000;\">0</span>, sizeof<span style=\"color: #000000;\">(</span> TOCRJOBINFO2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> JobInfo2.JobType = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> ; <span style=\"color: #B900B9;\">//TOCRJOBTYPE_TIFFFILE;</span><br /> JobInfo2.InputFile = InputFile;<br /> Status = TOCRInitialise<span style=\"color: #000000;\">(</span> &JobNo <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status == TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> OCRWait<span style=\"color: #000000;\">(</span> JobNo, JobInfo2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> GetResults<span style=\"color: #000000;\">(</span> JobNo, &Results <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /><br /> FormatResults<span style=\"color: #000000;\">(</span> Results, Msg <span style=\"color: #000000;\">)</span>;<br /> hb_xfree<span style=\"color: #000000;\">(</span> Results <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//free( Results );</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><br /> TOCRShutdown<span style=\"color: #000000;\">(</span> JobNo <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> hb_retc<span style=\"color: #000000;\">(</span> Msg <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br />BOOL OCRWait<span style=\"color: #000000;\">(</span> long JobNo, TOCRJOBINFO2 JobInfo2 <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long Status;<br /> long JobStatus;<br /> long ErrorMode;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4096</span><span style=\"color: #000000;\">]</span>;<br /><br /> Status = TOCRDoJob2<span style=\"color: #000000;\">(</span> JobNo, &JobInfo2 <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>Status == TOCR_OK<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> Status = TOCRWaitForJob<span style=\"color: #000000;\">(</span>JobNo, &JobStatus<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>Status == TOCR_OK && JobStatus == TOCRJOBSTATUS_DONE<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">TRUE</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">// If something hass gone wrong display a message</span><br /> <span style=\"color: #B900B9;\">// (Check that the OCR engine hasn't already displayed a message)</span><br /> TOCRGetConfig<span style=\"color: #000000;\">(</span>JobNo, TOCRCONFIG_DLL_ERRORMODE, &ErrorMode<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> ErrorMode == TOCRERRORMODE_NONE <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> TOCRGetJobStatusMsg<span style=\"color: #000000;\">(</span>JobNo, Msg<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #B900B9;\">//MessageBox( NULL, Msg, \"OCRWait\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP );</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// OCRWait()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Get the results from TOCR</span><br />BOOL getresults<span style=\"color: #000000;\">(</span>long JobNo, long mode, void **Results<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long Status;<br /> long ResultsInf;<br /> char Msg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4096</span><span style=\"color: #000000;\">]</span>;<br /><br /><br /> Status = TOCRGetJobResultsEx<span style=\"color: #000000;\">(</span>JobNo, mode, &ResultsInf, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status != TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//sprintf(Msg, \"TOCRGetJobResultsEx failed - %d\\n\", Status);</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, Msg, \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> ResultsInf > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">// Allocate memory for results</span><br /> *Results = <span style=\"color: #000000;\">(</span> char * <span style=\"color: #000000;\">)</span> hb_xgrab<span style=\"color: #000000;\">(</span> ResultsInf + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #B900B9;\">//memset( &Results, 0, sizeof( ResultsInf ) );</span><br /><br /> <span style=\"color: #B900B9;\">// Retrieve the results</span><br /> Status = TOCRGetJobResultsEx<span style=\"color: #000000;\">(</span>JobNo, mode, &ResultsInf, *Results<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Status != TOCR_OK <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//sprintf(Msg, \"TOCRGetJobResultsEx failed - %d\\n\", Status);</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, Msg, \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> hb_xfree<span style=\"color: #000000;\">(</span> Results <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//free(*Results);</span><br /> *Results = <span style=\"color: #000000;\">0</span>;<br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//MessageBox(NULL, \"No results found\\n\", \"getresults\", MB_TASKMODAL | MB_TOPMOST | MB_ICONSTOP);</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">FALSE</span> ;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">TRUE</span>;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// getresults()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Get extended results</span><br />BOOL GetResults<span style=\"color: #000000;\">(</span> long JobNo, TOCRRESULTSEX **Results <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> getresults<span style=\"color: #000000;\">(</span> JobNo, TOCRGETRESULTS_EXTENDED, <span style=\"color: #000000;\">(</span>void **<span style=\"color: #000000;\">)</span>Results <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// GetResults()</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Convert extended results to a string</span><br />BOOL FormatResults<span style=\"color: #000000;\">(</span>TOCRRESULTSEX *Results, char *Msg<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> long ItemNo;<br /> long APos = <span style=\"color: #000000;\">0</span>;<br /> BOOL Status = <span style=\"color: #00C800;\">FALSE</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Results->Hdr.NumItems > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">for</span> <span style=\"color: #000000;\">(</span>ItemNo = <span style=\"color: #000000;\">0</span>; ItemNo < Results->Hdr.NumItems; ItemNo ++ <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> Results->Item<span style=\"color: #000000;\">[</span>ItemNo<span style=\"color: #000000;\">]</span>.OCRCha == <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\r</span>'</span> <span style=\"color: #000000;\">)</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\n</span>'</span>;<br /> <span style=\"color: #00C800;\">else</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">(</span>char<span style=\"color: #000000;\">)</span>Results->Item<span style=\"color: #000000;\">[</span>ItemNo<span style=\"color: #000000;\">]</span>.OCRCha;<br /> APos ++;<br /> <span style=\"color: #000000;\">}</span><br /> Msg<span style=\"color: #000000;\">[</span>APos<span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">0</span>;<br /> Status = <span style=\"color: #00C800;\">TRUE</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">return</span> Status;<br /><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// FormatResults()</span><br /><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /> </div>[/code:303tlh1f]\n\nand my link script is adding Tocrdll.lib\n[code=fw:303tlh1f]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />@ECHO OFF<br />CLS<br /><br /><span style=\"color: #00C800;\">if</span> A%<span style=\"color: #000000;\">1</span> == A GOTO :<span style=\"color: #000000;\">SINTAX</span><br /><span style=\"color: #00C800;\">if</span> NOT EXIST %<span style=\"color: #000000;\">1</span>.prg GOTO :<span style=\"color: #000000;\">NOEXIST</span><br /><br />ECHO Compiling...<br /><br />set FWDIR=.\\..\\<br />set XHDIR=f:\\xharbour_1<span style=\"color: #000000;\">.2</span>.1_6741<br />rem <span style=\"color: #00C800;\">if</span> <span style=\"color: #ff0000;\">\"%2\"</span> == <span style=\"color: #ff0000;\">\"/b\"</span> set GT=gtwin<br />rem <span style=\"color: #00C800;\">if</span> not <span style=\"color: #ff0000;\">\"%2\"</span> == <span style=\"color: #ff0000;\">\"/b\"</span> set GT=gtgui<br />set GT=gtgui<br /><br />set hdir=%XHDIR%<br />set hdirl=%hdir%\\lib<br />set bcdir=f:\\borland\\bcc582<br />set fwh=%FWDIR%<br /><br />%hdir%\\bin\\harbour %<span style=\"color: #000000;\">1</span> /n /i%fwh%\\include;%hdir%\\include /w /p %<span style=\"color: #000000;\">2</span> %<span style=\"color: #000000;\">3</span> > comp.log<br /><span style=\"color: #00C800;\">IF</span> ERRORLEVEL <span style=\"color: #000000;\">1</span> GOTO COMPILEERRORS<br />@type comp.log<br /><br />echo -O2 -e%<span style=\"color: #000000;\">1</span>.exe -I%hdir%\\include -I%bcdir%\\include %<span style=\"color: #000000;\">1</span>.c > b32.bc<br />%bcdir%\\bin\\bcc32 -M -c -v @b32.bc<br />:<span style=\"color: #000000;\">ENDCOMPILE</span><br /><br /><span style=\"color: #00C800;\">IF</span> EXIST %<span style=\"color: #000000;\">1</span>.rc %bcdir%\\bin\\brc32 -r -I%bcdir%\\include %<span style=\"color: #000000;\">1</span><br /><br />echo %bcdir%\\lib\\c0w32.obj + > b32.bc<br />echo %<span style=\"color: #000000;\">1</span>.obj, + >> b32.bc<br />echo %<span style=\"color: #000000;\">1</span>.exe, + >> b32.bc<br />echo %<span style=\"color: #000000;\">1</span>.map, + >> b32.bc<br />echo %fwh%\\lib\\Fivehx.lib %fwh%\\lib\\FiveHC.lib + >> b32.bc<br />echo %hdirl%\\rddads.lib + >> b32.bc<br />echo %hdirl%\\ace32.lib + >> b32.bc<br />echo %hdirl%\\rtl.lib + >> b32.bc<br />echo %hdirl%\\vm.lib + >> b32.bc<br />echo %hdirl%\\%GT%.lib + >> b32.bc<br />echo %hdirl%\\lang.lib + >> b32.bc<br />echo %hdirl%\\macro.lib + >> b32.bc<br />echo %hdirl%\\rdd.lib + >> b32.bc<br />echo %hdirl%\\dbfntx.lib + >> b32.bc<br />echo %hdirl%\\dbfcdx.lib + >> b32.bc<br />echo %hdirl%\\dbffpt.lib + >> b32.bc<br />echo %hdirl%\\hbsix.lib + >> b32.bc<br />echo %hdirl%\\debug.lib + >> b32.bc<br />echo %hdirl%\\common.lib + >> b32.bc<br />echo %hdirl%\\pp.lib + >> b32.bc<br />echo %hdirl%\\pcrepos.lib + >> b32.bc<br />echo %hdirl%\\ct.lib + >> b32.bc<br />echo %hdirl%\\zlib.lib + >> b32.bc<br />echo %hdirl%\\hbzip.lib + >> b32.bc<br />echo %hdirl%\\png.lib + >> b32.bc<br />echo %hdirl%\\tocrdll.lib + >> b32.bc<br /><br />rem Uncomment these two lines <span style=\"color: #0000ff;\">to</span> use Advantage RDD<br />rem echo %hdir%\\lib\\rddads.lib + >> b32.bc<br />rem echo %hdir%\\lib\\Ace32.lib + >> b32.bc<br /><br />echo %bcdir%\\lib\\cw32.lib + >> b32.bc<br />echo %bcdir%\\lib\\import32.lib + >> b32.bc<br />echo %bcdir%\\lib\\uuid.lib + >> b32.bc<br />echo %bcdir%\\lib\\psdk\\odbc32.lib + >> b32.bc<br />echo %bcdir%\\lib\\psdk\\rasapi32.lib + >> b32.bc<br />echo %bcdir%\\lib\\psdk\\nddeapi.lib + >> b32.bc<br />echo %bcdir%\\lib\\psdk\\msimg32.lib + >> b32.bc<br />echo %bcdir%\\lib\\psdk\\psapi.lib + >> b32.bc<br />echo %bcdir%\\lib\\psdk\\gdiplus.lib + >> b32.bc<br />echo %bcdir%\\lib\\psdk\\iphlpapi.lib, >> b32.bc<br /><br /><span style=\"color: #00C800;\">IF</span> EXIST %<span style=\"color: #000000;\">1</span>.res echo %<span style=\"color: #000000;\">1</span>.res >> b32.bc<br /><br />rem uncomment this line <span style=\"color: #0000ff;\">to</span> use the debugger and comment the following one<br /><span style=\"color: #00C800;\">if</span> %GT% == gtwin %bcdir%\\bin\\ilink32 -Gn -Tpe -s -v @b32.bc<br /><span style=\"color: #00C800;\">IF</span> ERRORLEVEL <span style=\"color: #000000;\">1</span> GOTO LINKERROR<br /><span style=\"color: #00C800;\">if</span> %GT% == gtgui %bcdir%\\bin\\ilink32 -Gn -aa -Tpe -s -v @b32.bc<br /><span style=\"color: #00C800;\">IF</span> ERRORLEVEL <span style=\"color: #000000;\">1</span> GOTO LINKERROR<br />ECHO * Application successfully built *<br />%<span style=\"color: #000000;\">1</span><br />GOTO EXIT<br />ECHO<br /><br />rem delete temporary files<br />@del %<span style=\"color: #000000;\">1</span>.c<br /><br />:<span style=\"color: #000000;\">COMPILEERRORS</span><br />@type comp.log<br />ECHO * Compile errors *<br />GOTO EXIT<br /><br />:<span style=\"color: #000000;\">LINKERROR</span><br />ECHO * Linking errors *<br />GOTO EXIT<br /><br />:<span style=\"color: #000000;\">SINTAX</span><br />ECHO SYNTAX: <span style=\"color: #000000;\">Build</span> <span style=\"color: #000000;\">[</span>Program<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">{</span>-- No especifiques la extensi¢n PRG<br />ECHO <span style=\"color: #000000;\">{</span>-- Don<span style=\"color: #ff0000;\">'t specify .PRG extension<br />GOTO EXIT<br /><br />:NOEXIST<br />ECHO The specified PRG %1 does not exist<br /><br />:EXIT<br /></span></div>[/code:303tlh1f]",
"time": "15:44",
"topic": "3rd party c wrapper functions for harbour",
"username": "reinaldocrespo"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I can't see the reason of the problem, sorry. But as a side note, you are using a seven years old release of xHarbour! Time to update, both xHarbour and BCC. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "15:52",
"topic": "3rd party c wrapper functions for harbour",
"username": "Enrico Maria Giordano"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "When I obtain this errors has been usually because the parameter types did not match the definitions of the functions, so, although with the same name, they are not recognized",
"time": "00:33",
"topic": "3rd party c wrapper functions for harbour",
"username": "cnavarro"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you. \n\nI found that this particular lib needs to be imported without the -a option. After doing Implib with out the -a option, it worked great. I shared the wrapper functions on another thread on this forum in case it helps some else wanting to use Transym TOCR dll from API.\n\nReinaldo.",
"time": "00:40",
"topic": "3rd party c wrapper functions for harbour",
"username": "reinaldocrespo"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes, I saw your post after replying in this thread\nRegards",
"time": "03:43",
"topic": "3rd party c wrapper functions for harbour",
"username": "cnavarro"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-03-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"cnavarro\":n0tzw9ul]When I obtain this errors has been usually because the parameter types did not match the definitions of the functions, so, although with the same name, they are not recognized[/quote:n0tzw9ul]\n\nThis is not true. In C language, a function declaration is used exactly so the compiler knows what parameters and types it needs and can emit an error it they not match (Type mismatch in parameter, or something similar). If the declaration is missing, the compiler (as I already said) assumes all the parameters (and the return value) as int type. If the linker complains with \"Unresolved symbol\", it means that the unresolved symbol is not found in the source code or in the linked libraries.\n\nEMG",
"time": "09:07",
"topic": "3rd party c wrapper functions for harbour",
"username": "Enrico Maria Giordano"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2017-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Cristobal\nSaludos, \nLograste ejecutar el programa TOCR?",
"time": "06:13",
"topic": "3rd party c wrapper functions for harbour",
"username": "jnavas"
}
] |
3rd party c wrapper functions for harbour
|
[
{
"date": "2009-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Everybody,\n\nI have see soooooo many posts regarding different 3rd party plugins (codejock, viocoral, Mingw etc...)\n\nI am wondering what everyone uses for modern controls (office 2007 look) for things like folders, buttonbars, etc...\n\nI have been able to get the fwh buttonbar with the 2007 look but I would like to add this look to everything.\n\nDoes fwh have this built in and I am just missing something or do I need to go to a 3rd party lib?\n\nAny help putting me on the right path would be welcome <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "03:17",
"topic": "3rd party controls",
"username": "Jeff Barnes"
}
] |
3rd party controls
|
[
{
"date": "2009-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Jeff,\n\nIt depends on what controls you plan to use in your application. If you explain us what application design you have in mind, then we may recommend you the controls to use.\n\nCodeJock offers nice controls but you always have to carry with those OCXs besides your EXE. Some developers prefer to deliver self contained EXEs and no to depend from external OCXs. Its a matter of choice <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "03:23",
"topic": "3rd party controls",
"username": "Antonio Linares"
}
] |
3rd party controls
|
[
{
"date": "2009-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Antonio,\n\nI am looking at creating an EMR (Electronic Medical Records) program.\n\nI want to provide a nice and clean looking user interface.\n\nThis is going to be a first in many areas for me (SQL, Web, etc...) so any info you could provide would be very helpful.",
"time": "03:34",
"topic": "3rd party controls",
"username": "Jeff Barnes"
}
] |
3rd party controls
|
[
{
"date": "2009-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Jeff,\n\nI use a combination of oPanel and buttonbar’s.\nThis way I try to emulate a Ribbonbar.\n\nI think there will be a FW own Ribbonbar class soon.\nAnd then I can change easily.\n\nTo depend on other OCX components is no problem if you have only a small user base or inhouse users.\nOtherwise it can be.\nFor me there are more cons than the pros of a better outlook.\nBest regards,\nOtto\n[img:1sp2gy0p]http://www.atzwanger-software.com/fw/pantool.jpg[/img:1sp2gy0p]\n\n[code=fw:1sp2gy0p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// Win32 TReBar and TToolBar sample</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.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> oWnd, oReBar, oToolBar1, oToolBar2, oImgList1, oImgList2<br /> <span style=\"color: #00C800;\">local</span> oTabs2,oPanel,oPanel2,oExtBtn<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"FWH - Testing Win32 ReBars & Toolbars\"</span> ;<br /> <span style=\"color: #0000ff;\">MENU</span> BuildMenu<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> TABS oTabs2;<br /> <span style=\"color: #0000ff;\">PROMPTS</span> <span style=\"color: #ff0000;\">\"&Rezeptionslisten\"</span>,<span style=\"color: #ff0000;\">\"&Planlisten\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd;<br /> <span style=\"color: #0000ff;\">BITMAPS</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\p</span>eople.bmp\"</span>, <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\o</span>pen2.bmp\"</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> f_tab<span style=\"color: #000000;\">(</span>oTabs2:<span style=\"color: #000000;\">nOption</span>,oPanel,oPanel2<span style=\"color: #000000;\">)</span><br /><br /> oWnd:<span style=\"color: #000000;\">oTop</span> = oTabs2<br /><br /> oPanel := TPanel<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;\">18</span>, <span style=\"color: #000000;\">0</span>, oWnd:<span style=\"color: #000000;\">nHeight</span>, oWnd:<span style=\"color: #000000;\">nWidth</span>, oWnd <span style=\"color: #000000;\">)</span><br /> oPanel2 := TPanel<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;\">18</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1000</span>, <span style=\"color: #000000;\">2000</span>, oWnd <span style=\"color: #000000;\">)</span><br /><br /><br /> <span style=\"color: #B900B9;\">// First we build the imagelists with all the bitmaps</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> IMAGELIST oImgList1 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">32</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> IMGBITMAP <span style=\"color: #0000ff;\">OF</span> oImgList1 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"new\"</span> <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> IMGBITMAP <span style=\"color: #0000ff;\">OF</span> oImgList1 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"open\"</span> <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> IMGBITMAP <span style=\"color: #0000ff;\">OF</span> oImgList1 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"search\"</span> <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> IMGBITMAP <span style=\"color: #0000ff;\">OF</span> oImgList1 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"print\"</span> <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> IMAGELIST oImgList2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">32</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> IMGBITMAP <span style=\"color: #0000ff;\">OF</span> oImgList2 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"internet\"</span> <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> IMGBITMAP <span style=\"color: #0000ff;\">OF</span> oImgList2 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"keys\"</span> <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> IMGBITMAP <span style=\"color: #0000ff;\">OF</span> oImgList2 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"quit\"</span> <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">// Now we create the rebar</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> REBAR oReBar <span style=\"color: #0000ff;\">OF</span> oPanel<br /><br /> <span style=\"color: #B900B9;\">// Now we create the toolbars and add the buttons</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> TOOLBAR oToolBar1 <span style=\"color: #0000ff;\">OF</span> oReBar <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">58</span> ;<br /> IMAGELIST oImgList1<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> TBBUTTON <span style=\"color: #0000ff;\">OF</span> oToolBar1 ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"New\"</span> <span style=\"color: #000000;\">)</span> ;<br /> TOOLTIP <span style=\"color: #ff0000;\">\"New\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&New project\"</span><br /><span style=\"color: #B900B9;\">/*<br /> DEFINE TBBUTTON OF oToolBar1 ;<br /> ACTION MsgInfo( \"Open\" ) ;<br /> TOOLTIP \"Open\" ;<br /> PROMPT \"Open project\"<br /><br /> DEFINE TBSEPARATOR OF oToolBar1<br /><br /> DEFINE TBMENU OF oToolBar1 ;<br /> ACTION MsgInfo( \"Search\" ) ;<br /> TOOLTIP \"Search\" ;<br /> PROMPT \"Search\" ;<br /> MENU BuildPopup()<br />*/</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> TBBUTTON <span style=\"color: #0000ff;\">OF</span> oToolBar1 ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Print\"</span> <span style=\"color: #000000;\">)</span> ;<br /> TOOLTIP <span style=\"color: #ff0000;\">\"Print a report\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Print a report\"</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> TOOLBAR oToolBar2 <span style=\"color: #0000ff;\">OF</span> oReBar <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">50</span> ;<br /> IMAGELIST oImgList2<br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> TBBUTTON <span style=\"color: #0000ff;\">OF</span> oToolBar2 ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Users\"</span> <span style=\"color: #000000;\">)</span> ;<br /> TOOLTIP <span style=\"color: #ff0000;\">\"Users management\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Users\"</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> TBSEPARATOR <span style=\"color: #0000ff;\">OF</span> oToolBar2<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> TBBUTTON <span style=\"color: #0000ff;\">OF</span> oToolBar2 ;<br /> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> ;<br /> TOOLTIP <span style=\"color: #ff0000;\">\"End Application\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Exit\"</span><br /><br /><br /> @ <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">439</span> <span style=\"color: #0000ff;\">BUTTON</span> oExtBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test\"</span> ;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>,<span style=\"color: #000000;\">24</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> ProcName<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"TREBAR\"</span>, <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Clicked\"</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">OF</span> oToolBar1 ;<br /> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /> <span style=\"color: #B900B9;\">// We set the widths for each toolbar</span><br /> oToolBar1:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #000000;\">200</span><br /> oToolBar2:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #000000;\">250</span><br /><br /> <span style=\"color: #B900B9;\">// Now we insert the toolbars into the rebar</span><br /> oReBar:<span style=\"color: #000000;\">InsertBand</span><span style=\"color: #000000;\">(</span> oToolBar1 <span style=\"color: #000000;\">)</span><br /> oReBar:<span style=\"color: #000000;\">InsertBand</span><span style=\"color: #000000;\">(</span> oToolBar2 <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> STATUSBAR <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Rebars and Toolbars test\"</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span>oPanel2:<span style=\"color: #000000;\">hide</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">ON</span> RESIZE <span style=\"color: #000000;\">(</span>oPanel:<span style=\"color: #000000;\">nHeight</span> := oWnd:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oPanel:<span style=\"color: #000000;\">nwidth</span> := oWnd:<span style=\"color: #000000;\">nwidth</span> <span style=\"color: #000000;\">)</span><br /><br /> oImgList1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oImgList2:<span style=\"color: #000000;\">End</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><br /><br /> <span style=\"color: #00C800;\">function</span> BuildMenu<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oMenu<br /><br /> <span style=\"color: #0000ff;\">MENU</span> oMenu<br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Project\"</span><br /> <span style=\"color: #0000ff;\">MENU</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&New...\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"New\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Open...\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Open\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">SEPARATOR</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Exit...\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"End\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Edit\"</span><br /> <span style=\"color: #0000ff;\">MENU</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Search...\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Search\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Print...\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Print\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Utilities\"</span><br /> <span style=\"color: #0000ff;\">MENU</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Upgrade...\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Upgrade\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Users...\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Users\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /> <span style=\"color: #00C800;\">return</span> oMenu<br /> <span style=\"color: #00C800;\">function</span> BuildPopup<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oMenu<br /><br /> <span style=\"color: #0000ff;\">MENU</span> oMenu POPUP<br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"One\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"One\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Two\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Two\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Three\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Three\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /> <span style=\"color: #00C800;\">return</span> oMenu<br /><br /><br /> <span style=\"color: #00C800;\">function</span> f_tab<span style=\"color: #000000;\">(</span>nOption,oPanel,oPanel2,oPanel3,oPanel4<span style=\"color: #000000;\">)</span><br /> oPanel:<span style=\"color: #000000;\">hide</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oPanel2:<span style=\"color: #000000;\">hide</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><br /> <span style=\"color: #00C800;\">if</span> nOption=<span style=\"color: #000000;\">1</span><br /> oPanel:<span style=\"color: #000000;\">show</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> elseif nOption=<span style=\"color: #000000;\">2</span><br /> oPanel2:<span style=\"color: #000000;\">show</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /> <span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><br /> </div>[/code:1sp2gy0p]",
"time": "08:28",
"topic": "3rd party controls",
"username": "Otto"
}
] |
3rd party controls
|
[
{
"date": "2009-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello!\nMr. Otto, sorry for stupid question, but how did you make your toolbar 2007 looks with gradient colors?\nOr it's only Vista view?",
"time": "10:14",
"topic": "3rd party controls",
"username": "Loach"
}
] |
3rd party controls
|
[
{
"date": "2009-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Sergey,\ncould you please try with ButtonBar instead of TOOLBAR.\nBest regards,\nOtto\n\n\n[code=fw:2xb1bgyf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oPanel <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">2007</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar2 <span style=\"color: #0000ff;\">OF</span> oPanel2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">2007</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar3 <span style=\"color: #0000ff;\">OF</span> oPanel3 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">2007</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar4 <span style=\"color: #0000ff;\">OF</span> oPanel4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">2007</span><br /><br /> <span style=\"color: #B900B9;\">/*<br /> MENU oPopup POPUP<br /> MENUITEM \"One\" ACTION MsgInfo( 1 )<br /> MENUITEM \"Two\" ACTION MsgInfo( 2 )<br /> ENDMENU<br /><br /> DEFINE BUTTON oBtn OF oBar ACTION oBtn:ShowPopup() ;<br /> RESOURCE \"people\" PROMPT \"Clients\" GROUP ;<br /> MENU oPopup TOOLTIP \"Clients\"<br /> */</span><br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\Z</span>iMaed.bmp\"</span> <span style=\"color: #0000ff;\">OF</span> oBar ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"...\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Zimmermädchenliste\"</span>;<br /> TOOLTIP <span style=\"color: #ff0000;\">\"Zimmermädchenliste\"</span><br /><br /><br /> </div>[/code:2xb1bgyf]",
"time": "12:50",
"topic": "3rd party controls",
"username": "Otto"
}
] |
3rd party controls
|
[
{
"date": "2009-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks, Otto!\nButtonBar works fine. I already tried the sample \"multibar.prg\", but it doesn't looks so nice like ToolBar... And on your pictures toolbar seems like with transparent colors. That is why I asked this question...",
"time": "14:30",
"topic": "3rd party controls",
"username": "Loach"
}
] |
3rd party controls
|
[
{
"date": "2009-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Sergey,\n\nWith toolbar if I change from VISTA to Classic view I also lose the background.\n\nBest regards,\nOtto",
"time": "16:42",
"topic": "3rd party controls",
"username": "Otto"
}
] |
3rd party controls
|
[
{
"date": "2008-01-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Today we have reached the amount of 45000 posts on these forums.\n\nThese forums are becoming a very powerfull knowledge base for all the FiveWin and Harbour users.\n\nCongratulations to all! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "20:24",
"topic": "45000+ posts!",
"username": "Antonio Linares"
}
] |
45000+ posts!
|
[
{
"date": "2008-01-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nCongratulations !!!\n\nWork hard for Fivewin Community <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nRegards,\n\nFelix",
"time": "21:28",
"topic": "45000+ posts!",
"username": "Baxajaun"
}
] |
45000+ posts!
|
[
{
"date": "2008-01-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Wow!!\n\nThis is a very Fivewin Power!\n\nCongratulation(Parabens!)",
"time": "22:31",
"topic": "45000+ posts!",
"username": "Rochinha"
}
] |
45000+ posts!
|
[
{
"date": "2008-01-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Up to 50000 now.",
"time": "15:54",
"topic": "45000+ posts!",
"username": "Willy"
}
] |
45000+ posts!
|
[
{
"date": "2011-04-03",
"forum": "Off Topic / Otros temas",
"text": "[url:2ck7llmh]http://www.tehkseven.net/news/475-free-vector-icons[/url:2ck7llmh]\n\n[img:2ck7llmh]http://www.tehkseven.net/news/wp-content/uploads/2011/03/screenie.png[/img:2ck7llmh]",
"time": "11:03",
"topic": "475 Free & Awesome High Quality Icons For Designers",
"username": "Antonio Linares"
}
] |
475 Free & Awesome High Quality Icons For Designers
|
[
{
"date": "2010-05-19",
"forum": "Off Topic / Otros temas",
"text": "This is not about the iPhone. This is about being a real professional freelance developer:\n\n[url:2esf9mal]http://sealedabstract.com/rants/5-lessons-learned-while-being-a-freelance-iphone-developer/[/url:2esf9mal]",
"time": "08:41",
"topic": "5 Lessons Learned While Being a Freelance ... Developer",
"username": "Antonio Linares"
}
] |
5 Lessons Learned While Being a Freelance ... Developer
|
[
{
"date": "2019-09-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\nhere is a tested installation guide for mod harbour on WINDOWS 64 bit. \nYou have your server running in 5 little steps. No setup work needed.\nBest regards\nOtto\n\n[url:1klzyhte]https://winhotel.space/modharbourdoc/apache%20installlation.htm[/url:1klzyhte]",
"time": "23:57",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-01",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hello,\nhere is a tested installation guide for mod harbour on WINDOWS 64 bit. \nYou have your server running in 5 little steps. No setup work needed.\nBest regards\nOtto\n\n[url:3lqmsbem]https://winhotel.space/modharbourdoc/apache%20installlation.htm[/url:3lqmsbem]",
"time": "23:58",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-01",
"forum": "mod_harbour",
"text": "Hello,\nhere is a tested installation guide for mod harbour on WINDOWS 64 bit. \nYou have your server running in 5 little steps. No setup work needed.\nBest regards\nOtto\n\n[url:2g9lx8w1]https://winhotel.space/modharbourdoc/apache%20installlation.htm[/url:2g9lx8w1]",
"time": "23:58",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\nnow I tested also WINDOWS 10 home 64 bit.\nWith in 10 min. all is running.\nBest regards\nOtto",
"time": "00:47",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hello,\nnow I tested also WINDOWS 10 home 64 bit.\nWith in 10 min. all is running.\nBest regards\nOtto",
"time": "00:52",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-02",
"forum": "mod_harbour",
"text": "[url:2hwlhdkt]https://github.com/FiveTechSoft/mod_harbour/wiki[/url:2hwlhdkt]",
"time": "07:52",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Antonio Linares"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[url:2etgqa0n]https://github.com/FiveTechSoft/mod_harbour/wiki[/url:2etgqa0n]",
"time": "07:53",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Antonio Linares"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[url:3ekezrko]https://github.com/FiveTechSoft/mod_harbour/wiki[/url:3ekezrko]",
"time": "07:57",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Antonio Linares"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Dear Antonio,\nthe WIKI instruction starts[b:2q83gez1] from an installed APACHE[/b:2q83gez1].\n\n[b:2q83gez1]This instruction I posted shows how you start from zero and with no user interaction beside starting the exe files. And on Windows 64 which I tested all is working in 5-10 min. depending on you download speed.[/b:2q83gez1]\n\nI wanted to show that in 5 - 10 min. you have your mod harbour running.\nMost of us do not have a APACHE server ready.\nBest regards\nOtto",
"time": "09:54",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Antonio,\nthe WIKI instruction starts[b:36lcwl8h] from an installed APACHE[/b:36lcwl8h].\nMost of us do not have a APACHE server ready. Before I posted this manual I tested again on my notebook with WINDOWS 10 home.\n\n[b:36lcwl8h]This instruction I posted shows how you start from zero and with no usere interaction beside starting the exe files. And on Windows 64 which I tested all is working in 5-10 min. depending on you download speed.[/b:36lcwl8h]\n\nI wanted to show that in 5 - 10 min. you have your mod harbour running.\n\nI think I'll do a video to convince those still hesitant to test mod harbor how easy everything is.\n\nBest regards\nOtto",
"time": "09:55",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Otto , \n\n That would be great for beginners...! Thanks in advance...!\n\nThanks\nShridhar",
"time": "11:13",
"topic": "5 steps and APACHE mod harbour is running",
"username": "shri_fwh"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"shri_fwh\":23loqqp4]Dear Otto , \n\n That would be great for beginners...! Thanks in advance...!\n\nThanks\nShridhar[/quote:23loqqp4]\n\nI agree <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "11:20",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Marc Venken"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Mark,\non which PC/OS do you want to install mod harbour.\nHave you tried the instaruction.\n\nBest regards\nOtto",
"time": "17:15",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto,\n\nI'm responsible for a soccer-club. I make the site (<!-- m --><a class=\"postlink\" href=\"http://www.kaboutersopglabbeek.be\">http://www.kaboutersopglabbeek.be</a><!-- m -->)\n\nbut behinde it, i made a FW application for the coaches to manage there teams (personel data,team selections, memberdata, ....)\n\n[img:3clc8lhw]https://www.maveco.be/fivewin/online.jpg[/img:3clc8lhw]\n\nBut for this to work, they need the Fw app. on there pc in order to connect to the online database. (mariadb way)\nAlso, the people with a Mac-pc can't run the fw app.\n\nTherefore i'm folowing the Mod-harbour evolution closely. I've tested some of the samples online (very promising for sure)\n\nuntil 4/5 okt. i have less time, but then I will try to get 1 part working with Mod. \n\nI'm especialy interested in knowing how it will react on a smartphone !! I have no option that FW will work on a smartphone, but normaly Mod. will work on every device, so that will give options for sure.\n\nAs of installation :\n\nFor the site, I always upload changed files directly to the online server. Test what I have changed and if it goes bad, i copy the previously file back.\nnot the right way i know, but it is not a commercial site, so nobody will notice it )))\n\nInstalling Apache and more database stuff could solve this, but before Mod H. all this is difficult for non professional users (only hobby from my side)\nNow, with Mod H. and the installation process you mentioned (Apache is not needed) all is strongly simplyfied.\n\nI have options on\n\nWin 7 machines\nWin 10 machines (and will probably go for the Win 10) because users will update to Win 10)\n\nRegards,\nMarc",
"time": "13:05",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Marc Venken"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Marc.\nTake a look at Bootstrap. With this HTML extension you can make every page auto adapting to\nsmall screens to biggers without any problem. And in a lot of mod_harbour examples is used\nand you can learn it in few time. And if there is something that you can't do with al this is\npossible to integrate Javascript. I've already made two applications and they are running very well,\nalso connected to Advantage Database Server.\nMassimo",
"time": "18:02",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Massimo Linossi"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-25",
"forum": "mod_harbour",
"text": "Hello friends,\nhere is the link to the video showing the installation of mod harbour.\n\n[url:30bwbgtz]https://www.youtube.com/watch?v=lsmAGsbIHdQ[/url:30bwbgtz]\n\nDescription\n<!-- m --><a class=\"postlink\" href=\"https://winhotel.space/modharbourdoc/apache%20installlation.htm\">https://winhotel.space/modharbourdoc/ap ... lation.htm</a><!-- m -->\n\nBest regards\nOtto",
"time": "23:06",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello friends,\nhere is the link to the video showing the installation of mod harbour.\n\n[url:etf41nhx]https://www.youtube.com/watch?v=lsmAGsbIHdQ[/url:etf41nhx]\n\nDescription\n<!-- m --><a class=\"postlink\" href=\"https://winhotel.space/modharbourdoc/apache%20installlation.htm\">https://winhotel.space/modharbourdoc/ap ... lation.htm</a><!-- m -->\n\nBest regards\nOtto",
"time": "23:08",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hello friends,\nhere is the link to the video showing the installation of mod harbour.\n\n[url:1tgvgq21]https://www.youtube.com/watch?v=lsmAGsbIHdQ[/url:1tgvgq21]\n\nDescription\n<!-- m --><a class=\"postlink\" href=\"https://winhotel.space/modharbourdoc/apache%20installlation.htm\">https://winhotel.space/modharbourdoc/ap ... lation.htm</a><!-- m -->\n\nBest regards\nOtto",
"time": "23:09",
"topic": "5 steps and APACHE mod harbour is running",
"username": "Otto"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2019-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Antonio, Otto, \n\n As I was checking the CAUCHO Resin web server this also support httpd protocol. have found similar info of Apache Mod. \n\n<!-- m --><a class=\"postlink\" href=\"https://www.caucho.com/resin-3.1/doc/install-apache.xtp\">https://www.caucho.com/resin-3.1/doc/install-apache.xtp</a><!-- m -->\n\n\n Just for knowledge will the mod_harbour also work with [b:121fpr0c]CAUCHO Resin [/b:121fpr0c] web server ?\n\nThanks\nShridhar",
"time": "09:07",
"topic": "5 steps and APACHE mod harbour is running",
"username": "shri_fwh"
}
] |
5 steps and APACHE mod harbour is running
|
[
{
"date": "2008-08-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "We already have 60.000 posts in the forums! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nThanks to this great FiveWin users community and friends for making this a great success <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "09:45",
"topic": "60000 posts !!!",
"username": "Antonio Linares"
}
] |
60000 posts !!!
|
[
{
"date": "2008-08-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":iy2o64ld]We already have 60.000 posts in the forums! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nThanks to this great FiveWin users community and friends for making this a great success <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:iy2o64ld]\r\n\r\nFivewin is a success. Congratulations for your excellent product.\r\n\r\nToninho.",
"time": "17:59",
"topic": "60000 posts !!!",
"username": "toninhofwi"
}
] |
60000 posts !!!
|
[
{
"date": "2008-08-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Antonio ! Thank's\r\n\r\nFivewin is as mother language, I can talk everything to my computer \r\n <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \r\n\r\nRegards\r\nFafi",
"time": "05:55",
"topic": "60000 posts !!!",
"username": "fafi"
}
] |
60000 posts !!!
|
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "ya tenemos 60.000 posts en estos foros! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> \r\n\r\nGracias a esta gran comunidad de usuarios de FiveWin y de amigos por hacer esto posible <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nBueno, este ya es el post 60.001 <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->",
"time": "09:49",
"topic": "60000 posts!!!",
"username": "Antonio Linares"
}
] |
60000 posts!!!
|
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "<!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "10:55",
"topic": "60000 posts!!!",
"username": "triumvirato"
}
] |
60000 posts!!!
|
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Bueno,\r\n\r\nParece que el foro se está convirtiendo en una buena base de datos para nuestras dudas.\r\n\r\nBien por el foro y todos los que lo conforman!!!",
"time": "15:11",
"topic": "60000 posts!!!",
"username": "jfafive"
}
] |
60000 posts!!!
|
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Felicitaciones a todos por hacer de este foro\r\nnuestro lugar de reunion.\r\n\r\nSaludos\r\n\r\nRuben Fernandez.",
"time": "17:07",
"topic": "60000 posts!!!",
"username": "Ruben D. Fernandez"
}
] |
60000 posts!!!
|
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Good Work!! Congratulations to all by the concerted effort!!!\r\n\r\nBuen trabajo!! Felicitaciones a todos por el gran esfuerzo!!\r\n\r\nSaludos a todos, desde Argentina Esteban.",
"time": "17:40",
"topic": "60000 posts!!!",
"username": "jrestojeda"
}
] |
60000 posts!!!
|
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias a este Foro, he creado mi propio DICCIONARIO de temas, gracias a todos por colaborar de forma indirecta... cuando un tema lo veo interesante para mi o de gran utilidad, lo descargo en mi pc en una carpeta y luego lo reviso mas detallamente OFF LINE, les digo que me ha ayudado no saben cuanto...Gracias..!",
"time": "20:09",
"topic": "60000 posts!!!",
"username": "joseluisysturiz"
}
] |
60000 posts!!!
|
[
{
"date": "2022-11-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi,\n\nneed some help for 64 Bit\n\n[quote:3t7l7xtw]HB_FUNC.PRG(322): warning C4244: \"Argument\": Konvertierung von \"LRESULT\" in \"int\", möglicher Datenverlust\nHB_FUNC.PRG(336): warning C4244: \"Argument\": Konvertierung von \"LRESULT\" in \"int\", möglicher Datenverlust[/quote:3t7l7xtw]\n\n[code=fw:3t7l7xtw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">314</span> <span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> LV_GETSELECTEDCOUNT <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">315</span> <span style=\"color: #000000;\">{</span><br /><span style=\"color: #000000;\">316</span> #ifndef _WIN64<br /><span style=\"color: #000000;\">317</span> HWND hWnd = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">318</span> #else<br /><span style=\"color: #000000;\">319</span> HWND hWnd = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parnll<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">320</span> #endif<br /><span style=\"color: #000000;\">321</span> #ifdef AVOID_COMPILER_WARNING<br /><span style=\"color: #000000;\">322</span> hb_retni<span style=\"color: #000000;\">(</span> SendMessage<span style=\"color: #000000;\">(</span> hWnd, LVM_GETSELECTEDCOUNT, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #000000;\">323</span> #else<br /><span style=\"color: #000000;\">324</span> hb_retni<span style=\"color: #000000;\">(</span> ListView_GetSelectedCount<span style=\"color: #000000;\">(</span>hWnd<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">325</span> #endif</div>[/code:3t7l7xtw]\n\n[code=fw:3t7l7xtw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">335</span> #ifdef AVOID_COMPILER_WARNING<br /><span style=\"color: #000000;\">336</span> hb_retni<span style=\"color: #000000;\">(</span> SendMessage<span style=\"color: #000000;\">(</span> hWnd, LVM_GETSELECTIONMARK, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #000000;\">337</span> #else<br /><span style=\"color: #000000;\">338</span> hb_retni<span style=\"color: #000000;\">(</span> ListView_GetSelectionMark<span style=\"color: #000000;\">(</span>hWnd<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">339</span> #endif<br /> </div>[/code:3t7l7xtw]\nwhat do i have to enhance for 64 Bit <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "06:02",
"topic": "64 Bit Warning MSVC",
"username": "Jimmy"
}
] |
64 Bit Warning MSVC
|
[
{
"date": "2022-11-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Jimmy,\n\nPlease use hb_retnl() (and hb_retnll()) instead of hb_retni()",
"time": "07:52",
"topic": "64 Bit Warning MSVC",
"username": "Antonio Linares"
}
] |
64 Bit Warning MSVC
|
[
{
"date": "2022-11-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Jimmy,\n\nYou can safely use hb_retnll() in 32 bits",
"time": "11:00",
"topic": "64 Bit Warning MSVC",
"username": "Antonio Linares"
}
] |
64 Bit Warning MSVC
|
[
{
"date": "2022-11-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi Antonio,\n[quote=\"Antonio Linares\":k3kyj6nj]Please use hb_retnl() (and hb_retnll()) instead of hb_retni()[/quote:k3kyj6nj]\nYES, that work without Warning\n\n---\n\nQuestion :\nnow i have hb_retnll() for 64 Bit and 32 Bit and it also seems to work under 32 Bit ... do i need to change it <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nnormal ListView_GetSelectedCount() or ListView_GetSelectionMark() will not have a \"big\" Number ...",
"time": "10:59",
"topic": "64 Bit Warning MSVC",
"username": "Jimmy"
}
] |
64 Bit Warning MSVC
|
[
{
"date": "2021-10-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "What are the advantages/disadvantages of moving an application from 32 bit harbour to 64 bit and how do you do it?",
"time": "17:14",
"topic": "64 bit",
"username": "dtussman"
}
] |
64 bit
|
[
{
"date": "2021-10-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You will not notice a speed difference, but the way 64 bits uses the memory is much better than in 32 bits. \nSo if your app uses a lot of memory, you should consider moving to 64 bits.\n\nc:\\FWH\\samples\\buildh64.bat tutor01",
"time": "19:03",
"topic": "64 bit",
"username": "Antonio Linares"
}
] |
64 bit
|
[
{
"date": "2021-10-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Según he leído el próximo Windows va a salir solo en versión 64 bits.",
"time": "08:28",
"topic": "64 bit",
"username": "Verhoven"
}
] |
64 bit
|
[
{
"date": "2021-10-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yo ya he instalado Windows 11 y funcionan los 32 bits también:\n\nUsé este fichero .bat para construir la ISO de Windows 11:\n[url:1ufi1hwe]https://github.com/AveYo/MediaCreationTool.bat/blob/main/MediaCreationTool.bat[/url:1ufi1hwe]\n\nY lo instalé desde un Windows 10 education con su licencia activada, así Windows 11 usa la misma licencia y queda activado <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nOjo, usarlo en un ordenador sin TPM es un riesgo que uno mismo asume. Aqui parece estar funcionando bien en un iMac 27 instalado nativamente (es decir sin usar Parallels, VirtualBox, etc) <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEl WSL2 es una maravilla. Ya ejecuta aplicaciones GUI de Linux directamente desde Windows \ny el WSA para ejecutar aplicaciones Android viene de camino !!! Ambos usan el HyperV de Windows por lo que funcionan muy rápido!\n\nHarbour y FWH funcionan correctamente y además Windows 11 ha respetado la instalación de Visual Studio Community que funciona perfectamente también <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "08:43",
"topic": "64 bit",
"username": "Antonio Linares"
}
] |
64 bit
|
[
{
"date": "2021-10-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ok so I deduce from the above that my 32 bit application is not likely to be obsolete anytime soon",
"time": "18:25",
"topic": "64 bit",
"username": "dtussman"
}
] |
64 bit
|
[
{
"date": "2012-08-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI am trying to build a 64 bit dll using FWH64 and I noticed I do not have a buildhd.bat.\n\nIs there one available for 64 bits?\n\nAlso I am interested in any cross compatibility issues that might exist. For example can my 32 bit exe call a 64 bit dll\nand just the opposite can a 64 bit exe call a 32 bit dll? \n\nAny help is most appreciated.\n\nThanks",
"time": "15:23",
"topic": "64 bit DLL",
"username": "Dave Zowasky"
}
] |
64 bit DLL
|
[
{
"date": "2009-11-03",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "I am trying to get my code running on 64 bit Ubuntu 9.10. That means I have tbuild harbour and / or xHarbour as 64 bit. I can build Harbour successfully (I think) but Harbour doesn't seem to have the Inet classes I need for my applications to work\n\nI have never been able to build xHarbour from source. After I installed bison and subsequently unilxODBC-dev the process went much further but now I get error messages about missing gpm functions. I installed gpm but that hasn't helped. Perhaps I need to add a library reference somewhere, but where and how I don't know.\n\nIt would be great to know if\n\n1. I can use the Inet functionality from Harbour and / or\n\n2. How to build (a 64 bit version) of xHarbour\n\nThanks\nDoug",
"time": "10:18",
"topic": "64 bit Linux",
"username": "xProgrammer"
}
] |
64 bit Linux
|
[
{
"date": "2009-11-04",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Resolved\n\nI had run sudo apt-get install libgpm-dev but libgpm.so was only in /usr/lib. With a libgpm.so in /usr/lib64 all went well. (Just do not know how it got there when it didn't show up before).\n\nIn summary, as well as downloading the from the xHarbour site I had to install the following:\n\nbison\nunixODBC-dev\nlibgpm-dev",
"time": "03:47",
"topic": "64 bit Linux",
"username": "xProgrammer"
}
] |
64 bit Linux
|
[
{
"date": "2009-11-06",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Doug,\n\nThanks for the info <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "01:51",
"topic": "64 bit Linux",
"username": "Antonio Linares"
}
] |
64 bit Linux
|
[
{
"date": "2013-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello, \n\nI have a new laptop with Windows 7 64 bit; my Borland Workshop no longer works; can someone recommend a resource editor that works with Windows 7 64 bit?\n\nThank you,",
"time": "17:29",
"topic": "64 bit Resource Editor",
"username": "cdmmaui"
}
] |
64 bit Resource Editor
|
[
{
"date": "2013-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You can try\n\n<!-- m --><a class=\"postlink\" href=\"http://www.windows7download.com/win7-resedit-64bit/hqhrqoud.html\">http://www.windows7download.com/win7-re ... rqoud.html</a><!-- m -->\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "17:51",
"topic": "64 bit Resource Editor",
"username": "ukoenig"
}
] |
64 bit Resource Editor
|
[
{
"date": "2013-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello, PellesC will help you.\n\nRegards",
"time": "17:57",
"topic": "64 bit Resource Editor",
"username": "RDFernandez"
}
] |
64 bit Resource Editor
|
[
{
"date": "2013-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Darrell\n\nThe link Uwe shared with you will download ResEdit which is a good editor .. you will have to add these header files to the beginning of your existing legacy BRW .rc files .. \n\nRick Lipkin\n\n[code=fw:1zvk1cqn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <commctrl.h><br /><span style=\"color: #00D7D7;\">#include</span> <richedit.h><br /> </div>[/code:1zvk1cqn]",
"time": "21:04",
"topic": "64 bit Resource Editor",
"username": "Rick Lipkin"
}
] |
64 bit Resource Editor
|
[
{
"date": "2013-05-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ResEdit ([url:1jbsabxd]http://www.resedit.net[/url:1jbsabxd]) would be a wonderful resource editor but it lacks of some basic features (ie. dialog copy/paste) and it's not updated since April 2012... <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "09:30",
"topic": "64 bit Resource Editor",
"username": "Enrico Maria Giordano"
}
] |
64 bit Resource Editor
|
[
{
"date": "2013-05-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Darrell \n\nI use Pelles \n\n<!-- m --><a class=\"postlink\" href=\"http://forum.pellesc.de/index.php?topic=3705.0\">http://forum.pellesc.de/index.php?topic=3705.0</a><!-- m -->\n\nRegards \n\nMaurizio \n<!-- m --><a class=\"postlink\" href=\"http://www.nipeservice.com\">http://www.nipeservice.com</a><!-- m -->",
"time": "09:52",
"topic": "64 bit Resource Editor",
"username": "Maurizio"
}
] |
64 bit Resource Editor
|
[
{
"date": "2013-05-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=17&t=12773\">viewtopic.php?f=17&t=12773</a><!-- l -->",
"time": "10:31",
"topic": "64 bit Resource Editor",
"username": "Antonio Linares"
}
] |
64 bit Resource Editor
|
[
{
"date": "2012-05-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "What alternatives do we have for xWDBU except xaDbu?\n\n[quote:phyj5cdf]xaDbu from OZ Software is a powerful DBF files editor, that inherits all the advantages of its predecessor Wdbu, but now built with Xailer & Harbour[/quote:phyj5cdf]\n\nBest regards,\nOtto",
"time": "09:08",
"topic": "64 bit WDBU",
"username": "Otto"
}
] |
64 bit WDBU
|
[
{
"date": "2012-05-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto,\n\nThere is a 64 bits version of WDBU, developed with Harbour and FWH 64 <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "09:36",
"topic": "64 bit WDBU",
"username": "Antonio Linares"
}
] |
64 bit WDBU
|
[
{
"date": "2012-05-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Abntonio,\nthank you. Do you mean xBrwDbu.prg in the fivewin/samples folder?\nBest regards,\nOtto",
"time": "09:55",
"topic": "64 bit WDBU",
"username": "Otto"
}
] |
64 bit WDBU
|
[
{
"date": "2012-05-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "No, I mean the first developed WDBU in 16 bits and ported to 32 and 64 bits, using Harbour and FWH 32/64.\n\nDon't know who ported it and neither where to get it, but it exists <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "10:17",
"topic": "64 bit WDBU",
"username": "Antonio Linares"
}
] |
64 bit WDBU
|
[
{
"date": "2012-05-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please, anyone could provide the link where latest sources are available and compiled versions?.\n\nIs not ilegal to provide links.\n\nThank you very much.",
"time": "10:34",
"topic": "64 bit WDBU",
"username": "lucasdebeltran"
}
] |
64 bit WDBU
|
[
{
"date": "2012-05-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Friends:\n\nAnother option is Advantage Data Architect, I use it with Windows 7 premium and\nno problems at all.\n\nregards",
"time": "19:09",
"topic": "64 bit WDBU",
"username": "Armando"
}
] |
64 bit WDBU
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.