Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > General > Chit Chat
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.


OpenNETCF


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2008, 09:02 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 840
Default OpenNETCF

Hi Guys

Has anyone tryed the DLL's in OpenNETCF?
Can they be used staight from B4PPc with or without the Door.DLL?
It seems to be a nice addincion to the Microsoft Compact Famework...

I'de like your comment's, PLEASE!!!
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 08:32 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 985
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Seeing as no-one else has replied I will. I don't think it is possible. Events certainly wouldn't work. I tried loading a couple of the libraries and the IDE raised an error. I've looked at them with Reflector and can't see what the problem is, although the structure of some of the libraries may be incompatible with B4PPC. It may be they are compiled for the device only.
Reply With Quote
  #3 (permalink)  
Old 05-08-2008, 09:15 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 840
Default

Thanks,Agraham, for taking the time to try it out...
I think youare rigth, they seem to be device only..
And is the device related properties that I am tryng to use them to....

In the next week i'm in vacation, so I will have more time to do some tryouts...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #4 (permalink)  
Old 05-11-2008, 02:47 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 840
Default Need a simple demo wrapper

Hi agian, guys...
I need a simple sample wrapper to an externall dll....
I'm trying to wrap the OpenNETCF.Net.DLL...to gain access to the devices network hrdware MAC Addresses...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #5 (permalink)  
Old 05-11-2008, 05:48 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 985
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

This gets a MAC address on desktop, should also work on the device using both .NET 1.0/1.1 and 2.0.
Attached Files
File Type: zip AdaptorsInfo.zip (3.4 KB, 4 views)
Reply With Quote
  #6 (permalink)  
Old 05-11-2008, 05:55 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 840
Default

Quote:
Originally Posted by agraham View Post
This gets a MAC address on desktop, should also work on the device using both .NET 1.0/1.1 and 2.0.
As I understand from This page on MSDN, the MAC Adrees cannot be reach on WM....

So did you target the OPenNETCF?

P.S.: Thanks for the work...but still I would like to leran to fish, instead of being given the fish.....
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #7 (permalink)  
Old 05-11-2008, 06:02 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 985
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by Cableguy View Post
As I understand from This page on MSDN, the MAC Adrees cannot be reach on WM....
That is .NET, I used P/Invoke - look at the web link in the demo.

Code:
[DllImport("iphlpapi.dll")]
private static extern int GetAdaptersInfo(byte[] pAdapterInfo, ref uint pOutBufLen);


Quote:
So did you target the OPenNETCF?
No, like I said inthe PM it got too complicated.

Quote:
but still I would like to leran to fish, instead of being given the fish.....
I suggest you start with something simpler!
Reply With Quote
  #8 (permalink)  
Old 05-11-2008, 06:06 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 840
Default

Quote:
Originally Posted by agraham View Post
That is .NET, I used P/Invoke - look at the web link in the demo.

Code:
[DllImport("iphlpapi.dll")]
private static extern int GetAdaptersInfo(byte[] pAdapterInfo, ref uint pOutBufLen);


No, like I said inthe PM it got too complicated.

I suggest you start with something simpler!
I now hunblely ask for your forgiveness, as posted the previous post, before reading your PM...
As I said before, your work is simply supperb...

Thanks again Agraham...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #9 (permalink)  
Old 05-12-2008, 10:51 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 985
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

@Cableguy. VS2005 project as requested.
Attached Files
File Type: zip AdaptorsInfoVs2005.zip (14.3 KB, 3 views)
Reply With Quote
  #10 (permalink)  
Old 05-14-2008, 01:09 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 840
Default

What is AdaptorsInfo.pdb file for?
Is it necessary or can be discarted?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
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


All times are GMT. The time now is 03:41 AM.


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