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
  #11 (permalink)  
Old 08-14-2008, 03:56 PM
Junior Member
 
Join Date: Aug 2008
Location: Guildford, UK
Posts: 17
Default

Well, I've uninstalled Basic4ppc and all references to .Net Frameworks.
I've now re-installed .Net Framework 1 and 2 and .Net Compact Framework 2 and Basic4ppc. Still the same error message.

Mike
Reply With Quote
  #12 (permalink)  
Old 08-14-2008, 03:59 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,688
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Sorry but I am baffled I'll think on.
Reply With Quote
  #13 (permalink)  
Old 08-14-2008, 04:25 PM
Junior Member
 
Join Date: Aug 2008
Location: Guildford, UK
Posts: 17
Default

Well, I can't get to bothered at the moment. If I leave the Dummy file in the device side the program compile and builds with a DTP which is what I want at the moment. That is, it runs on a real device.
Will I be heading for trouble later this way though?

Thanks

Mike
Reply With Quote
  #14 (permalink)  
Old 08-14-2008, 05:14 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,688
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by mikewhite View Post
Will I be heading for trouble later this way though?
Time (and whether other libraries work) will tell!

@Erel - in case it it a clue! Both dummy and device libraries are compiled in VS2005 for WM2003 and CF 2.0. The difference, aprart from coding, is that the device version additionally references Microsoft.WindowsCE.Forms to use the device Notifier. Presumably it is this reference that causes the problem, but why I have no idea.
Reply With Quote
  #15 (permalink)  
Old 08-14-2008, 05:32 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

The simplest solution is to add SIP(True) or SIP(false) somewhere in your code.

The reason for this is a bit complex.
If you'll delete the source code ControlsExDevice.cs from Basic4ppc libraries folder it will also work.
However when the compiler sees this file (and you have a reference to ControlsExDevice.dll) the compiler tries to merge it in the executable. Merging is done by compiling the code together with your code.
To compile this library a reference to Microsoft.WindowsCE.Forms.dll is required.
Basic4ppc doesn't add a reference to this library by default.
Basic4ppc only adds a reference to this dll if it knows that this dll is needed.
The SIP method requires a reference and therefore adding it will solve this problem.
Another solution is to edit the LibrariesException.txt file (found under Basic4ppc folder).
Basic4ppc v6.50 will be distributed with a modified LibrariesException file that will fix this problem.
Reply With Quote
  #16 (permalink)  
Old 08-14-2008, 05:47 PM
Junior Member
 
Join Date: Aug 2008
Location: Guildford, UK
Posts: 17
Default

Thanks Erel, I would *never* have figured it out for myself.

I prefer to complie the enhanced way for the reduced exe size and no need to deploy the dlls.

I'm happy again.

Thanks too agraham for your help (and the library!)

Mike
Reply With Quote
  #17 (permalink)  
Old 08-14-2008, 05:47 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,688
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Erel View Post
The reason for this is a bit complex.
Ahah! - well detected Erel

I don't put my own sources in the libraries folder as it gets a bit crowded and I like to keep it for "official" libraries so I didn't see that.
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 02:33 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0