mfc >> IProgressDialog Interface

by AST » Mon, 07 Feb 2005 01:27:13 GMT

Hey,

I am trying to use this Shell oject in VC 6, but the shell include files are
obviously out of date. I cannot seem to locate the Microsoft Explorer SDK
that will update or provide a new set of #include files.

Does anybody know the link where to download the SDK to get access to the
latest Shell functions?

Best regards,

Bill




mfc >> IProgressDialog Interface

by AST » Mon, 07 Feb 2005 01:41:17 GMT


Hey Thanks for the reply!

I have been here, but clicking on the IE SDK link brings up an XML parsing
error so I assume this will be a problem for some time.

Best regards,

Bill




the





mfc >> IProgressDialog Interface

by Dan Bloomquist » Mon, 07 Feb 2005 01:41:58 GMT





I think this is what you want:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/


Best, Dan.

--
http://lakeweb.net
http://ReserveAnalyst.com
No EXTRA stuff for email.
What can you see if you can't see it all...



IProgressDialog Interface

by AST » Mon, 07 Feb 2005 01:49:54 GMT

Hey,

Forget the last reply. It automagically is working now.

Best regards,

Bill










IProgressDialog Interface

by Dan Bloomquist » Mon, 07 Feb 2005 01:59:56 GMT





Hi Bill,
It was several months ago, but I did the download from here. As I
recall, it was very finicky. It uses IE to install the SDK. I'm a little
fuzzy, but even though I'm running XPPro, I recall having to install the
latest version if IE to get it to work.

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/


Best, Dan.

--
http://lakeweb.net
http://ReserveAnalyst.com
No EXTRA stuff for email.
What can you see if you can't see it all...



Similar Threads

1. In need of an IProgressDialog Bug workaround

2. IProgressDialog

hello,

When I'm using IProgressDialog and StartProgressDialog method, I must
wait almost 10 seconds to see my progressdialog.
I load animation, but why this is so slow?

m.

3. Vtale interfaces , disp interfaces and Dual Interface ???

4. CallbackContract with inherited interfaces -> Base interface n

5. C# Interface to C DLL Interface Design Questions - CSharp/C#

6. Interface features implemented without using Interface

see this demo code I created just to verify the topic being discussed here.

using System;
using System.Collections;

namespace InterfaceDemo
{
    public class Car:IComparable
    {
        public string name;
        public int speed;

        Car() { }
        public Car(String N, int S)
        {
            name = N;
            speed = S;
        }
//see this provides Clonability without explicit IClonable implementation
        public object Clone()
        {
            return this.MemberwiseClone();
        }

        public override string ToString()
        {
            return string.Format("Name: {0}, Speed: {1}", this.name, 
this.speed);
        }

        int IComparable.CompareTo(Object o)
        {
            Car c = (Car)o;
            return ((this.speed > c.speed) ? 1 : -1);
        }
    }


    public class Garage
    {
        public Car[] carArray;
        public Garage()
        {
            carArray = new Car[4];
            carArray[0] = new Car("Rusty", 30);
            carArray[1] = new Car("Clunker", 55);
            carArray[2] = new Car("Zippy", 30);
            carArray[3] = new Car("Fred", 30);
        }
        //Provides functionality of foreach access to the class
//Note: no IEnumerable implemented
        public IEnumerator GetEnumerator()
        {
            return carArray.GetEnumerator();
        }
    }
}



using System;
using System.Collections.Generic;
using System.Text;

namespace InterfaceDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            Garage carLot = new Garage();
            foreach (Car c in carLot)
            {
                Console.WriteLine("{0} is going {1} MPH", c.name, c.speed);
            }
            Car c1 = new Car("OriginalCar", 100);
            Console.WriteLine(c1.ToString());
            Car c2 = (Car)c1.Clone();
            Console.WriteLine("Cloned Object:  {0}", c2.ToString());
            Garage g = new Garage();
            try
            {
                Array.Sort(g.carArray); //calls IComparable.CompareTo from 
Car implicitly
            }
            catch (Exception e)
            {
                Console.WriteLine("->Exception: {0}", e.Message);
            }
            Console.ReadLine();
        }
    }
}

7. Derived class Interface method needs to call Base Class Interface Method - CSharp/C#

8. Deriving a more specific interface from a generic interface

Hi all - I'm sure I'm being brain-dead here - and I think the answer is 'you 
can't do that', but I thought I would try.

I have an interface that is Generic, with two type arguments.  I want to 
create a second interface that specifices the second type argument.  I also 
want to have objects implement that second interface without having to 
implement the more generic methods that are inherited from the first.  This 
is especially evident when I implement multiple interfaces:

Some code will illustrate the problem:

// Base Type
interface I
{}

// 'Base' manager
interface IBase<T1, T2> where T2 : ICollection<T1>
{
T2 GetT1s();
}

// Base type collection
interface ICol<T1> : ICollection<T1> where T1 : I {}

// Derived type
interface IDerived<T1> : IBase<T1, ICol<T1>> where T1 : I {}

// Actual entities to manage
class A : I {}
class B : I {}

// Manager
class Mgr : IDerived<A>, IDerived<B>
{
public ICol<A> GetT1s()
{...}

// Note the explicit implementation here
ICol<B> IBase<B, ICol<B>>.GetT1s()
{...}
}

I would really like to get rid of the 'IBase<B, ICol<B>>' - I would like to 
use IDerived<B>, but this doesn't work.  if I change IDerived to look like 
this:

interface IDerived<T1> : IBase<T1, ICol<T1>> where T1 : I 
    { new ICol<T1> GetT1s();}

Then I need to implement two forms of the method in the manager:

class Mgr : IDerived<A>, IDerived<B>
{
public ICol<A> GetT1s()
{...}

// I want the following method...
ICol<B> IDerived<B>.GetT1s()
{...}

// But not this one!
ICol<B> IBase<B, ICol<B>>.GetT1s()
{...}
}

What am I doing wrong?  I would love to only have to implement 
IDerived<B>.GetT1s();

Thanks,
Phil