Click here to Skip to main content
15,559,667 members
Home / Discussions / COM
   

COM

 
QuestionException during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11227-Jul-10 3:20
asr11227-Jul-10 3:20 
AnswerRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Richard MacCutchan7-Jul-10 4:06
mveRichard MacCutchan7-Jul-10 4:06 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11227-Jul-10 20:44
asr11227-Jul-10 20:44 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Richard MacCutchan7-Jul-10 22:19
mveRichard MacCutchan7-Jul-10 22:19 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11227-Jul-10 23:32
asr11227-Jul-10 23:32 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11228-Jul-10 4:05
asr11228-Jul-10 4:05 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Richard MacCutchan9-Jul-10 22:19
mveRichard MacCutchan9-Jul-10 22:19 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Vi212-Jul-10 1:05
Vi212-Jul-10 1:05 
asr1122 wrote:
void CApplication::CreateCallInfo(IDispatch** piResult)
{
CCmdTarget* pTarget = new CCallInfo();

*piResult = pTarget->GetIDispatch(TRUE);
}


Return of IDispatch pointer is not equal to return of _ICallInfo pointer. IDispatch pointer does not have the CallId property (more clearly, the CallId get-property and CallId put-property), presented in _ICallInfo dual interface.

You can heal this by:

1) replacing of "interface _ICallInfo: IDispatch" onto "dispinterface _ICallInfo" in IDL file;

2) replacing of "*piResult = pTarget->GetIDispatch(TRUE);" onto "*piResult = GetInterface(&__uuidof(_ICallInfo))" or "InternalQueryInterface(&__uuidof(_ICallInfo), piResult);" with acceptable casts.
With best wishes,
Vita

GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr112214-Jul-10 3:39
asr112214-Jul-10 3:39 
QuestionDifference between COM Component and Class Pin
krishna_CP5-Jul-10 1:38
krishna_CP5-Jul-10 1:38 
AnswerRe: Difference between COM Component and Class Pin
Richard MacCutchan5-Jul-10 3:25
mveRichard MacCutchan5-Jul-10 3:25 
GeneralRe: Difference between COM Component and Class Pin
krishna_CP5-Jul-10 3:42
krishna_CP5-Jul-10 3:42 
GeneralRe: Difference between COM Component and Class Pin
Richard MacCutchan5-Jul-10 7:32
mveRichard MacCutchan5-Jul-10 7:32 
QuestionHow to read all Windows Registry subkeys of a given key? Pin
Kunal Chowdhury «IN»2-Jul-10 7:05
professionalKunal Chowdhury «IN»2-Jul-10 7:05 
AnswerRe: How to read all Windows Registry subkeys of a given key? Pin
«_Superman_»4-Jul-10 6:06
professional«_Superman_»4-Jul-10 6:06 
GeneralRe: How to read all Windows Registry subkeys of a given key? Pin
Kunal Chowdhury «IN»4-Jul-10 6:10
professionalKunal Chowdhury «IN»4-Jul-10 6:10 
QuestionOLE object containing data + multiple views of data in a compound document. Pin
Code-o-mat2-Jul-10 6:16
Code-o-mat2-Jul-10 6:16 
QuestionHow to scan registry programatically for checking the existence of COM Exe's/Dll's ? Pin
glitteringsound1-Jul-10 8:30
glitteringsound1-Jul-10 8:30 
AnswerRe: How to scan registry programatically for checking the existence of COM Exe's/Dll's ? Pin
«_Superman_»1-Jul-10 20:56
professional«_Superman_»1-Jul-10 20:56 
QuestionVisual Studio 2010 and old Addins Pin
Bryan Anslow29-Jun-10 9:18
Bryan Anslow29-Jun-10 9:18 
QuestionUse COleInsertDialog Pin
MKC00228-Jun-10 3:56
MKC00228-Jun-10 3:56 
QuestionATL Client Application error. Pin
vasuvasanth27-Jun-10 23:58
vasuvasanth27-Jun-10 23:58 
AnswerRe: ATL Client Application error. Pin
Douglas Troy1-Jul-10 7:50
Douglas Troy1-Jul-10 7:50 
QuestionHow to Register .jar file into System Registery as COM objects? Pin
002comp27-Jun-10 19:44
002comp27-Jun-10 19:44 
AnswerRe: How to Register .jar file into System Registery as COM objects? Pin
002comp28-Jun-10 2:17
002comp28-Jun-10 2:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.