15,886,199 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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!
congpchen
13-Apr-11 9:52am
View
it's ok now, i can find regsvr32.exe and dconcnfg.exe, and i have copied to the "/windows" folder.but there is another problem occured. i copied the opcdaauto.dll to the same folder,then click start->run, and input "regsvr32 opcdaauto.dll", click "ok", there is no tip that tell me whether i have registered the com succesfully. However, when i tried to use the com "MyServer = new OPCServer();", there is an error that "'COM object with CLSID '{28E68F9A-8D75-11D1-8DC3-3C302A000000}' cannot be created due to the following error: 0x80040154.'", so i think i haven't registered the DLL succesfully, so i need your help about how to register this dll, and how to know whether the DLL has been registered, thanks!
congpchen
12-Apr-11 22:37pm
View
Hi,johannesnestler,
i have read the article you mentioned before, this is a quite good article. and i have added DCOM before building the Image.however, i can't find the DCOMCNFG and RegsvrCE.exe in wince, i don't know why. if possible, please send me some picture about how to finish this step,thanks!
congpchen
12-Apr-11 5:49am
View
hello,johannesnestler.
thank you very much for your answer.well, i am using wince 5.0, and i write my own opc client in c#(running in Wince) with visual studio 2005 to collect to the OPC Server(Matrikon.OPC.Simulation.1) which is running in XP.and we can build my own Wince-Image with PB, maybe it's not so difficult to bring something to the CE-Image.
this is my situation. many thanks!
congpchen
12-Apr-11 5:48am
View
Deleted
hello,johannesnestler.
thank you very much for your answer.well, i am using wince 5.0, and i write my own opc client in c#(running in Wince) with visual studio 2005 to collect to the OPC Server(Matrikon.OPC.Simulation.1) which is running in XP.and we can build my own Wince-Image with PB, maybe it's not so difficult to bring something to the CE-Image.
this is my situation. many thanks!
Show More