But the a third-party library provides only.net c # SDK , so decided to first using.net SDK to create a com library, and then provide to use MFC applications ,
Has now written a.net com demo, also wrote a MFC called demo,
But when the MFC call com interfaces to execute code that are related to third party libraries "session. The Connect ()", the pop-up "Exception thrown at 0 x000007fee57ac72d (CLR. DLL) in MyComApp. Exe: 0 xc0000005: Access violation reading location 0 XFFFFFFFFFFFFFFFF.", and the interrupt program,
The great spirit guide,
CodePudding user response:
C + + does not stick to variables are initialized to 0, check local abnormal and whether the member variables are initialized,In addition your MFC project lacks app. Config, if this component is dependent on app in the config Settings will be out of the question,
CodePudding user response:
In your COM returned directly to see if canMFC can directly call.net SDK, compile options common language runtime support plus CLR, grammar will be a little strange, can go to the web search