Hi,
i can't compile "optimized" programs that uses the outlook lib!
for example, it failed to compile this from the helpfiles:
-----------------------------------------------------
'PimCol is a PimCollection object and Appointment is an Appointment object.
Sub Globals
End Sub
Sub App_Start
Form1.Show
Appointment.New1
PimCol.New1("Appointments")
PimCol.SortItems("Start",false)
i = 0
Do
Appointment.Value = PimCol.GetItem(i)
i = i + 1
Loop While i < PimCol.Count AND Appointment.Start < Now 'Finds the next appointment.
If i<=PimCol.Count Then
Msgbox("Next appointment will be on: " & Time(Appointment.Start))
End If
End Sub
------------------------------------
produces:
Error compiling program
Error message: error CS0012: The type 'microsoft.WindowsMobile.PocketOutlook.Appointment' is
defined in an assembly that is not referenced. You must add an refence to assembly ..... ...
Line number: 16
Line: Appointment.Value = PimCol.GetItem(i)
"Normal" compiliation for smartphones and PocketPC works! Only "optimized" compilation fails!
Output from the "About" Menu:
Version: 6.01
.NET Version 2.0.50727.42
I have de/reinstalled: Basic4ppc .net1.1 .net2.0 .net2.0SP2
any idea?
Gerd
i can't compile "optimized" programs that uses the outlook lib!
for example, it failed to compile this from the helpfiles:
-----------------------------------------------------
'PimCol is a PimCollection object and Appointment is an Appointment object.
Sub Globals
End Sub
Sub App_Start
Form1.Show
Appointment.New1
PimCol.New1("Appointments")
PimCol.SortItems("Start",false)
i = 0
Do
Appointment.Value = PimCol.GetItem(i)
i = i + 1
Loop While i < PimCol.Count AND Appointment.Start < Now 'Finds the next appointment.
If i<=PimCol.Count Then
Msgbox("Next appointment will be on: " & Time(Appointment.Start))
End If
End Sub
------------------------------------
produces:
Error compiling program
Error message: error CS0012: The type 'microsoft.WindowsMobile.PocketOutlook.Appointment' is
defined in an assembly that is not referenced. You must add an refence to assembly ..... ...
Line number: 16
Line: Appointment.Value = PimCol.GetItem(i)
"Normal" compiliation for smartphones and PocketPC works! Only "optimized" compilation fails!
Output from the "About" Menu:
Version: 6.01
.NET Version 2.0.50727.42
I have de/reinstalled: Basic4ppc .net1.1 .net2.0 .net2.0SP2
any idea?
Gerd