FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC GPRSCONNECTION
Posts: 88
Joined: Sun May 25, 2008 05:46 PM
GPRSCONNECTION
Posted: Tue Sep 02, 2008 04:21 PM

FUNC (GPRSCONNECTION) of Pawelu

Quando compilo o exemplo de Pawelu dá o seguinte erro...

PharmaPAL.obj : error LNK2019: unresolved external symbol ConnMgrEstablishConnection referenced in function HB_FUN_GPRSCONNECTION
PharmaPAL.obj : error LNK2019: unresolved external symbol ConnMgrConnectionStatus referenced in function HB_FUN_GPRSCONNECTION
PharmaPAL.exe : fatal error LNK1120: 2 unresolved externals

alguem me ajuda
Obrigado

Sérgio

Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM
GPRSCONNECTION
Posted: Tue Sep 02, 2008 05:13 PM
as you can read at begin of source code, you need to link cellcore.lib, remember to include "initguid.h" and "connmgr.h" headers.

// Header file: <connmgr.h>
// Library linked: CellCore.Lib
// Pocket Pc: Properly create GPRS connection (My ISP) in Connections Settings
//            Connections Settings, Advanced Tab, Select Networks Button, set to My ISP

HB_FUNC (GPRSCONNECTION)
{ 
...
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
Posts: 88
Joined: Sun May 25, 2008 05:46 PM
GPRSCONNECTION
Posted: Tue Sep 02, 2008 06:03 PM

Obrigado era mesmo isso, não tinga colocado o CellCore

Vou testar.. Obrigado pela ajuda

Posts: 88
Joined: Sun May 25, 2008 05:46 PM
GPRSCONNECTION
Posted: Wed Sep 03, 2008 10:53 AM

Agora está tudo a funcionar OK, apenas um pequeno assunto:

Quando estabelece a ligação e tenta de emediato efectuar o download do
ficheiro via FTP, dá erro, .

Se tentar novamente já estabelece a Ligação OK

Para resolver isto terei que por um timming antes de utilizar o INTERNETCONNECT() após ligação do GPRS.

Obrigado

Sérgio

Posts: 88
Joined: Sun May 25, 2008 05:46 PM
GPRSCONNECTION
Posted: Wed Sep 03, 2008 10:54 AM

Já agora qual a função para esperar tipo 5 Segundos

Continue the discussion