Re: MissingMethodException only on device, not in emulator
From: Matt McGinnis (MattMcGinnis_at_discussions.microsoft.com)
Date: 01/11/05
- Next message: Daniel Moth: "Re: BackgroundWorker not working..."
- Previous message: Rob Thomson: "ComboBox"
- In reply to: Peter Foot [MVP]: "Re: MissingMethodException only on device, not in emulator"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 Jan 2005 10:39:01 -0800
Thanks Peter.... that was the problem. I have a custom .ini and .bat file
to create my final CABS with. I had copied the .dll that was created to my
main apps project directory, then referenced it in my custom .ini file.
Should have let VS do it's job the first time.
"Peter Foot [MVP]" wrote:
> If you are calling into a native dll you have placed on the device, be aware
> that the CPU architecture will be different to that of the Emulator. The
> Emulator runs on X86 and a Pocket PC 2003 device will use the ARM
> instruction set. You'll need to copy the ARM version of the dll to your
> device - if the dll is present and you know it exports a specific function
> then an incorrect CPU version of the dll is most likely cause.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.inthehand.com | www.opennetcf.org
>
> "Matt McGinnis" <MattMcGinnis@discussions.microsoft.com> wrote in message
> news:8EF9F7D5-B5FD-4A96-A6FA-FF972F838AB2@microsoft.com...
> > in the article:
> > http://www.codeproject.com/netcf/VBPocketPCBitmaps.asp
> > it explains how to load a c# project 'inside' of a VB project as a .dll
> > and
> > call it from VB code. This example uses the C# code found in the MS
> > scribbler demo app to save a bitmap to a file . This method works great
> > when
> > debugging to the 2003 emulator, but when deployed to an actual device, I
> > receive a 'Managed MissingMethodeException' error when I call the code. I
> > have verified that the '.dll is on the device in the application
> > directory.
> > Must I register this .dll or something?
>
>
>
- Next message: Daniel Moth: "Re: BackgroundWorker not working..."
- Previous message: Rob Thomson: "ComboBox"
- In reply to: Peter Foot [MVP]: "Re: MissingMethodException only on device, not in emulator"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|