appointment/task duration time for POOM

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have compiled dll from POOMClient
i can create an appointment, but how can i set the starting and ending time
for it?

thanks a lot!!!
 
Take a look at appointment.cs file. There are IAppointment_* P/Invoke
declarations in the bottom, add here IAppointment_put_Start,
IAppointment_put_End (see file pocketoutlook.cpp). You should know that
one of parameter is DATE that defined as double. Double cannot be
marshaled by value in the CF.NET, you should pass it by reference:

[ DllImport("PocketOutlook.dll", EntryPoint="IAppointment_put_Start") ]
private static extern int do_put_Start(IntPtr self, ref double start);


Hope this help,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
thanks a lot expert! but i haven't written pointers in c#
i want to make it clear
i put
[ DllImport("PocketOutlook.dll", EntryPoint="IAppointment_put_Start") ]
private static extern int do_put_Start(IntPtr self, ref double start);

in my code,

DateTime dtNow = DateTime.Now;
that means i have to convert dtNow to be double's pointer? how can i do so?
then do_put_Start(xxx,yyy)


Sergey Bogdanov said:
Take a look at appointment.cs file. There are IAppointment_* P/Invoke
declarations in the bottom, add here IAppointment_put_Start,
IAppointment_put_End (see file pocketoutlook.cpp). You should know that
one of parameter is DATE that defined as double. Double cannot be
marshaled by value in the CF.NET, you should pass it by reference:

[ DllImport("PocketOutlook.dll", EntryPoint="IAppointment_put_Start") ]
private static extern int do_put_Start(IntPtr self, ref double start);


Hope this help,
Sergey Bogdanov
http://www.sergeybogdanov.com
I have compiled dll from POOMClient
i can create an appointment, but how can i set the starting and ending time
for it?

thanks a lot!!!
 
or do i need to update appointment.cs
to add add_start and add_end functions there?


Sergey Bogdanov said:
Take a look at appointment.cs file. There are IAppointment_* P/Invoke
declarations in the bottom, add here IAppointment_put_Start,
IAppointment_put_End (see file pocketoutlook.cpp). You should know that
one of parameter is DATE that defined as double. Double cannot be
marshaled by value in the CF.NET, you should pass it by reference:

[ DllImport("PocketOutlook.dll", EntryPoint="IAppointment_put_Start") ]
private static extern int do_put_Start(IntPtr self, ref double start);


Hope this help,
Sergey Bogdanov
http://www.sergeybogdanov.com
I have compiled dll from POOMClient
i can create an appointment, but how can i set the starting and ending time
for it?

thanks a lot!!!
 
Back
Top