Click here to Skip to main content
15,886,199 members

Comments by congpchen (Top 9 by date)

congpchen 24-Apr-11 23:03pm View    
Deleted
but in wince:
//
// Summary:
// 获取与指定程序标识符 (ProgID) 关联的类型,如果在加载 System.Type 时遇到错误,则返回空值。
//
// Parameters:
// progID:
// 要获取的类型的 ProgID。
//
// Returns:
// 如果 progID 是注册表中的有效项,并且有与之关联的类型,则为与指定 ProgID 关联的类型;否则为 null。
//
// Exceptions:
// System.ArgumentException:
// progID 为 null。
public static Type GetTypeFromProgID(string progID);
//
// Summary:
// 获取与指定程序标识符 (ProgID) 关联的类型,指定如果在加载该类型时发生错误是否引发异常。
//
// Parameters:
// progID:
// 要获取的类型的 ProgID。
//
// throwOnError:
// true 将引发所发生的任何异常。- 或 - false 将忽略所发生的任何异常。
//
// Returns:
// 如果 progID 是注册表中的有效项且有与之关联的类型,则为与指定程序标识符 (ProgID) 关联的类型;否则为 null。
//
// Exceptions:
// System.ArgumentException:
// progID 为 null。
//
// System.Runtime.InteropServices.COMException:
// 指定的 ProgID 没有注册。
public static Type GetTypeFromProgID(string progID, bool throwOnError);
congpchen 24-Apr-11 23:02pm View    
Hello,
these days i am trying to connect to an OPC Server in Wince, and i programmed my OPC client in C#,and there is a method can collect to a Remote COM Server: GetTypeFromProgID. however, it can't be used in Wince becuase there is no overload method to connect to Romote Computer.so what should i do next?thanks!
in XP:
//
// Summary:
// Gets the type associated with the specified program identifier (ProgID),
// returning null if an error is encountered while loading the System.Type.
//
// Parameters:
// progID:
// The ProgID of the type to get.
//
// Returns:
// The type associated with the specified ProgID, if progID is a valid entry
// in the registry and a type is associated with it; otherwise, null.
//
// Exceptions:
// System.ArgumentException:
// progID is null.
public static Type GetTypeFromProgID(string progID);
//
// Summary:
// Gets the type associated with the specified program identifier (ProgID),
// specifying whether to throw an exception if an error occurs while loading
// the type.
//
// Parameters:
// progID:
// The ProgID of the type to get.
//
// throwOnError:
// true to throw any exception that occurs.-or- false to ignore any exception
// that occurs.
//
// Returns:
// The type associated with the specified program identifier (ProgID), if progID
// is a valid entry in the registry and a type is associated with it; otherwise,
// null.
//
// Exceptions:
// System.ArgumentException:
// progID is null.
//
// System.Runtime.InteropServices.COMException:
// The specified ProgID is not registered.
public static Type GetTypeFromProgID(string progID, bool throwOnError);
//
// Summary:
// Gets the type associated with the specified program identifier (progID) from
// the specified server, returning null if an error is encountered while loading
// the type.
//
// Parameters:
// progID:
// The progID of the type to get.
//
// server:
// The server from which to load the type. If the server name is null, this
// method automatically reverts to the local machine.
//
// Returns:
// The type associated with the specified program identifier (progID), if progID
// is a valid entry in the registry and a type is associated with it; otherwise,
// null.
//
// Exceptions:
// System.ArgumentException:
// prodID is null.
public static Type GetTypeFromProgID(string progID, string server);
//
// Summary:
// Gets the type associated with the specified program identifier (progID) from
// the specified server, specifying whether to throw an exception if an error
// occurs while loading the type.
//
// Parameters:
// progID:
// The progID of the System.Type to get.
//
// server:
// The server from which to load the type. If the server name is null, this
// method automatically reverts to the local machine.
//
// throwOnError:
// true to throw any exception that occurs.-or- false to ignore any exception
// that occurs.
//
// Returns:
// The System.Type associated with the specified program identifier (progID),
// if progID is a valid entry in the registry and a type is associated with
// it; otherwise, null.
//
// Exceptions:
// System.ArgumentExce
congpchen 13-Apr-11 21:49pm View    
johannesnestler,
i have another doubt that the opcdaauto.dll is running in XP, maybe it cann't be running in wince, so that i failed to register it, is that right?
congpchen 13-Apr-11 20:53pm View    
johannesnestler,
yes, you are right, i lost the registration, because i have a DNW which can inspect what happened in wince, and it shows "Could not load opcdaauto.dll", i remembered that there are two errors when i build and sysgen the regsvr in OS. "error SYSGEN0000: error(s) in sysgen phase D:\WINCE600\build.log 1", "NMAKE : fatal error U1073: don't know how to make 'regsvr32' ". so i think this is the problem located. hmm, but i don't know what to do...
congpchen 13-Apr-11 20:36pm View    
it the same problem Before i registered the dll, i don't know what have changed after the registration. this means the registration have lost, so if the problem is my image, what should i do next? thanks!