Using ADOCE
- Antonio Linares
- Site Admin
- Posts: 37485
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Using ADOCE
http://www.wirelessdevnet.com/channels/ ... do_ce.html
http://www.microsoft.com/downloads/deta ... laylang=en
http://www.mydatabasesupport.com/forums ... 5-0-a.html
http://www.microsoft.com/downloads/deta ... laylang=en
http://www.mydatabasesupport.com/forums ... 5-0-a.html
- Antonio Linares
- Site Admin
- Posts: 37485
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37485
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Using ADOCE
Boas
Sr. Linares Estou pedindo tua ajuda no seguinte, ainda não consegui conectar com o LIB MYSQLMOBILE.DLL com o FWPPC, gostaria de pedir tua ajuda e se possível
comunicar com Mouro pois também andou atrás da lib MYSQLMOBILE e não consegui seu contacto
Obrigado
Sérgio
Sr. Linares Estou pedindo tua ajuda no seguinte, ainda não consegui conectar com o LIB MYSQLMOBILE.DLL com o FWPPC, gostaria de pedir tua ajuda e se possível
comunicar com Mouro pois também andou atrás da lib MYSQLMOBILE e não consegui seu contacto
Obrigado
Sérgio
Re: Using ADOCE
O Exemplo em http://classic.pocketgear.com feito C++ eVC4.0 funciona OK, estando o source code disponivel será que podemos utilizar
em FWPPC
Fiz vários testes com o exemplo e funcionou sempre OK (UPDATE, INSERT, SELECT .......)
Cumprimentos
Sergio
em FWPPC
Fiz vários testes com o exemplo e funcionou sempre OK (UPDATE, INSERT, SELECT .......)
Cumprimentos
Sergio
- Antonio Linares
- Site Admin
- Posts: 37485
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Using ADOCE
Sergio,
> O Exemplo em http://classic.pocketgear.com feito C++ eVC4.0 funciona OK, estando o source code disponivel
Puedes copiar aqui el código fuente de ese ejemplo con C++ eVC4.0 ? gracias
> O Exemplo em http://classic.pocketgear.com feito C++ eVC4.0 funciona OK, estando o source code disponivel
Puedes copiar aqui el código fuente de ese ejemplo con C++ eVC4.0 ? gracias
Re: Using ADOCE
o Link para efectuar download:
http://www.briweb.net/software/c/sourcecode.rar
Será que conseguimos o exemplo em FWPPC?
Cumprimentos
Sérgio
http://www.briweb.net/software/c/sourcecode.rar
Será que conseguimos o exemplo em FWPPC?
Cumprimentos
Sérgio
- Antonio Linares
- Site Admin
- Posts: 37485
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Using ADOCE
Sergio,
Excelente! Excellent!![Smile :-)](./images/smilies/icon_smile.gif)
Now that we have MySQLMobile.dll we can fully use it from FWPPC!![Smile :-)](./images/smilies/icon_smile.gif)
Ahora que tenemos MySQLMobile.dll podemos usarlo totalmente desde FWPPC![Smile :-)](./images/smilies/icon_smile.gif)
Excelente! Excellent!
![Smile :-)](./images/smilies/icon_smile.gif)
Now that we have MySQLMobile.dll we can fully use it from FWPPC!
![Smile :-)](./images/smilies/icon_smile.gif)
Ahora que tenemos MySQLMobile.dll podemos usarlo totalmente desde FWPPC
![Smile :-)](./images/smilies/icon_smile.gif)
- Antonio Linares
- Site Admin
- Posts: 37485
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Using ADOCE
MySQLMobile.dll demo version can be downloaded from here:
http://www.fivetechsoft.com/files/MySQLMobile.dll
We create the MySQLMobile.def file this way:
impdef.exe MySQLMobile.def MySQLMobile.dll
MySQLMobile.def
We create the import library MySQLMobile.lib this way:
c:\vce\bin\lib /def:MySQLMobile.def /machine:ARM
You can download MySQLMobile.lib from here:
http://www.fivetechsoft.com/files/MySQLMobile.lib
http://www.fivetechsoft.com/files/MySQLMobile.dll
We create the MySQLMobile.def file this way:
impdef.exe MySQLMobile.def MySQLMobile.dll
MySQLMobile.def
Code: Select all
LIBRARY MYSQLMOBILE.DLL
EXPORTS
mysql_connect @1 ; mysql_connect
mysql_disconnect @2 ; mysql_disconnect
mysql_execute_query @3 ; mysql_execute_query
mysql_get_data @4 ; mysql_get_data
mysql_get_field @5 ; mysql_get_field
mysql_get_fieldcount @6 ; mysql_get_fieldcount
mysql_get_last_error @7 ; mysql_get_last_error
mysql_get_last_insert_id @8 ; mysql_get_last_insert_id
mysql_get_last_servermessage @9 ; mysql_get_last_servermessage
mysql_get_rowcount @10 ; mysql_get_rowcount
mysql_select_db @11 ; mysql_select_db
c:\vce\bin\lib /def:MySQLMobile.def /machine:ARM
You can download MySQLMobile.lib from here:
http://www.fivetechsoft.com/files/MySQLMobile.lib
- Antonio Linares
- Site Admin
- Posts: 37485
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Using ADOCE
Sergio,
Here you have a first test. You have to add this line to FWPPC\samples\buildce.bat after the last used library:
echo MySQLMobile.lib >> msvc.tmp
test.prg
The EXE properly run ![Smile :-)](./images/smilies/icon_smile.gif)
![Image](http://img18.imageshack.us/img18/8111/captureru3.png)
Here you have a first test. You have to add this line to FWPPC\samples\buildce.bat after the last used library:
echo MySQLMobile.lib >> msvc.tmp
test.prg
Code: Select all
#include "FWCE.ch"
function Main()
local nRet := MySQL_Connect( "192.168.0.30", 3306, "username", "password" )
MsgInfo( nRet )
return nil
#pragma BEGINDUMP
int mysql_connect( char * host, int iPort, char * username, char * password );
#include <hbapi.h>
HB_FUNC( MYSQL_CONNECT )
{
hb_retnl( mysql_connect( hb_parc( 1 ), hb_parnl( 2 ), hb_parc( 3 ), hb_parc( 4 ) ) );
}
#pragma ENDDUMP
![Smile :-)](./images/smilies/icon_smile.gif)
![Image](http://img18.imageshack.us/img18/8111/captureru3.png)
Re: Using ADOCE
Excelente! Excellent Linares
The Test return 0 (é normal)
Podemos tentar Ligar
MyExeQuery ? - Executar uma query
MySelectDb ? - Abrir Base de Dados
MyDesconec ? - Desconectar
regards, saludos
Sérgio
![Very Happy :D](./images/smilies/icon_biggrin.gif)
The Test return 0 (é normal)
Podemos tentar Ligar
MyExeQuery ? - Executar uma query
MySelectDb ? - Abrir Base de Dados
MyDesconec ? - Desconectar
regards, saludos
Sérgio