OpenNETCF

Discussion in 'Chit Chat' started by Cableguy, May 5, 2008.

  1. Cableguy

    Cableguy Expert Licensed User

    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!!!
     
  2. agraham

    agraham Expert Licensed User

    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.
     
  3. Cableguy

    Cableguy Expert Licensed User

    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...
     
  4. Cableguy

    Cableguy Expert Licensed User

    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...
     
  5. agraham

    agraham Expert Licensed User

    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:

  6. Cableguy

    Cableguy Expert Licensed User

    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.....
     
  7. agraham

    agraham Expert Licensed User

    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!
     
  8. Cableguy

    Cableguy Expert Licensed User

    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...
     
  9. agraham

    agraham Expert Licensed User

    @Cableguy. VS2005 project as requested.
     

    Attached Files:

  10. Cableguy

    Cableguy Expert Licensed User

    What is AdaptorsInfo.pdb file for?
    Is it necessary or can be discarted?
     
  11. agraham

    agraham Expert Licensed User

    It contains the debug information for the Visual Studio debugger. You only need the dll in the Release folder. I gave you the whole project as I thought you had SharpDevelop and I understood that it might be able to open VS projects. The actual source code is in Adaptors.cs.
     
  12. Cableguy

    Cableguy Expert Licensed User

    Thanks, I do have Sharp Develop...
    but your first post with only the DLL, also contained this file along with the demo.spb....That was what puzzled me.
     
  13. agraham

    agraham Expert Licensed User

    Sorry, I didn't realise that. It wasn't intended and must have been a slip of the mouse button!
     
  14. agraham

    agraham Expert Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice