Click here to Skip to main content
15,909,091 members
Home / Discussions / COM
   

COM

 
GeneralRe: IScriptControlPtr bad multithreaded behaviour? Pin
Mike Dimmick15-Apr-04 1:50
Mike Dimmick15-Apr-04 1:50 
GeneralRe: IScriptControlPtr bad multithreaded behaviour? Pin
humps15-Apr-04 20:41
humps15-Apr-04 20:41 
GeneralIHttpNegotiate Pin
TimWallace12-Apr-04 5:24
TimWallace12-Apr-04 5:24 
Generalscreen saver Pin
amir_iiui12-Apr-04 1:55
amir_iiui12-Apr-04 1:55 
Generalabout filing Pin
amir_iiui12-Apr-04 1:52
amir_iiui12-Apr-04 1:52 
QuestionHow Calling Com Function Via javascript or VB script Pin
Anonymous11-Apr-04 18:47
Anonymous11-Apr-04 18:47 
AnswerRe: How Calling Com Function Via javascript or VB script Pin
Milton Karimbekallil11-Apr-04 22:57
Milton Karimbekallil11-Apr-04 22:57 
QuestionHow can I add a function to COM? Pin
ilavl11-Apr-04 17:11
ilavl11-Apr-04 17:11 
I am a learner and I ve got a COM.
I try to learn the structure of the COM, and then did three steps to add a function to the COM and its Interface:
1. In DECLARE_INTERFACE_(ITest4, IUnknown), I added a fuction like this:

STDMETHOD(ChangeTest) (THIS_
int nToBeChanged
)
PURE;

2. In the CTest4 declaration I added:
STDMETHODIMP ChangeTest(int nToBeChanged);

3. In the CTest implement I appended :
HRESULT CNvRender::ChangeTest(int nToBeChanged)
{
m_nChangeNo = nToBeChanged;
::MessageBox(NULL, "fasdf", "hehe",MB_OK);
return 0;
}

4. register it and get the interface pointer in my file:
ITest4 *p;
......(get the pointer p and check it whether it is valid)
p->ChangeTest(2);

and here the problem arise: Access Violation

What's wrong with it ? I need your help.

GeneralOutlook security bypass question. Pin
Brigsoft10-Apr-04 7:41
Brigsoft10-Apr-04 7:41 
GeneralRe: Outlook security bypass question. Pin
Milton Karimbekallil11-Apr-04 23:54
Milton Karimbekallil11-Apr-04 23:54 
GeneralCalling Com Function Via javascript or VB script Pin
Anonymous9-Apr-04 18:12
Anonymous9-Apr-04 18:12 
GeneralRe: Calling Com Function Via javascript or VB script Pin
Milton Karimbekallil11-Apr-04 21:12
Milton Karimbekallil11-Apr-04 21:12 
GeneralHWND problem with list control Pin
krugger8-Apr-04 21:44
krugger8-Apr-04 21:44 
QuestionHow can I use a COM? Pin
ilavl8-Apr-04 15:14
ilavl8-Apr-04 15:14 
AnswerRe: How can I use a COM? Pin
Renjith Ramachandran11-Apr-04 2:01
Renjith Ramachandran11-Apr-04 2:01 
GeneralRe: How can I use a COM? Pin
ilavl11-Apr-04 20:36
ilavl11-Apr-04 20:36 
QuestionMSXML implementing ISAXContentHandler, what on earth am I missing?? Pin
Senkwe Chanda8-Apr-04 10:01
Senkwe Chanda8-Apr-04 10:01 
AnswerRe: MSXML implementing ISAXContentHandler, what on earth am I missing?? Pin
Anonymous8-Apr-04 10:17
Anonymous8-Apr-04 10:17 
GeneralRe: MSXML implementing ISAXContentHandler, what on earth am I missing?? Pin
Senkwe Chanda8-Apr-04 10:45
Senkwe Chanda8-Apr-04 10:45 
GeneralRe: MSXML implementing ISAXContentHandler, what on earth am I missing?? Pin
Anonymous8-Apr-04 13:12
Anonymous8-Apr-04 13:12 
GeneralRe: MSXML implementing ISAXContentHandler, what on earth am I missing?? Pin
Senkwe Chanda12-Apr-04 7:45
Senkwe Chanda12-Apr-04 7:45 
GeneralCOM events Pin
El'Cachubrey7-Apr-04 22:43
El'Cachubrey7-Apr-04 22:43 
GeneralNamespace Extension Pin
harishail7-Apr-04 2:09
harishail7-Apr-04 2:09 
GeneralRe: Namespace Extension Pin
_Magnus_8-Apr-04 0:10
_Magnus_8-Apr-04 0:10 
GeneralMarshaling interface pointers in DirectX Pin
Martin Hinchy6-Apr-04 15:12
Martin Hinchy6-Apr-04 15:12 

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.