Ejemplo n.º 1
0
        private void TestEnum()
        {
            int             hr;
            IEnumComponents pEnum;

            hr = m_comps.EnumComponents(out pEnum);
            DsError.ThrowExceptionForHR(hr);

            Debug.Assert(pEnum != null, "EnumComponents");
        }
Ejemplo n.º 2
0
        private void Config()
        {
            int    hr;
            object o;

            IComponents comps = (IComponents) new Components();

            IComponent icomp = (IComponent) new Component();

            for (int x = 0; x < 7; x++)
            {
                hr = comps.Add(icomp, out o);
                DsError.ThrowExceptionForHR(hr);
            }

            hr = comps.EnumComponents(out m_pEnum);
            DsError.ThrowExceptionForHR(hr);
        }