Page 1 of 3

Read contacts Pocket outlook wm5

PostPosted: Sat Aug 09, 2008 10:05 am
by xfood
How can read the entire list of contacts
in wm5 / 6 with FWPPC
Thanks in advance

PostPosted: Sat Aug 09, 2008 1:19 pm
by Antonio Linares
Please try this:
Code: Select all  Expand view
#include "fwce.CH"

function Main()

   MsgInfo( ValType( CreateObject( "PocketOutlook.Application" ) ) )

return nil

http://support.microsoft.com/kb/265771/es

PostPosted: Sat Aug 09, 2008 1:42 pm
by xfood
buildce poutlook

Creating library poutlook.lib and object poutlook.exp
poutlook.obj : error LNK2001: unresolved external symbol HB_FUN_CREATEOBJECT
poutlook.exe : fatal error LNK1120: 1 unresolved externals

PostPosted: Sat Aug 09, 2008 2:02 pm
by Antonio Linares

PostPosted: Sat Aug 09, 2008 3:35 pm
by xfood
EXCUSE ME, NOW MI FROM THIS ERROR

poutlook.c
hbw32.lib(w32ole.obj) : error LNK2005: HB_FUN_ANSITOWIDE already defined in Five
CEC.lib(FWCE.obj)
hbw32.lib(w32ole.obj) : error LNK2005: HB_FUN_WIDETOANSI already defined in Five
CEC.lib(FWCE.obj)
hbw32.lib(w32ole.obj) : warning LNK4006: HB_FUN_ANSITOWIDE already defined in Fi
veCEC.lib(FWCE.obj); second definition ignored
hbw32.lib(w32ole.obj) : warning LNK4006: HB_FUN_WIDETOANSI already defined in Fi
veCEC.lib(FWCE.obj); second definition ignored
Creating library poutlook.lib and object poutlook.exp
poutlook.exe : fatal error LNK1169: one or more multiply defined Symbols found

PostPosted: Sat Aug 09, 2008 5:42 pm
by xfood
MI YOU CAN HELP?
now with that lib [hbw32.lib] me from error as from post above, does it serve me a system to read all the contacts of the ppc and can to put them in a chart dbf point out me how to do with FWPPC?
thanks thousand

PostPosted: Sat Aug 09, 2008 7:22 pm
by Antonio Linares
We email you some new files

PostPosted: Sun Aug 10, 2008 9:16 am
by xfood
grazie mille
adesso non mi da errore in compilazione,
pero non riesco a leggere i contatti da poutlook
hai qualche esempio?
questo non funziona

thanks thousand now not me from error in compilation, however don't I succeed in reading the poutlook contacts you have some example?
this doesn't work

#include "fwce.CH"
function Main()
local pOLA
local pContact
local pItems
local olFolderContacts := 10

pOLA=CreateObject( "PocketOutlook.Application" )
pContact=CreateObject( "PocketOutlook.ContactItem" )
pItems=CreateObject( "PocketOutlook.Items" )
pItems = pOLA.GetDefaultFolder(olFolderContacts).Items

For i = 1 To pItems.Count
pContact = pItems.Item(i)
msginfo(pContact.FileAs)
Next i

* MsgInfo( ValType( CreateObject( "PocketOutlook.Application" ) ) )

return nil

PostPosted: Mon Aug 11, 2008 3:15 pm
by Antonio Linares
If you get an error on this line:

MsgInfo( ValType( CreateObject( "PocketOutlook.Application" ) ) )

then it means that PocketOutlook is not available (not installed?)

Maybe we need to use ADOCE to read the contacts database.

PostPosted: Mon Aug 11, 2008 4:35 pm
by xfood
where I find ADOCE to give it a try?

PostPosted: Mon Aug 11, 2008 11:43 pm
by Antonio Linares

Re:

PostPosted: Sun Mar 15, 2009 8:11 pm
by JmGarcia
Antonio Linares wrote:
Code: Select all  Expand view

#include "fwce.CH"
function Main()
   MsgInfo( ValType( CreateObject( "PocketOutlook.Application" ) ) )
return nil
 


A mi, este código me da este error:

TOLEAUTO:NEW
Args:
[ 1] = C PocketOutlook.Application
stack calls:
THROW(77)
TOLEAUTO:NEW(245)
CREATEOBJECT(90)
MAIN(5)

Re: Read contacts Pocket outlook wm5

PostPosted: Sun Mar 15, 2009 8:34 pm
by Antonio Linares
Ese objeto no esta disponible, por eso no se puede crear el objeto OLE y de ahi el error.

Parece que existe una libreria para leer los ficheros PST directamente:
http://freshmeat.net/projects/libpst/?topic_id=31

Ahora hay que revisar el codigo fuente, que es abierto:
http://www.five-ten-sg.com/libpst/

Re: Read contacts Pocket outlook wm5

PostPosted: Sun Mar 15, 2009 8:45 pm
by Antonio Linares
Accediendo a los contactos usando C#:

http://www.codeguru.com/csharp/csharp/c ... php/c10773

Posiblemente podamos adaptarlo a FWPPC

Re: Read contacts Pocket outlook wm5

PostPosted: Sun Mar 15, 2009 9:21 pm
by Antonio Linares
Como comienzo, no podemos usarlo en WM2003. Desde el WM5 en adelante:

Unfortunately Microsoft.WindowsMobile.PocketOutlook is not supported on PPC 2003 SE, it is supported in Windows Mobile 5.0 and higher versions only.