FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error testsql1.RC 11 11: Cannot open file: winapi.ch
Posts: 117
Joined: Thu Jan 08, 2015 09:27 AM
Error testsql1.RC 11 11: Cannot open file: winapi.ch
Posted: Thu Jan 29, 2015 11:07 AM

I got an error:

Error testsql1.RC 11 11: Cannot open file: winapi.ch linking errors

-I use Fivewin 2015 for Xhabour
-I use buildx.bat file to compile and link. It works for tutor01.prg
-xHarbour 1.2.3 Intl. (SimpLex) (Build 20141106)
-Borland 5.5 compiler
-I tried to compile and execute testsql1.prg (copied from C:\fwh\samples\testsql)
-I checked C:\fwh\include which has a file winapi.ch

Goal today: to get a connection with fivewin/xharbour to a mysql database server.
Goal in general: to investigate solutions to convert .dbf technology to sql technology. (This can be a question in a other topic).

Does somebody know a solution for my problem?

Kind regards,

Pieter

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error testsql1.RC 11 11: Cannot open file: winapi.ch
Posted: Thu Jan 29, 2015 11:40 AM
Pieter,

In order to solve that error, please modify this buildx.bat line this way:

IF EXIST %1.rc %bcdir%\bin\brc32 -r -I..\include -I%bcdir%\include %1

Now, to accomplish your goal for today, please follow my instructions:

1. Forget about FWH\samples\Testsql1.prg. Thats not the way to do.

2. Download FiveDBU (it provides full source code) and test it to manage your ADO databases:

https://bitbucket.org/fivetech/fivewin-contributions/downloads/fivedbu_20140730.zip

3. Please review FiveDBU.prg sources to understand it. ADO provides full SQL support and it is the way to go.

That would be perfect for today :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 117
Joined: Thu Jan 08, 2015 09:27 AM
Re: Error testsql1.RC 11 11: Cannot open file: winapi.ch
Posted: Thu Jan 29, 2015 12:47 PM
Antonio,

Thanks for this information :-)

I changed the code.
Code (fw): Select all Collapse
IF EXIST %1.rc %bcdir%\bin\brc32 -r -I%bcdir%\include %1
to
Code (fw): Select all Collapse
IF EXIST %1.rc %bcdir%\bin\brc32 -r -I%FWDIR%\include -I%bcdir%\include %1
on line 34. (I have done: if "%FWDIR%" == "" set FWDIR=c:\fwh).

The error(Error testsql1.RC 11 11: Cannot open file: winapi.ch) disappeared.


screen capture tool

I got new errors for testsql1.prg. I will stop trying to get testsql1.prg work (and understand) for now. I will try to get your solution with ADO databases working :-).

Thanks again!
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error testsql1.RC 11 11: Cannot open file: winapi.ch
Posted: Fri Jan 30, 2015 05:13 AM

Pieter,

You are welcome :-)

viewtopic.php?f=3t=30070p=171561#p171561

&&

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion