Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

The Hekkus Library doesn't work when used with the Optimized Compiler

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2007, 07:54 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default The Hekkus Library doesn't work when used with the Optimized Compiler

Hi Erel, When usng the Hekkus Wrapper I created using the Legacy compiler in v6.01, there are no problems. However when used with the Optimized compiler, I get the following error:
External compiler error
Error compiling program. Error message: error CS0246: The type or namespace name 'hssNET' could not be found (are you missing a using
directive or an assembly reference?)
Line number: 17
Line: s1 = Speaker.SpeakerPlaySound(Sound1.SoundValue)
OK
How can I fix this from within my Library? Thanks.
Reply With Quote
  #2 (permalink)  
Old 12-27-2007, 08:21 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hi,
Has I understand it, legacy compilation is for some backwards compatibility with net 1.1 dlls...
optimized compilation use target default the net 2.0 framework...
So you should re-compile your dll as an .net 2.o dll and make the necessary adjustments..
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 12-28-2007, 06:20 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,732
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

There is no problem with .Net 1.0 libraries.
You should make sure that both projects (desktop and device) use the same namespace.
Reply With Quote
  #4 (permalink)  
Old 12-28-2007, 07:08 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I stand corrected, thanks EREL
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #5 (permalink)  
Old 12-28-2007, 07:11 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Hi, Thanks for the suggestions. I re-submitted a better version of my Hekkus Wrapper with a Basic4ppc example of how it can be used. As you will see, the compiled executables are compiled using the non-optimized compiler. ry
compiling my example with the Optimized Compiler, you will see that you get an executable. Run the executable and it immediately crashes! It's weird. It crashes regardless of whether the library was compiled for .NET 1.1 or 2.0.
Reply With Quote
  #6 (permalink)  
Old 12-28-2007, 08:06 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,732
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You should not change the name of the result dll yourself.
The name should be identical to the assembly name (in the Project Properties page).
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Hekkus Sound Library Wrapper! Louis Additional Libraries 21 04-23-2011 11:17 PM
Threading library for optimising compiler agraham Additional Libraries 46 08-31-2009 04:38 PM
Problem with Optimized Compiler mikemputer Questions (Windows Mobile) 3 01-26-2008 02:00 PM
Null value table cells with optimized compiler glook Questions (Windows Mobile) 0 01-04-2008 09:38 AM
Anyone get the Email library to work? mwaite Bug Reports 9 05-18-2007 10:19 AM


All times are GMT. The time now is 06:19 AM.


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