Page 1 of 1

GPRSCONNECTION

Posted: Tue Sep 02, 2008 4:21 pm
by rasptty
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

Posted: Tue Sep 02, 2008 5:13 pm
by Biel EA6DD
as you can read at begin of source code, you need to link cellcore.lib, remember to include "initguid.h" and "connmgr.h" headers.

Code: Select all

// 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)
{ 
...

GPRSCONNECTION

Posted: Tue Sep 02, 2008 6:03 pm
by rasptty
Obrigado era mesmo isso, não tinga colocado o CellCore

Vou testar.. Obrigado pela ajuda

Posted: Wed Sep 03, 2008 10:53 am
by rasptty
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

Posted: Wed Sep 03, 2008 10:54 am
by rasptty
Já agora qual a função para esperar tipo 5 Segundos