Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Cs0234


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-14-2008, 12:52 PM
Junior Member
 
Join Date: Aug 2008
Location: Guildford, UK
Posts: 26
Default Cs0234

Hi,

I'm trying to compile a very simple (device) program but get an Error popping up, saying:

CS0234: The type or namespace name 'WindowsCE' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

This starts to happen when I add the ControlsEXDevice.dll to the project.

Any help appreciated please!

Thanks

Mike White
Reply With Quote
  #2 (permalink)  
Old 08-14-2008, 01:07 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,831
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Make sure you are using the latest version of this library: ControlsExDevice library
Reply With Quote
  #3 (permalink)  
Old 08-14-2008, 01:11 PM
Junior Member
 
Join Date: Aug 2008
Location: Guildford, UK
Posts: 26
Default

Erel,

I extracted these to ...\Anywhere Software\Basic4ppc Desktop\Libraries

is that correct?
I still get the error but I notice I only get it if I have the option "Optimized Compilation" checked.

Mike
Reply With Quote
  #4 (permalink)  
Old 08-14-2008, 01:24 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,831
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You should also replace the dll files that are located in the source code folder.
Reply With Quote
  #5 (permalink)  
Old 08-14-2008, 01:38 PM
Junior Member
 
Join Date: Aug 2008
Location: Guildford, UK
Posts: 26
Default

I tried that but still no luck.

What I have found is that if I use ControlsEXDeviceDummy on the Device side the program compiles and runs (I'm using a DateTime Picker at the moment).

Is that what I should have been doing?

Mike
Reply With Quote
  #6 (permalink)  
Old 08-14-2008, 02:01 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,839
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

You should have ControlsExDeviceDummy as the desktop component and ControlsExDevice for the device. If you have not had the dummy or the "real" library as a component on the desktop this may be why the compiler fails as it picks up information from the desktop library even when compiling for the device.
Reply With Quote
  #7 (permalink)  
Old 08-14-2008, 02:06 PM
Junior Member
 
Join Date: Aug 2008
Location: Guildford, UK
Posts: 26
Default

Thanks for that. But to confirm:

If I have ControlsEXDevice on the Device Side and ControlsEXDeviceDummy on the desktop I get the compile error.

If I have ControlsEXDeviceDummy on the Device side it compiles.

The odd thing is, I think this worked yesterday :/

Perhaps I will try to uninstall and reinstall Basic4ppc but I'm not sure that will help.

I have no other Components set at all, just these.

Thanks again,

Mike
Reply With Quote
  #8 (permalink)  
Old 08-14-2008, 02:11 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,839
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Can you compile the ControlsExDeviceDemo app that comes with the library?

P.S. If you are wondering why I've jumped into this thread it's because I wrote those libraries and they compile fine on my machine - and other peoples - so I don't think there is anything intrinsically wrong with the library code.
Reply With Quote
  #9 (permalink)  
Old 08-14-2008, 02:20 PM
Junior Member
 
Join Date: Aug 2008
Location: Guildford, UK
Posts: 26
Default

No,

that program does not compile either - same error. There must be something wrong with the setup on my machine. Likely in the .net stuff somewhere.
Any idea where I could start to look?

Thanks for jumping in, by the way, all help appreciated.

Mike
Reply With Quote
  #10 (permalink)  
Old 08-14-2008, 02:37 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,839
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

@Erel. Does he need to have installed CF 2.0 on the device to get his desktop updated with the CF assemblies used by the C# compiler? The CF 2.0 redistributable is so huge that I assumed it had bits for the desktop SDK included as well - but I don't really know!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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


All times are GMT. The time now is 11:58 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0