How do you call a com object method from c# 4.0
The API documents describe the method as such:
boolean MethodName(VARIANT* par)
The parameter is a ref type which returns an error code.
How do I call this method using c# 4.0's ne开发者_JAVA技巧w features?
Just use the old way, there's nothing in 4.0 that makes this method any easier to use. Add a reference to the COM type library, usually the DLL itself, and you should get a class with the method bool MethodName(ref object). What you are supposed to do with the object is completely unclear from your question. Check the API manual, get help from the component vendor.
精彩评论