topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
3D modeling | Hello Everyone,
Does 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.
Thank you in advance for your assistance.
Sincerely, |
3D modelling online | [url:223tij8z]http://www.3dtin.com/[/url:223tij8z] |
3rd components integrations with fwh UI calendar | hi, i see some tools , like codejoke xtreme:
<!-- m --><a class="postlink" href="http://www.codejock.com">http://www.codejock.com</a><!-- m -->, someone has tested this?? |
3rd components integrations with fwh UI calendar | Hello Fernando,
can you drag & drop appointments with the mouse on your new scheduler?
Regards,
Otto |
3rd components integrations with fwh UI calendar | Someone started testing the controls with codejock but didn't get very far and stopped reporting.
I 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 ...
Tim |
3rd party c wrapper functions for harbour | Hello forum;
I'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?
Here is my self-contained reduced sample code:
[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]
If 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.
Thank you,
Reinaldo. |
3rd party c wrapper functions for harbour | Reinaldo,
The used DLL functions must be prototyped, in example:
// Function TOCRInitialise (ByRef JobNo As Integer) As Integer
int TOCRInitialise( int * JobNo );
Usually the DLL developers should provide a header file with the C language prototypes.
If not, then you can build it yourself.
We need to include those prototypes in your code so the C compiler can properly use them. |
3rd party c wrapper functions for harbour | The easiest way to trace it is to place several calls to:
MessageBox( 0, "here", "ok 1", 0 );
so you can find which function GPFs |
3rd party c wrapper functions for harbour | You must include:
#include <windows.h>
in order to use MessageBox() |
3rd party c wrapper functions for harbour | Reinaldo,
Have you tried the example they let you download?
In this example all the header files with the definitions of the functions |
3rd party c wrapper functions for harbour | Everyone;
I 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().
Here is my new source:
[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]
Notice 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.
I hope I can recruit someone with harbour vm experience to help make Transym OCR work with Harbour.
Thank you,
Reinaldo. |
3rd party c wrapper functions for harbour | [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]
This 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.
EMG |
3rd party c wrapper functions for harbour | 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]
Perhaps someone can help?
Reinaldo. |
3rd party c wrapper functions for harbour | This modified version is compiling clean:
transym.prg
[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]
c:\fwh\samples\build.bat transym
[img:1s1a3go7]https://bitbucket.org/fivetech/screenshots/downloads/transym.JPG[/img:1s1a3go7]
Now we need to create the import library... |
3rd party c wrapper functions for harbour | 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.
You will probably have to comment the line that includes TOCRdll.h and instead create prototypes using harbour vm declarations. For example, this
[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]
Needs to change to this:
[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]
All 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.
Reinaldo. |
3rd party c wrapper functions for harbour | Reinaldo,
> You will probably have to comment the line that includes TOCRdll.h and instead create prototypes using harbour vm declarations
This is not needed at all. The transym.prg that I have posted compiles fine using the TOCRdll.h header file
I 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:
[url:1yi98tfm]https://bitbucket.org/fivetech/fivewin-contributions/downloads/peinfo.exe[/url:1yi98tfm]
TOCRdll.def
[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]
To create the import library from TOCRdll.def we do:
c:\bcc7\bin>implib TOCRdll.lib TOCRdll.def
Now the EXE is properly built:
[img:1yi98tfm]https://bitbucket.org/fivetech/screenshots/downloads/transym_2.JPG[/img:1yi98tfm] |
3rd party c wrapper functions for harbour | There is something wrong with the DLL. If I try this:
[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]
I get a zero, which means an error loading the DLL. |
3rd party c wrapper functions for harbour | Reinaldo,
as I already wrote to you privately, the program compiles and links fine but when I run the EXE I get the error 0xc000007b.
Just 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
[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]
instead of
[code=fw:1xhel6bf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <nonstandard.h></div>[/code:1xhel6bf]
EMG |
3rd party c wrapper functions for harbour | [quote="Antonio Linares":21rab26j]There is something wrong with the DLL. If I try this:
[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]
I get a zero, which means an error loading the DLL.[/quote:21rab26j]
I suspected this...
EMG |
3rd party c wrapper functions for harbour | To check whats going on with the DLL I have created this simple test:
[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]
And I get error number 193:
[quote:1hbu7jyc]ERROR_BAD_EXE_FORMAT
193 (0xC1)
%1 is not a valid Win32 application.[/quote:1hbu7jyc]
[url:1hbu7jyc]https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx[/url:1hbu7jyc] |
3rd party c wrapper functions for harbour | The TOCRdll.dll that you posted here:
[url:2bt0umv5]http://lac.structuredsystems.com/temp/[/url:2bt0umv5]
is loading fine |
3rd party c wrapper functions for harbour | Now I get this error:
[img:1786nqmd]https://bitbucket.org/fivetech/screenshots/downloads/transym_3.JPG[/img:1786nqmd] |
3rd party c wrapper functions for harbour | I guess it is related with the license:
Looking inside the TOCRdll.dll I find this:
[quote:z6a39fsl]Invalid licence number Software\Transym\TOCR\1.1\Paths Failed to find Paths [/quote:z6a39fsl] |
3rd party c wrapper functions for harbour | 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.
I will email you and anyone interested on trying the key code to install the license. That should fix that problem.
Reinaldo. |
3rd party c wrapper functions for harbour | Ok, now I'm also getting "Failed to find Paths".
Some other notes:
1. Change this line from
[code=fw:2kknd3d0]<div class="fw" id="{CB}" style="font-family: monospace;">JobInfo2.InputFile = InputFile;</div>[/code:2kknd3d0]
to
[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]
to shut up the warning. But first check if it's correct to remove the constness from InputFile.
2. Change this line from
[code=fw:2kknd3d0]<div class="fw" id="{CB}" style="font-family: monospace;">TOCRRESULTS *Results = <span style="color: #000000;">0</span>;</div>[/code:2kknd3d0]
to
[code=fw:2kknd3d0]<div class="fw" id="{CB}" style="font-family: monospace;">TOCRRESULTSEX *Results = <span style="color: #000000;">0</span>;</div>[/code:2kknd3d0]
as GetResults() function expects a TOCRRESULTSEX type as the second parameter.
EMG |
3rd party c wrapper functions for harbour | 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.
[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]
This is my Transym.prg
[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]
and my link script is adding Tocrdll.lib
[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] |
3rd party c wrapper functions for harbour | 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:-) -->
EMG |
3rd party c wrapper functions for harbour | 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 |
3rd party c wrapper functions for harbour | Thank you.
I 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.
Reinaldo. |
3rd party c wrapper functions for harbour | Yes, I saw your post after replying in this thread
Regards |
3rd party c wrapper functions for harbour | [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]
This 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.
EMG |
3rd party c wrapper functions for harbour | Cristobal
Saludos,
Lograste ejecutar el programa TOCR? |
3rd party controls | Hi Everybody,
I have see soooooo many posts regarding different 3rd party plugins (codejock, viocoral, Mingw etc...)
I am wondering what everyone uses for modern controls (office 2007 look) for things like folders, buttonbars, etc...
I have been able to get the fwh buttonbar with the 2007 look but I would like to add this look to everything.
Does fwh have this built in and I am just missing something or do I need to go to a 3rd party lib?
Any help putting me on the right path would be welcome <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
3rd party controls | Jeff,
It 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.
CodeJock 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:-) --> |
3rd party controls | Hi Antonio,
I am looking at creating an EMR (Electronic Medical Records) program.
I want to provide a nice and clean looking user interface.
This is going to be a first in many areas for me (SQL, Web, etc...) so any info you could provide would be very helpful. |
3rd party controls | Hello Jeff,
I use a combination of oPanel and buttonbar’s.
This way I try to emulate a Ribbonbar.
I think there will be a FW own Ribbonbar class soon.
And then I can change easily.
To depend on other OCX components is no problem if you have only a small user base or inhouse users.
Otherwise it can be.
For me there are more cons than the pros of a better outlook.
Best regards,
Otto
[img:1sp2gy0p]http://www.atzwanger-software.com/fw/pantool.jpg[/img:1sp2gy0p]
[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] |
3rd party controls | Hello!
Mr. Otto, sorry for stupid question, but how did you make your toolbar 2007 looks with gradient colors?
Or it's only Vista view? |
3rd party controls | Hello Sergey,
could you please try with ButtonBar instead of TOOLBAR.
Best regards,
Otto
[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] |
3rd party controls | Thanks, Otto!
ButtonBar 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... |
3rd party controls | Hello Sergey,
With toolbar if I change from VISTA to Classic view I also lose the background.
Best regards,
Otto |
45000+ posts! | Today we have reached the amount of 45000 posts on these forums.
These forums are becoming a very powerfull knowledge base for all the FiveWin and Harbour users.
Congratulations to all! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
45000+ posts! | Antonio,
Congratulations !!!
Work hard for Fivewin Community <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Regards,
Felix |
45000+ posts! | Wow!!
This is a very Fivewin Power!
Congratulation(Parabens!) |
45000+ posts! | Up to 50000 now. |
475 Free & Awesome High Quality Icons For Designers | [url:2ck7llmh]http://www.tehkseven.net/news/475-free-vector-icons[/url:2ck7llmh]
[img:2ck7llmh]http://www.tehkseven.net/news/wp-content/uploads/2011/03/screenie.png[/img:2ck7llmh] |
5 Lessons Learned While Being a Freelance ... Developer | This is not about the iPhone. This is about being a real professional freelance developer:
[url:2esf9mal]http://sealedabstract.com/rants/5-lessons-learned-while-being-a-freelance-iphone-developer/[/url:2esf9mal] |
5 steps and APACHE mod harbour is running | Hello,
here is a tested installation guide for mod harbour on WINDOWS 64 bit.
You have your server running in 5 little steps. No setup work needed.
Best regards
Otto
[url:1klzyhte]https://winhotel.space/modharbourdoc/apache%20installlation.htm[/url:1klzyhte] |
5 steps and APACHE mod harbour is running | Hello,
here is a tested installation guide for mod harbour on WINDOWS 64 bit.
You have your server running in 5 little steps. No setup work needed.
Best regards
Otto
[url:3lqmsbem]https://winhotel.space/modharbourdoc/apache%20installlation.htm[/url:3lqmsbem] |
5 steps and APACHE mod harbour is running | Hello,
here is a tested installation guide for mod harbour on WINDOWS 64 bit.
You have your server running in 5 little steps. No setup work needed.
Best regards
Otto
[url:2g9lx8w1]https://winhotel.space/modharbourdoc/apache%20installlation.htm[/url:2g9lx8w1] |
5 steps and APACHE mod harbour is running | Hello,
now I tested also WINDOWS 10 home 64 bit.
With in 10 min. all is running.
Best regards
Otto |
5 steps and APACHE mod harbour is running | Hello,
now I tested also WINDOWS 10 home 64 bit.
With in 10 min. all is running.
Best regards
Otto |
5 steps and APACHE mod harbour is running | [url:2hwlhdkt]https://github.com/FiveTechSoft/mod_harbour/wiki[/url:2hwlhdkt] |
5 steps and APACHE mod harbour is running | [url:2etgqa0n]https://github.com/FiveTechSoft/mod_harbour/wiki[/url:2etgqa0n] |
5 steps and APACHE mod harbour is running | [url:3ekezrko]https://github.com/FiveTechSoft/mod_harbour/wiki[/url:3ekezrko] |
5 steps and APACHE mod harbour is running | Dear Antonio,
the WIKI instruction starts[b:2q83gez1] from an installed APACHE[/b:2q83gez1].
[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]
I wanted to show that in 5 - 10 min. you have your mod harbour running.
Most of us do not have a APACHE server ready.
Best regards
Otto |
5 steps and APACHE mod harbour is running | Dear Antonio,
the WIKI instruction starts[b:36lcwl8h] from an installed APACHE[/b:36lcwl8h].
Most of us do not have a APACHE server ready. Before I posted this manual I tested again on my notebook with WINDOWS 10 home.
[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]
I wanted to show that in 5 - 10 min. you have your mod harbour running.
I think I'll do a video to convince those still hesitant to test mod harbor how easy everything is.
Best regards
Otto |
5 steps and APACHE mod harbour is running | Dear Otto ,
That would be great for beginners...! Thanks in advance...!
Thanks
Shridhar |
5 steps and APACHE mod harbour is running | [quote="shri_fwh":23loqqp4]Dear Otto ,
That would be great for beginners...! Thanks in advance...!
Thanks
Shridhar[/quote:23loqqp4]
I 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: --> |
5 steps and APACHE mod harbour is running | Hello Mark,
on which PC/OS do you want to install mod harbour.
Have you tried the instaruction.
Best regards
Otto |
5 steps and APACHE mod harbour is running | Otto,
I'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 -->)
but behinde it, i made a FW application for the coaches to manage there teams (personel data,team selections, memberdata, ....)
[img:3clc8lhw]https://www.maveco.be/fivewin/online.jpg[/img:3clc8lhw]
But for this to work, they need the Fw app. on there pc in order to connect to the online database. (mariadb way)
Also, the people with a Mac-pc can't run the fw app.
Therefore i'm folowing the Mod-harbour evolution closely. I've tested some of the samples online (very promising for sure)
until 4/5 okt. i have less time, but then I will try to get 1 part working with Mod.
I'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.
As of installation :
For 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.
not the right way i know, but it is not a commercial site, so nobody will notice it )))
Installing 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)
Now, with Mod H. and the installation process you mentioned (Apache is not needed) all is strongly simplyfied.
I have options on
Win 7 machines
Win 10 machines (and will probably go for the Win 10) because users will update to Win 10)
Regards,
Marc |
5 steps and APACHE mod harbour is running | Hi Marc.
Take a look at Bootstrap. With this HTML extension you can make every page auto adapting to
small screens to biggers without any problem. And in a lot of mod_harbour examples is used
and you can learn it in few time. And if there is something that you can't do with al this is
possible to integrate Javascript. I've already made two applications and they are running very well,
also connected to Advantage Database Server.
Massimo |
5 steps and APACHE mod harbour is running | Hello friends,
here is the link to the video showing the installation of mod harbour.
[url:30bwbgtz]https://www.youtube.com/watch?v=lsmAGsbIHdQ[/url:30bwbgtz]
Description
<!-- m --><a class="postlink" href="https://winhotel.space/modharbourdoc/apache%20installlation.htm">https://winhotel.space/modharbourdoc/ap ... lation.htm</a><!-- m -->
Best regards
Otto |
5 steps and APACHE mod harbour is running | Hello friends,
here is the link to the video showing the installation of mod harbour.
[url:etf41nhx]https://www.youtube.com/watch?v=lsmAGsbIHdQ[/url:etf41nhx]
Description
<!-- m --><a class="postlink" href="https://winhotel.space/modharbourdoc/apache%20installlation.htm">https://winhotel.space/modharbourdoc/ap ... lation.htm</a><!-- m -->
Best regards
Otto |
5 steps and APACHE mod harbour is running | Hello friends,
here is the link to the video showing the installation of mod harbour.
[url:1tgvgq21]https://www.youtube.com/watch?v=lsmAGsbIHdQ[/url:1tgvgq21]
Description
<!-- m --><a class="postlink" href="https://winhotel.space/modharbourdoc/apache%20installlation.htm">https://winhotel.space/modharbourdoc/ap ... lation.htm</a><!-- m -->
Best regards
Otto |
5 steps and APACHE mod harbour is running | Dear Antonio, Otto,
As I was checking the CAUCHO Resin web server this also support httpd protocol. have found similar info of Apache Mod.
<!-- 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 -->
Just for knowledge will the mod_harbour also work with [b:121fpr0c]CAUCHO Resin [/b:121fpr0c] web server ?
Thanks
Shridhar |
60000 posts !!! | We already have 60.000 posts in the forums! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Thanks 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:-) --> |
60000 posts !!! | [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:-) -->
Thanks 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]Fivewin is a success. Congratulations for your excellent product.Toninho. |
60000 posts !!! | Hi Antonio ! Thank'sFivewin is as mother language, I can talk everything to my computer <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> RegardsFafi |
60000 posts!!! | ya tenemos 60.000 posts en estos foros! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Gracias 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:-) -->Bueno, este ya es el post 60.001 <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> |
60000 posts!!! | <!-- 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 --> |
60000 posts!!! | Bueno,Parece que el foro se está convirtiendo en una buena base de datos para nuestras dudas.Bien por el foro y todos los que lo conforman!!! |
60000 posts!!! | Felicitaciones a todos por hacer de este foronuestro lugar de reunion.SaludosRuben Fernandez. |
60000 posts!!! | Good Work!! Congratulations to all by the concerted effort!!!Buen trabajo!! Felicitaciones a todos por el gran esfuerzo!!Saludos a todos, desde Argentina Esteban. |
60000 posts!!! | 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..! |
64 Bit Warning MSVC | hi,
need some help for 64 Bit
[quote:3t7l7xtw]HB_FUNC.PRG(322): warning C4244: "Argument": Konvertierung von "LRESULT" in "int", möglicher Datenverlust
HB_FUNC.PRG(336): warning C4244: "Argument": Konvertierung von "LRESULT" in "int", möglicher Datenverlust[/quote:3t7l7xtw]
[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]
[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]
what do i have to enhance for 64 Bit <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
64 Bit Warning MSVC | Dear Jimmy,
Please use hb_retnl() (and hb_retnll()) instead of hb_retni() |
64 Bit Warning MSVC | Dear Jimmy,
You can safely use hb_retnll() in 32 bits |
64 Bit Warning MSVC | hi Antonio,
[quote="Antonio Linares":k3kyj6nj]Please use hb_retnl() (and hb_retnll()) instead of hb_retni()[/quote:k3kyj6nj]
YES, that work without Warning
---
Question :
now 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:?: -->
normal ListView_GetSelectedCount() or ListView_GetSelectionMark() will not have a "big" Number ... |
64 bit | What are the advantages/disadvantages of moving an application from 32 bit harbour to 64 bit and how do you do it? |
64 bit | You will not notice a speed difference, but the way 64 bits uses the memory is much better than in 32 bits.
So if your app uses a lot of memory, you should consider moving to 64 bits.
c:\FWH\samples\buildh64.bat tutor01 |
64 bit | Según he leído el próximo Windows va a salir solo en versión 64 bits. |
64 bit | Yo ya he instalado Windows 11 y funcionan los 32 bits también:
Usé este fichero .bat para construir la ISO de Windows 11:
[url:1ufi1hwe]https://github.com/AveYo/MediaCreationTool.bat/blob/main/MediaCreationTool.bat[/url:1ufi1hwe]
Y 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:-) -->
Ojo, 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:-) -->
El WSL2 es una maravilla. Ya ejecuta aplicaciones GUI de Linux directamente desde Windows
y el WSA para ejecutar aplicaciones Android viene de camino !!! Ambos usan el HyperV de Windows por lo que funcionan muy rápido!
Harbour 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:-) --> |
64 bit | ok so I deduce from the above that my 32 bit application is not likely to be obsolete anytime soon |
64 bit DLL | Hello,
I am trying to build a 64 bit dll using FWH64 and I noticed I do not have a buildhd.bat.
Is there one available for 64 bits?
Also I am interested in any cross compatibility issues that might exist. For example can my 32 bit exe call a 64 bit dll
and just the opposite can a 64 bit exe call a 32 bit dll?
Any help is most appreciated.
Thanks |
64 bit Linux | 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
I 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.
It would be great to know if
1. I can use the Inet functionality from Harbour and / or
2. How to build (a 64 bit version) of xHarbour
Thanks
Doug |
64 bit Linux | Resolved
I 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).
In summary, as well as downloading the from the xHarbour site I had to install the following:
bison
unixODBC-dev
libgpm-dev |
64 bit Linux | Doug,
Thanks for the info <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
64 bit Resource Editor | Hello,
I 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?
Thank you, |
64 bit Resource Editor | You can try
<!-- m --><a class="postlink" href="http://www.windows7download.com/win7-resedit-64bit/hqhrqoud.html">http://www.windows7download.com/win7-re ... rqoud.html</a><!-- m -->
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
64 bit Resource Editor | Hello, PellesC will help you.
Regards |
64 bit Resource Editor | Darrell
The 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 ..
Rick Lipkin
[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] |
64 bit Resource Editor | 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:-( -->
EMG |
64 bit Resource Editor | Darrell
I use Pelles
<!-- 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 -->
Regards
Maurizio
<!-- m --><a class="postlink" href="http://www.nipeservice.com">http://www.nipeservice.com</a><!-- m --> |
64 bit Resource Editor | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=12773">viewtopic.php?f=17&t=12773</a><!-- l --> |
64 bit WDBU | What alternatives do we have for xWDBU except xaDbu?
[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]
Best regards,
Otto |
64 bit WDBU | Otto,
There 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:-) --> |
64 bit WDBU | Hello Abntonio,
thank you. Do you mean xBrwDbu.prg in the fivewin/samples folder?
Best regards,
Otto |
64 bit WDBU | No, I mean the first developed WDBU in 16 bits and ported to 32 and 64 bits, using Harbour and FWH 32/64.
Don'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:-) --> |
64 bit WDBU | Please, anyone could provide the link where latest sources are available and compiled versions?.
Is not ilegal to provide links.
Thank you very much. |
64 bit WDBU | Friends:
Another option is Advantage Data Architect, I use it with Windows 7 premium and
no problems at all.
regards |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.