Re: pinvoke WM5



Well, when all of the possible explanations are exhausted, start with the
impossible. Signing is the first thing that comes to my mind, anyway. You
might try testing that by writing a *native code* application to call that
DLL and see what happens with it.

Paul T.

"Jeremy" <Jeremy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C89E0D9A-3CDD-4CCB-89DE-F7E4D3627720@xxxxxxxxxxxxxxxx
I have the dll alongside the application in the same directory although it
is
invisible on the device itself I can see it using windows explorer on my
desktop. Someone mentioned it needed to be in the Windows directory so I
tried copying it there and that didnt work either. Like I said it works
perfect on Pocket PC edition, just not SmartPhone.

"Jeremy" wrote:

Well I mean like the following:

[DllImport("MyDLL.dll",CharSet=CharSet.Unicode,SetLastError=true)]
public static extern bool MyMethod();

where I define in my native dll:

extern "C" {
MYDLL_API BOOL MyMethod();
};

"Paul G. Tobey [eMVP]" wrote:

Not in how you do it, but in what APIs are available, yes.

Paul T.

"Jeremy" <Jeremy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BAD361AB-180D-42E6-8024-49BC09595B1D@xxxxxxxxxxxxxxxx
I have posted this before but I am not sure where I left off and I am
still
having an issue with it.

I have the exact same code that works on Windows Mobile 5 Pocket PC
Ed. on
two different Ipaqs and a Palm Treo Phone.

I create a SmartPhone build for the same stuff and everything works
fine
except pinvoke throws an exception claiming there is a "Missing
Method".

Is there any special differences between SmartPhone version and
Pocket PC
version for pinvoking a custom dll?

Thank you very much.





.



Relevant Pages

  • Re: HTC Touch
    ... instances of windows. ... Do I digress since this is a PocketPC newsgroup, not a smartphone newsgroup? ... Too bad too - I REALLY liked the very capable swiss army knife-esque Pocket ...
    (microsoft.public.pocketpc)
  • Rundbrief #186: Treffen #45, T-Mobile SDA, SDA Tweaks, Neues zum Motorola MPx
    ... Bedienung von Windows Mobile für Smartphone noch etwas Gewöhnung. ... Informationen zum im Frühjahr angekündigten Motorola MPx, einem Pocket ... Microsoft hat Einführungen zur Nutzung von Windows ...
    (microsoft.public.de.german.windowsce)
  • Re: Code Protability across Windows CE versus Windows Mobile
    ... >code targetted for Windows CE will also run on Windows Mobile? ... Pocket PCs use a menu structure and menu functions ... about apps built for Pocket PC 2003 running on Pocket PC 2005. ... I regularly build for Smartphone and Smartphone 2003. ...
    (comp.sys.handhelds)
  • Re: Pocket PC Versus Windows CE
    ... Of course the Pocket PC operating system is Windows CE based as is the ... Framweork version 2.0 and Visual Studio 2005) the mobile platforms listed ... Pocket PC', 'Windows Mobile for Smartphone', and 'Windows CE'. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: dll
    ... Embedded VC++ 3.0 is used to create applications for Windows CE 3.0, eVC ... application or dll using eVC 3.0, just create an empty project and import ... > I begin to interest me to the Pocket Pc world and I have many questions ...
    (microsoft.public.pocketpc.developer)