Hi Jack,
"Jack P" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I can't understand Microsoft put so much black box in compact framework
>
> try and error everyday is really boring stuff.
No platform is a magic bullet. You need to invest the time to learn the
specifics of the environment and its related development tools. I doubt
you'll find Android, iPhone, Symbian or Blackberry significantly different
in this regard..
As Peter mentioned it would also help if you clearly spelt out what you are
attempting to acheive. One code sample you posted showed a C++ calculator
type API, while the present one references an old eVB sample for launching
applications. What is you're desired outcome?
I assume you are wanting to learn how to implement Platform Invoke calls
into C/C++ code you are going to write. As Chris Tacke pointed out, your
difficulty is probably related to one of two things:
A) Knowing how to correctly build your native DLL so it exposes the function
in a compatable form
B) Knowing how to correctly deploy both the native and managed parts of your
application to the emulator/device
To help you along the way I went through the old eVB example you mentioned
and created a Visual Studio 2008 / .NET CF 3.5 project which demonstrates
the same thing.
You can download the source code at
http://www.christec.co.nz/blog/wp-co...okeexample.zip.
Hopefully you will be able to set both projects to deploy to the same device
and see that clicking the button in the managed app launches the calendar
application via the native DLL (although using the
System.Diagnostics.Process class would be a better solution for this
specific task).
If you have any difficulty deploying the project(s) we should be able to
work through them.
Hope this helps,
Christopher Fairbairn