Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Basic4ppc Wishlist
Home Register FAQ Members List 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
Knows the basics
 
Join Date: May 2007
Posts: 86
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: 2,844
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: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
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: 2,844
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: Greece
Posts: 353
Awards Showcase
Forum Contributer 
Total Awards: 1
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 Useful Library
__________________
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font type mozaharul Questions & Help Needed 1 06-11-2008 06:29 AM
'live type' filtering of list box. Hennell Questions & Help Needed 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 & Help Needed 3 01-13-2008 11:19 AM
How to set data type when creates sql table? belotrei Questions & Help Needed 4 06-05-2007 04:34 PM


All times are GMT. The time now is 04:33 AM.


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