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

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

Basic4ppc Wishlist Missing any feature?

Another Reason for IntPtr Type

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-24-2007, 04:04 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default Another Reason for IntPtr Type

Hi Erel, Another reason we'll appreciate passing and receiving C Pointers, which is IntPtr in .NET is because most C libraries require you to pass a pointer or structure by value, and some even return structures and/or pointers to retrieve and store objects into unsafe memory. Lots of Speech and sound API'S for both the desktop and device use these heavily. Let me know what you think, or I'll see what's up in the next version of B4PPC!
Reply With Quote
  #2 (permalink)  
Old 10-24-2007, 05:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

IntPtr conversation will probably be supported in the next version.
Note that it is possible to create an IntPtrEx object which will wrap a pointer.
Reply With Quote
  #3 (permalink)  
Old 10-24-2007, 05:23 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Erel View Post
Note that it is possible to create an IntPtrEx object which will wrap a pointer.
Please could you give more detail on this Erel as I can't locate anything about it.
Reply With Quote
  #4 (permalink)  
Old 10-24-2007, 05:44 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

There is no such thing. What I've meant is that if you need to use pointers (IntPtr) you could create a library which will include an object that holds pointers.
Similar to the ControlRef property of controls.
Reply With Quote
  #5 (permalink)  
Old 10-24-2007, 06:17 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

There is an easy way to convert IntPtr to Integer (manageable by B4PPC) and vice versa. See my dzHW source (latest version) posted here http://www.basic4ppc.com/forum/additional-libraries/384-useful-library.html
__________________
Dimitris Zacharakis
http://www.terracom.gr
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
Changing font type mozaharul Questions (Windows Mobile) 4 05-18-2009 09:17 AM
'live type' filtering of list box. Hennell Questions (Windows Mobile) 3 04-24-2008 08:49 AM
Cannot type in Device IDE Leginus Bug Reports 3 02-03-2008 03:47 PM
How to get the PDA type and make HARRY Questions (Windows Mobile) 3 01-13-2008 11:19 AM
How to set data type when creates sql table? belotrei Questions (Windows Mobile) 4 06-05-2007 04:34 PM


All times are GMT. The time now is 10:51 AM.


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