Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I developped OPC client in XPE, but i can not get the item value. The same project, it can run in professional XP.

// Instantiate a new IKDataSink20:
m_pIDataSink20 = new IKDataSink20 ();

// Add ourselves to its reference count:
m_pIDataSink20->AddRef ();

// Advise the server of our data sink:
hr = pCP->Advise (m_pIDataSink20,

The hr value always wrong. Can you tell me the reason?

For the professional XP and XPE, we registered the same opc dlls, but different result!
Posted
Updated 29-Jul-10 19:35pm
v2
Comments
Sandeep Mewara 30-Jul-10 1:36am    
Use PRE tags to format code part. It makes the question readable.
Richard MacCutchan 30-Jul-10 6:48am    
Take a look at http://www.systemtools.com/board/Forum13/HTML/000025.html for some suggestions. It would appear to be a permissions problem.
Member 4391335 2-Aug-10 6:58am    
I read the article, but the problem can not be soloved. Can you give me some advice, i am really confused.
Thank you very much!

1 solution

Check the value of hr on return, that should tell you what is wrong. Unfortunately we cannot guess what it might be.
 
Share this answer
 
Comments
Member 4391335 30-Jul-10 5:54am    
the return value is 0x80070005 = Access is denied. I donot know is there some difference between XPE and professional XP. I heard that they are normally same.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900