mobilemobile
Sat Apr 29 06:55:01 CDT 2006
Thanks for the reply Robert.
Yeah, I've already got all the info on Platform/OS (a lot of this can also
be accessed through Environment in .NETcf). I'm looking now for how to
access more extensive info on assemblies.
Steve
"r_z_aret@pen_fact.com" wrote:
> I don't know about assemblies. The Win32 function that provides info
> about the OS version is GetVersionEx. For at least a bit more info,
> see:
> - 7 July 2003 contribution from Yaroslav Goncharov to thread called
> "Running the same AP between Pocket PC and Pocket PC 2002" in
> microsoft.public.pocketpc.developer
> - 18 Jul 03 contribution from Almon B. Strowger to thread called eVC
> 4.0 vs VS.NET for C++ in microsoft.public.pocketpc.developer
>
>
>
>
> On Thu, 27 Apr 2006 12:36:02 -0700, mobilemobile
> <mobilemobile@discussions.microsoft.com> wrote:
>
> >Yeah, the version info is for OS, not the application. I guess what I need
> >is the C routine(s) that access assemblies.
> >
> >Steve
> >
> >"r_z_aret@pen_fact.com" wrote:
> >
> >> On Wed, 26 Apr 2006 18:25:01 -0700, mobilemobile
> >> <mobilemobile@discussions.microsoft.com> wrote:
> >>
> >> >I'm trying to build an About messagebox, and I'd like to pull the info from
> >> >the application that's running.
> >> >
> >> >My first idea was to get basics from the Assembly class:
> >> >
> >> > Dim asm As [Assembly] = Assembly.GetExecutingAssembly()
> >> > Dim asmn As AssemblyName = asm.GetName()
> >> > ... then use asmn.Name and asmn.Version
> >> >
> >> >But what if I want to get the info for the app (the .exe) when I'm a couple
> >> >DLLs down. I can only use Assembly.GetCallingAssembly once (static method).
> >> >
> >> >I looked into AppDomain, but this is all I could come up with (as far as
> >> >properties/methods available in NETcf):
> >> >
> >> > Dim apd As AppDomain = AppDomain.CurrentDomain
> >> > ... then use apd.FriendlyName
> >> >
> >> >I noticed that there is a Assembly Information dialog in the VS2005 IDE
> >> >(Project Properties => Application tab => Assembly Information dialog) that
> >> >contains fields including Title, Description, Company, Product, Copyright
> >> >etc, which is just the info I need -- seems new to VS2005, couldn't find this
> >> >in VS2003. But the associated class AssemblyInfo only seems to be available
> >> >with the full .NET Framework, and not NETcf.
> >> >
> >> >So, does anyone know if there is a way to get to this type of info that I
> >> >missed, either through NETcf or through C routines I can access through
> >> >P/Invoke or the registry somewhere?
> >> >
> >> >Thanks for any help,
> >> >Steve
> >>
> >> I use straight C/C++, not .NET languages. But I just used google to
> >> look up
> >> version_info
> >> in microsoft.public.pocketpc.developer and got 5 hits. Not
> >> encouraging. But one led me to a class library from Kenny Goers:
> >>
http://www.codeproject.com/ce/kgwince.asp
> >>
> >>
> >> -----------------------------------------
> >> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
> >>
> >> Robert E. Zaret, eMVP
> >> PenFact, Inc.
> >> 20 Park Plaza, Suite 478
> >> Boston, MA 02116
> >> www.penfact.com
> >>
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com
>