N nikdo New Member Dec 22, 2009 #1 Probably was solved before but Code: Copy 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?
Probably was solved before but Code: Copy 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?
Z Zenerdiode Active Member Licensed User Dec 22, 2009 #2 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.
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.
K konisek Member Licensed User Longtime User Dec 24, 2009 #3 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)
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)