Problems compiling even examples

Frank75

New Member
Hi,
actually I want to write a small piece of code to archive my older appointments from my Phone into an csv file.
(I have to do this because of some company rules on our exchange server all my old appointments have been deleted. Because I switched my phone a few days earlier I have the appointmens stored in my old windows mobile phone...)

I wrote some code that might be able to do the job - but not the build even on exampels fail:


Appointment.New1
Appointment.CreateNew
Appointment.Subject = "Lunch"
Appointment.StartDate = DateParse("10/25/2007") + (TimeParse("13:35") Mod cTicksPerDay)
PimCol.AddItem(Appointment.Value)


Error Message:
Appointment is not an known control or Object

In Tools>Components I added the outlook device DLL.

Do I have an Installation Issue or what did I do wrong :sign0104:

Best regards
Frank
 

Cableguy

Expert
Licensed User
Longtime User
When working on the desktop, you also need to add the desktop version of the DLL if available, even if it is a dummy...
it will allow the compiler to know what dll to copy or merge at compilation time.
 

Frank75

New Member
Hi cableguy,
thanks for your answer. :sign0013: Sorry but I was not able to get it to work.
I removed all existing Components and DLLs in the application Directiory and in Tools>Compontents
Now I added
Tools>Components>Device>Outlook.dll
and
Tools>Components>Desktop>OutlookDesktop.dll

If I tell the Basic4ppc to add
Tools>Components>Both>Outlook.dll
I receive an error message.

Can you please help me another time. What did I made wrong?

Frank
 

Cableguy

Expert
Licensed User
Longtime User
OUtlook .DLL is the device DLL for accessing contacts and such.
OutlookDesktop.DLL is just a dummy, used to expose all the props, methods and events, so the developer cn work on the desktop.
So in the devide dll list, you must have the outlook.dll, and in the desktop dll list, you must have outlookdesktop.dll....
Make sure when compiling, to target the device...
Other than that, I can't see why it doesn't work...
 

Frank75

New Member
Hi Cableguy,

now it works. I made an new project adding all code in an new file in an new directory ...
the build process works !!!! :sign0060:

Thanks for your help

Frank
 
Top