C + + call c # write COM, run on different computers, some normal, some complains, system is Windows 7 32 bit, Error message is as follows: System. Exception {System. Reflection. TargetException} + [System. Reflection. TargetException] {" Object does not match target type. "} System. Reflection. TargetException + Data {System. Collections. ListDictionaryInternal} System. Collections. IDictionary {System. Collections. ListDictionaryInternal} The Message "Object does not match target type." The Source "mscorlib string" StackTrace " at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)\r\n at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)\r\n at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& MsgData) \ r \ n at Client1. IOleTestEvents. OnNewData (Object NewData) \ r \ n at Client1. OleTest. NewData (String [] NewData) in d: \ \ source code \ \ Centurion \ \ the Main \ \ source \ \ Libraries \ \ OpenApps \ \ KicClient \ \ KicClient cs: line 547, "
Help!!!!!!
CodePudding user response:
Use the depends. Exe view exe or DLL relies on other DLL version number,