PC Review


Reply
Thread Tools Rate Thread

Native DLL on PPC2003

 
 
=?Utf-8?B?Sm9leSBXdQ==?=
Guest
Posts: n/a
 
      27th Dec 2004
Dear All

I used those code to import methods from native dll.
It works on WinCE.net 4.2
But when I try it on PPC2003 device. It throw a MissingMethodException.
Please give me a hand.

[DllImport("test.dll", EntryPoint="MyCreate")]
private static extern IntPtr Create ();

endpoint = Create (); <---- error here

Thanks a lot ~!!

Joey

 
Reply With Quote
 
 
 
 
Sergey Bogdanov
Guest
Posts: n/a
 
      27th Dec 2004
P/Invoke service throws MissingMethodException when the entry point
which you specified was not found. Make sure that your "test.dll" and
EntryPoint are exist in the PPC2003. This library could be specific for
WinCE platform or smth.


Joey Wu wrote:
> Dear All
>
> I used those code to import methods from native dll.
> It works on WinCE.net 4.2
> But when I try it on PPC2003 device. It throw a MissingMethodException.
> Please give me a hand.
>
> [DllImport("test.dll", EntryPoint="MyCreate")]
> private static extern IntPtr Create ();
>
> endpoint = Create (); <---- error here
>
> Thanks a lot ~!!
>
> Joey
>

 
Reply With Quote
 
=?Utf-8?B?Sm9leSBXdQ==?=
Guest
Posts: n/a
 
      27th Dec 2004
My code is working on Wince.net 4.2 device.
So I think the parameter that I specficed is ok?
Please help. Thanks

"Sergey Bogdanov" wrote:

> P/Invoke service throws MissingMethodException when the entry point
> which you specified was not found. Make sure that your "test.dll" and
> EntryPoint are exist in the PPC2003. This library could be specific for
> WinCE platform or smth.
>
>
> Joey Wu wrote:
> > Dear All
> >
> > I used those code to import methods from native dll.
> > It works on WinCE.net 4.2
> > But when I try it on PPC2003 device. It throw a MissingMethodException.
> > Please give me a hand.
> >
> > [DllImport("test.dll", EntryPoint="MyCreate")]
> > private static extern IntPtr Create ();
> >
> > endpoint = Create (); <---- error here
> >
> > Thanks a lot ~!!
> >
> > Joey
> >

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can P/Invoke call a native method of a native class? blackbiscuit Microsoft C# .NET 9 4th Jun 2009 12:31 PM
Can P/Invoke call a native method of a native class? blackbiscuit Microsoft C# .NET 0 11th May 2009 03:04 PM
native compiler (dotnet to native code, executeable without .netframework) Michael Reichenbach Microsoft Dot NET 2 25th May 2007 07:12 PM
[repost] Static initialization of native code in CLI/native mixed environment bvisscher@bellsouth.net Microsoft VC .NET 1 27th Apr 2006 07:39 AM
ppc2003 but which platform to use - win ce or ppc2003 ? Zordiac Microsoft Dot NET Compact Framework 2 22nd Apr 2004 03:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:12 PM.