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.


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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2007, 08:54 PM
Senior Member
 
Join Date: May 2007
Posts: 101
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, 09:21 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,463
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

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 12-28-2007, 07:20 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
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, 08:08 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,463
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I stand corrected, thanks EREL
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #5 (permalink)  
Old 12-28-2007, 08:11 PM
Senior Member
 
Join Date: May 2007
Posts: 101
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, 09:06 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Hekkus Sound Library Wrapper! Louis Additional Libraries 16 12-26-2008 05:46 PM
Threading library for optimising compiler agraham Additional Libraries 37 12-13-2008 11:07 AM
Problem with Optimized Compiler mikemputer Questions & Help Needed 3 01-26-2008 03:00 PM
Null value table cells with optimized compiler glook Questions & Help Needed 0 01-04-2008 10:38 AM
Anyone get the Email library to work? mwaite Bug Reports 9 05-18-2007 11:19 AM


All times are GMT. The time now is 02:00 PM.


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