Read contacts Pocket outlook wm5

xfood
Posts: 96
Joined: Tue Jun 17, 2008 9:02 pm

Read contacts Pocket outlook wm5

Post by xfood »

How can read the entire list of contacts
in wm5 / 6 with FWPPC
Thanks in advance
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Please try this:

Code: Select all

#include "fwce.CH"

function Main()

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

return nil
http://support.microsoft.com/kb/265771/es
regards, saludos

Antonio Linares
www.fivetechsoft.com
xfood
Posts: 96
Joined: Tue Jun 17, 2008 9:02 pm

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
xfood
Posts: 96
Joined: Tue Jun 17, 2008 9:02 pm

Post 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
xfood
Posts: 96
Joined: Tue Jun 17, 2008 9:02 pm

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

We email you some new files
regards, saludos

Antonio Linares
www.fivetechsoft.com
xfood
Posts: 96
Joined: Tue Jun 17, 2008 9:02 pm

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
xfood
Posts: 96
Joined: Tue Jun 17, 2008 9:02 pm

Post by xfood »

where I find ADOCE to give it a try?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
JmGarcia
Posts: 654
Joined: Mon May 29, 2006 3:14 pm
Location: Madrid - ESPAÑA

Re:

Post by JmGarcia »

Antonio Linares wrote:

Code: Select all

#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)
Mi abuelo decía: Los aviones vuelan porque Dios quiere, y los helicópteros ni Dios sabe porque vuelan.
FWH 16.02, xHarbour 1.2.3, Harbour 3.2.0, WorkShop 4.5, AJ Make 0.30, Borlan BCC 7.00, VisualStudio 2013
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Read contacts Pocket outlook wm5

Post 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/
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Read contacts Pocket outlook wm5

Post by Antonio Linares »

Accediendo a los contactos usando C#:

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

Posiblemente podamos adaptarlo a FWPPC
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Read contacts Pocket outlook wm5

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply