GPRSCONNECTION

Post Reply
rasptty
Posts: 88
Joined: Sun May 25, 2008 5:46 pm

GPRSCONNECTION

Post 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
User avatar
Biel EA6DD
Posts: 680
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca
Contact:

Post 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)
{ 
...
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
rasptty
Posts: 88
Joined: Sun May 25, 2008 5:46 pm

GPRSCONNECTION

Post by rasptty »

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

Vou testar.. Obrigado pela ajuda
rasptty
Posts: 88
Joined: Sun May 25, 2008 5:46 pm

Post 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
rasptty
Posts: 88
Joined: Sun May 25, 2008 5:46 pm

Post by rasptty »

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