Outllok compile error

nikdo

New Member
Probably was solved before but
B4X:
Sub Button1_Click
   ChooseDialog.New1
OutlookContact.New1
ChooseDialog.Show ' I think it returns cOK or cCancel?
OutlookContact.Value = ChooseDialog.SelectedContact
Msgbox(OutlookContact.Lastname)
End Sub

The code works fine on the PDA basic4PPC version but when I try to compile it on the PC to get .exe file,
I get error message:
error CS0012: The type 'MS.WindowsMobile.PocketOutlook.Contact' is defined in an assembly that is not referenced. You must add a reference to assembly 'MS.WindowsMobile.PocketOutlook, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Am I using the old version of Outlook.dll?
 

Zenerdiode

Active Member
Licensed User
You'll see your error message has got 'MS.WindowsMobile.PocketOutlook' in it - the Outlook Library is only for the device. Did you mean you are compiling for the device on the PC?

How are you managing to compile? You appear on the Forum as an unregistered user.
 

konisek

Member
Licensed User
Longtime User
You were right, I was looged in with my second unregistered user's name.
I used the newer library and also upgraded to 6.80 version. This solved the error message.
(L)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…