Folks,

I am using VS 2005 to target a Windows Mobile 2003 (SE) Phone Edition
device. I want to be able to access Hardware Buttons. Supposedly, this is
in the Microsoft.WindowsCE.Forms.dll. But there are two versions:
v1.0.4292.0 and v2.0.5238.0, located repectively in:

C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\ and

C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\.

The v1.0.4292.0 DLL does not have HardwareButton defined. In fact, it only
has, as I recall, three objects: InputPanel, Message, and MessageWindow.

The v2.0.5238.0 DLL has MUCH more, including HardwareButton.

But when I add the reference to v2.0 and tre to build my project, I get this
error message:

Metadata file 'c:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\Microsoft.WindowsCE.Forms.dll' could not be opened -- 'Version 2.0 is not a compatible version.'

What am I to do? Thanks in advance for all suggestions.

/Joel Finkel
finkel@sd-il.com

cc:pocketpc.developer

Re: Problem with Microsoft.WindowsCE.Forms.dll (two versions) by Peter

Peter
Fri Nov 18 14:53:49 CST 2005

You can only add the v2.0 version from a .NETCF v2.0 project.

Peter

--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

"Joel Finkel" <JoelFinkel@discussions.microsoft.com> wrote in message
news:6F8D2EF4-32A6-476D-9A28-902EE8DECB5B@microsoft.com...
> Folks,
>
> I am using VS 2005 to target a Windows Mobile 2003 (SE) Phone Edition
> device. I want to be able to access Hardware Buttons. Supposedly, this
> is
> in the Microsoft.WindowsCE.Forms.dll. But there are two versions:
> v1.0.4292.0 and v2.0.5238.0, located repectively in:
>
> C:\Program Files\Microsoft Visual Studio
> 8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\ and
>
> C:\Program Files\Microsoft Visual Studio
> 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\.
>
> The v1.0.4292.0 DLL does not have HardwareButton defined. In fact, it
> only
> has, as I recall, three objects: InputPanel, Message, and MessageWindow.
>
> The v2.0.5238.0 DLL has MUCH more, including HardwareButton.
>
> But when I add the reference to v2.0 and tre to build my project, I get
> this
> error message:
>
> Metadata file 'c:\Program Files\Microsoft Visual Studio
> 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\Microsoft.WindowsCE.Forms.dll'
> could not be opened -- 'Version 2.0 is not a compatible version.'
>
> What am I to do? Thanks in advance for all suggestions.
>
> /Joel Finkel
> finkel@sd-il.com
>
> cc:pocketpc.developer