Ejemplo n.º 1
0
        private void TestAdd()
        {
            int    hr;
            object o;

            IComponent icomp = (IComponent) new Component();

            hr = m_comps.Add(icomp, out o);
            DsError.ThrowExceptionForHR(hr);
        }
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);
        }