.NET Components for Mobility

Browse by Tags

Sorry, but there are no more tags available to filter with.
  • Get the name of your executing .exe

    The Compact Framework doesn't support Assembly.GetEntryAssembly to determine the launching .exe. You can instead P/Invoke the native GetModuleFileName function like so:- byte[] buffer = new byte[MAX_PATH * 2]; int chars = GetModuleFileName(IntPtr.Zero, buffer, MAX_PATH); if (chars > 0) { string...
    Posted to Peter Foot (Weblog) by PeterFoot on 08-24-2008
Page 1 of 1 (1 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.