// Use programID 'HKEY_CLASSES_ROOT\DirControl.DirList.1'.
         string myString1 ="DIRECT.ddPalette.3"; 
         // Use a nonexistent programID 'WrongProgID'.
         string myString2 ="WrongProgID"; 
         // Make a call to the method to get the Type information of the given ProgID.
         Type myType1 =Type.GetTypeFromProgID(myString1,true);
         Console.WriteLine("GUID for ProgramID 'DirControl.DirList.1' is: "+myType1.GUID);
         // It throws an exception as, the ProgID is invalid and the 'throwOnError' 
         // flag is set to TRUE.
         Type myType2 =Type.GetTypeFromProgID(myString2,true);

解决方案 »

  1.   

    楼上的 win32c(win32c) 老兄   我好像不明白你的意思呀?能详细说说吗?   感激不尽!
      

  2.   

    楼上给的是 C# 本机调用 C#写的COM+
    使用GetTypeFromoProgIC()获得对象  (远程的话 一定得用remoting)如果想用asp调用 C#写的COM+,应该先把 .net组件做一个com的接口的DLL(有个命令行的工具),再用asp调用不同com的方法具体思路 与 vb6 调用.net compoent的方法 一样
    (个人理解,未尝试过)