Basic4ppc - Windows Mobile Development  

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

Code Samples & Tips Share your recent discoveries and ideas with other users.


How to create a Basic4ppc library


Reply
 
LinkBack Thread Tools Display Modes
  #61 (permalink)  
Old 09-10-2007, 01:32 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hi dennishea,

Attached is a complete C# project (with compiled DLL) for Compact FramewWork 1.0. You can change it to CF 2.0 or anything else (through Sharp Develop Project Properties)

Attached also is the appropriate b4ppc file.
Attached Files
File Type: zip MyDLL.zip (4.4 KB, 51 views)
File Type: sbp test13_MyDLL.sbp (675 Bytes, 47 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #62 (permalink)  
Old 09-10-2007, 02:20 PM
Senior Member
 
Join Date: Jul 2007
Posts: 139
Default

Thanks dzt. I appreciate your time for this. Thanks again and hope your day goes well.



dennishea

edit:

If I would've known about being able to choose which cf. It took me a minute to find where the selection window was for changing it to cf2. While I was waiting for your input I did some reading on MSDN and learned a lot. My main problem with MSDN is I have a hard time finding what I'm looking for and when I do an even harder time understanding it. That's what I get for being a 61 year old high school drop out. Thank You Thank You Thank You dzt for your help. I am now growing hair again.


Last edited by dennishea : 09-10-2007 at 04:06 PM.
Reply With Quote
  #63 (permalink)  
Old 09-10-2007, 06:14 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,092
Default

Quote:
That's what I get for being a 61 year old high school drop out. Thank You Thank You Thank You dzt for your help. I am now growing hair again.
I'n Portugal we have a saying that goes like this:

"Old donkeys don't learn new languages"

My dad is 65, never went beyond the 3rd grade, and his most ambicious chalange was to get is driver's license at 42....

This is to say that you, or anybody else for the matter, should not feel diminished for not having a phd, md or whatever....
I could only wish my dad was interested in computers when I was grouwing up...It would have made adolescence so much easyer....

I praise you all, old timers, that still have the will to learn new things....

__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #64 (permalink)  
Old 09-10-2007, 06:46 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,780
Default

I join the praises.
Reply With Quote
  #65 (permalink)  
Old 09-11-2007, 12:55 AM
Senior Member
 
Join Date: Jul 2007
Posts: 139
Default

Thank You cableguy & erel. I can't seem to find the words to express how your kind words make me feel.

dennishea
Reply With Quote
  #66 (permalink)  
Old 09-14-2007, 08:58 PM
Newbie
 
Join Date: May 2007
Posts: 9
Default pass exception back

Erel,
When writing a dll for B4PPC, if I have an exception in one of my methods, how do I pass it back to the calling code in B4PPC?

Is my only option to return from the fucntion false?

Do I have access to any other code in the application from my dll.

I have a few dll's I would like to publish, but I need to clean up the error handling first.

Thanks,

Ron Laird
Reply With Quote
  #67 (permalink)  
Old 09-15-2007, 07:21 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,780
Default

The error will automatically pass to Basic4ppc and it will show the standard error message.
The user can always prevent the error message by using ErrorLabel method.
Reply With Quote
  #68 (permalink)  
Old 09-15-2007, 07:42 PM
Newbie
 
Join Date: May 2007
Posts: 9
Default Dlls

From my dll, do I have access to any of the object in any other dll's that are loaded. I guess I am asking how namespaces are actually handled.

Ron
Reply With Quote
  #69 (permalink)  
Old 09-15-2007, 07:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,780
Default

You could access any of the objects only if the user passes the object inside a method call.
Like using ControlRef / Value properties which are usually just references to the real object.
It allows the user to pass the object to a method.
In your method declaration you should except an object and now cast it to whatever requires.
Reply With Quote
  #70 (permalink)  
Old 10-29-2007, 12:48 AM
Knows the basics
 
Join Date: May 2007
Posts: 86
Default

Hi. The next time I have string to unmanaged native C pointers issues with .NET especially with 1.1 how can I fix this? My screen reader JAWS is not able to read Sharp Develop errors properly to me because some of the list boxes are not regular Windows List boxes but are customized with lots and lots of pictures. But I still can manage to use parts of the IDE JAWS is able to read to me. But if I find out how to fix errors that aren't obvious, this way, I don't have to keep submitting ok compiled dlls but unrunnable ones that have errors at runtime, unless people don't mind helping me out when no one at home can? Thanks very much. Also, is there a way to capture these errors to ASCII text files or to an HTML file so I can see exactly what they are in another editor? Thanks.
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
How to create .cab file for Smartphone? RCC2k7 Questions & Help Needed 1 05-30-2008 07:02 AM
How to create a new appointment willisgt Questions & Help Needed 2 05-15-2008 08:21 PM
how to create a database ? gjoisa Questions & Help Needed 27 02-14-2008 05:38 PM
Can you help me create B4P lib? conf Questions & Help Needed 7 08-20-2007 07:41 PM
how to create spreadsheetlike function? Stellaferox Questions & Help Needed 10 06-30-2007 01:09 PM


All times are GMT. The time now is 08:34 PM.


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