dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE : RE : RE : RE : [Pnet-developers] System.NotImplementedException


From: Rhys Weatherley
Subject: Re: RE : RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder
Date: Thu, 24 Jul 2003 17:25:46 +1000
User-agent: KMail/1.4.3

On Thursday 24 July 2003 05:24 pm, Yannis BRES wrote:

>      This function is in "shell32.dll version 5.0 or later" and the minimum
> operating systems are :
>        - Windows 95 with Internet Explorer 5.0
>        - Windows 98 with Internet Explorer 5.0
>        - Windows 98 Second Edition (SE)
>        - Windows NT 4.0 with Internet Explorer 5.0
>        - Windows NT 4.0 with Service Pack 4 (SP4)
>      I guess that this is okay for all non-CE Windows.  However, I do agree
> that there seems to be a problem for Windows CE machines.

The requirement for IE is a little problematical also. :-)

> Maybe you could
> protect the code I have submitted with a stronger #ifdef ?  On another
> hand, I can send you an update that will link against shell32.dll only at
> runtime, but there will be an important overhead on all calls to
> GetSpecialFolder...

I'm wondering if it may be possible to do this with PInvoke at the C# layer, 
rather than through the internalcall interface?  i.e. declare 
"SHGetFolderPath" as a PInvoke method, and call it directly, returning an 
empty string if "shell32.dll" cannot be found.  The less we need to do at the 
engine level, the better.

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]