simple question of POOM

G

Guest

I would like to add appointment programmatically (using c#),
i have downloaded POOM Wrapper Sample,
when i am writing my own codes, how can i use PocketOutlook's methods?
i need to add reference of PocketOutlook, if yes, where can i get the dll
file?

thanks a lot!!!
 
S

Sergey Bogdanov

There is readme1st.txt in the POOM Wrapper Sample directory where says:

"In order to run the application, simply choose the CAB file that
matches the processor of the target device, and copy this CAB to the
device. Once copied, launch the CAB, which will unpack itself to the
"\Program Files\SDE POOM Sample" directory of the device. Note that you
will need to have the .NET Compact Framework runtime already deployed to
the device. "

This is native DLL and you don't need to reference to it just place it
in the application directory. And here is an example how to create
appointment:

PocketOutlook.Application app = new PocketOutlook.Application();
app.Logon();

Appointment apoint = app.CreateAppointment();
apoint.Body = "Appointment Body";
apoint.Save();

app.Logoff();


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
G

Guest

thanks for ur reply

"This is native DLL and you don't need to reference to it just place it
in the application directory."

what mean by that? that means i have to copy sth. into the device before
compile and deploy my codes for PPC?

or is that a simple way, so that i can reference PocketOutlook.dll. and then
i can use PocketOutlook.Application app = etc....

thanks a lot!!!
 
S

Sergey Bogdanov

I've meant that you should put PocketOutlook.dll (wrapper, that you
compiled from PocketOutlook eVC project) to the same directory where
your application was placed. If you don't want to compile it then just
extract from CAB pocket~1.003 and rename it to PocketOutlook.dll. Notice
that POOMClient_PPC.ARM.CAB is probably a CAB for your device, but
POOMClient_PPC.X86.CAB is a CAB for emulator.


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
G

Guest

i extract POOMCL~1.001 and rename it to be PocketOutlook.dll
(i tried both ARM and X86)
i got this error when compiling, i am using vs.net2003

Error: The dependency 'mscorlib, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' in project 'PPC_Client' cannot be copied to
the run directory because it would conflict with dependency 'mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

thanks!
 
S

Sergey Bogdanov

Why did you take POOMCL~1.001? I wrote pocket~1.003 in my previous post.
Let me explain how to run this sample together with your application:
1. Open the solution "\POOM Wrapper Sample\code\CS\POOMClient.sln"
2. Select POOMClient in solution explorer then click Project->Properties
and change Output Type to Class Library
3. Add your existent project to this solution (POOMClient)
4. Include to your project the correct renamed version of pocket~1.003
as a "Content".
5. Add reference to POOMClient library in your project (Right Click->Add
Reference->Projects)
6. In your project place the code from my previous post to add Appointment.


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
G

Guest

thanks a lot!
i took POOMCL~1.001, because when i rename it to dll and add to my proj, i
can "dot" the methdos for pocketoutlook

but anyway, i would like to ask 4, that means i have to rename pocket~1.003
to pocketoutlook.dll, then add as existing item the project (which i added in
poomclient)
when i compile, i got error in contact.cs
it said " private static extern int do_get_YomiFirstName(IntPtr self,
ref IntPtrî¹bz);"
identifier expected.
 
S

Sergey Bogdanov

About 4, you understood correctly. About the error; contact.cs contains
typos, just modify it:

1. for do_get_Suffix, one of parameter - ref IntPtr?rbz => ref IntPtr rbz
2. do_get_YomiFirstName, ref IntPtr?rbz => ref IntPtr rbz

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
G

Guest

great! seems that every thing is ok for compiling the dll
the only problem is that
Appointment apoint = app.CreateAppointment();

The type or namespace name 'Appointment' could not be found (are you missing
a using directive or an assembly reference?)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top