GPRSCONNECTION

GPRSCONNECTION

Postby rasptty » Tue Sep 02, 2008 4: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
rasptty
 
Posts: 88
Joined: Sun May 25, 2008 5:46 pm

Postby Biel EA6DD » Tue Sep 02, 2008 5: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.

Code: Select all  Expand view  RUN
// 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/
User avatar
Biel EA6DD
 
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca

GPRSCONNECTION

Postby rasptty » Tue Sep 02, 2008 6:03 pm

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

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

Postby rasptty » Wed Sep 03, 2008 10:54 am

Já agora qual a função para esperar tipo 5 Segundos
rasptty
 
Posts: 88
Joined: Sun May 25, 2008 5:46 pm


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 35 guests