Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
in my project,i need to invoke a com(form of dll) developed in vc++ for something in security.could anyone show me a solution,thx in advanced.
Posted
Updated 13-Oct-13 23:42pm
v2
Comments
Richard MacCutchan 14-Oct-13 7:19am    
Solution for what? We have no idea what your dll does or how to access it. If you want to learn how to make or use COM in general there are some useful articles here on CodeProject.
koll Zhu 14-Oct-13 21:29pm    
i want to use COM in my silverlight application.the COM component has already registed,but when i make use of the
interop method,there is an exception.
code: dynamic ccbSign = AutomationFactory.CreateObject("CCBNetSignCom.InfosecCCBNetSign");
long a = 0;
ccbSign.get_errorNum(ref a);
it always throw missmemberexception,but get_errorNum() is defined in the COM,i dont known how to resolve this issue...
Richard MacCutchan 15-Oct-13 3:46am    
I am not sure what you mean by a missmemberexception, but I would guess you are trying to access a function that is not part of the DLL.
koll Zhu 15-Oct-13 4:03am    
you are right,i access to a function which is not exsiting,thank u.
though,there's a new problem.i wanna to call a function that is sure part of the dll and will popup a UI when executing,but it failed,the ui cannot show...is there any restriction
?
Richard MacCutchan 15-Oct-13 9:05am    
Sorry, no idea. You can either check the documentation or run some tests for yourself.

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